Class PrefixMatchSelector


public class PrefixMatchSelector extends AbstractAttributeSelector
A "prefix match selector" ^= matches an element if the element has an attribute with the specified name and its value starts with the specified substring.
Author:
Werner Randelshofer
  • Constructor Details

    • PrefixMatchSelector

      public PrefixMatchSelector(@Nullable SourceLocator sourceLocator, @Nullable String namespacePattern, @NonNull String attributeName, @NonNull String prefix)
      Creates a new instance.
      Parameters:
      sourceLocator - source locator for debugging
      namespacePattern - an optional namespace ("*" means any namespace, null means no namespace)
      attributeName - the attribute name
      prefix - the attribute value prefix
  • Method Details