Package org.apache.commons.digester3
Class PatternRuleMatcher
- java.lang.Object
-
- org.apache.commons.digester3.PatternRuleMatcher
-
- All Implemented Interfaces:
RuleMatcher
final class PatternRuleMatcher extends java.lang.Object implements RuleMatcher
- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnamespaceURIprivate java.lang.Stringpattern
-
Constructor Summary
Constructors Constructor Description PatternRuleMatcher(java.lang.String pattern)PatternRuleMatcher(java.lang.String pattern, java.lang.String namespaceURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetNamespaceURI()java.lang.StringgetPattern()inthashCode()booleanmatch(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.java.lang.StringtoString()
-
-
-
Method Detail
-
match
public 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.- Specified by:
matchin interfaceRuleMatcher- 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 namespacepattern- Nesting pattern to be matched for this Rulename- the local name if the parser is namespace aware, or just the element name otherwiseattributes- The attribute list of this element- Returns:
- true, if the test succeeds, false otherwise
-
getPattern
public java.lang.String getPattern()
-
getNamespaceURI
public java.lang.String getNamespaceURI()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-