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
ConstructorsModifierConstructorDescriptionprotectedMatcherBundle(IDConstraintChecker owner) the derived class must initialize the children field appropriately. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcharacters(char[] buf, int start, int len) protected voidendElement(org.relaxng.datatype.Datatype type) protected final intgetDepth()protected voidonAttribute(String namespaceURI, String localName, String value, org.relaxng.datatype.Datatype type) protected voidcalled when this bundle is deactivated.protected voidstartElement(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:
startElementin classMatcher- Throws:
SAXException
-
onAttribute
protected void onAttribute(String namespaceURI, String localName, String value, org.relaxng.datatype.Datatype type) throws SAXException - Specified by:
onAttributein classMatcher- Throws:
SAXException
-
endElement
- Specified by:
endElementin classMatcher- Throws:
SAXException
-
characters
- Overrides:
charactersin 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
-