Class SubstringMatchSelector


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

    • SubstringMatchSelector

      public SubstringMatchSelector(@Nullable SourceLocator sourceLocator, @Nullable String namespacePattern, @NonNull String attributeName, @NonNull String substring)
      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
      substring - the substring in the attribute value
  • Method Details