Package com.sun.msv.verifier.identity
Class MatcherBundle
java.lang.Object
com.sun.msv.verifier.identity.Matcher
com.sun.msv.verifier.identity.MatcherBundle
- Direct Known Subclasses:
FieldsMatcher
,PathMatcher
Base implementation of Matcher coordinator.
This class behaves as a parent of several other matchers, or as a composite
XPath matcher.
Those child matchers are not directly registered to IDConstraintChecker.
Instead, they receive notifications through this object.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MatcherBundle
(IDConstraintChecker owner) the derived class must initialize the children field appropriately. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
characters
(char[] buf, int start, int len) protected void
endElement
(org.relaxng.datatype.Datatype type) protected final int
getDepth()
protected void
onAttribute
(String namespaceURI, String localName, String value, org.relaxng.datatype.Datatype type) protected void
called when this bundle is deactivated.protected void
startElement
(String namespaceURI, String localName)
-
Field Details
-
children
child matchers. -
depth
private int depthdepth.
-
-
Constructor Details
-
MatcherBundle
the derived class must initialize the children field appropriately.
-
-
Method Details
-
getDepth
protected final int getDepth() -
startElement
- Specified by:
startElement
in classMatcher
- Throws:
SAXException
-
onAttribute
protected void onAttribute(String namespaceURI, String localName, String value, org.relaxng.datatype.Datatype type) throws SAXException - Specified by:
onAttribute
in classMatcher
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in classMatcher
- Throws:
SAXException
-
characters
- Overrides:
characters
in classMatcher
- Throws:
SAXException
-
onRemoved
called when this bundle is deactivated. This method is called by the endElement method when this bundle is removed. A derived class can override this method to do whatever necessary.- Throws:
SAXException
-