Class IncludeMatchSelector


public class IncludeMatchSelector extends AbstractAttributeSelector
An "include match selector" ~= matches an element if the element has an attribute with the specified name and the attribute value contains a word list with the specified word.
Author:
Werner Randelshofer
  • Constructor Details

    • IncludeMatchSelector

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