Interface RuleMatcher

  • All Known Implementing Classes:
    PatternRuleMatcher

    public interface RuleMatcher
    Defines a functor interface implemented by classes that perform a predicate test
    Since:
    3.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean match​(java.lang.String namespace, java.lang.String pattern, java.lang.String name, org.xml.sax.Attributes attributes)
      Use the specified parameter to perform a test.
    • Method Detail

      • match

        boolean match​(java.lang.String namespace,
                      java.lang.String pattern,
                      java.lang.String name,
                      org.xml.sax.Attributes attributes)
        Use the specified parameter to perform a test.
        Parameters:
        namespace - the namespace URI of the matching element, or an empty string if the parser is not namespace aware or the element has no namespace
        pattern - Nesting pattern to be matched for this Rule
        name - the local name if the parser is namespace aware, or just the element name otherwise
        attributes - The attribute list of this element
        Returns:
        true, if the test succeeds, false otherwise