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
class MatcherBundle extends Matcher
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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMatcherBundle(IDConstraintChecker owner)the derived class must initialize the children field appropriately.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcharacters(char[] buf, int start, int len)protected voidendElement(org.relaxng.datatype.Datatype type)protected intgetDepth()protected voidonAttribute(java.lang.String namespaceURI, java.lang.String localName, java.lang.String value, org.relaxng.datatype.Datatype type)protected voidonRemoved()called when this bundle is deactivated.protected voidstartElement(java.lang.String namespaceURI, java.lang.String localName)
-
-
-
Field Detail
-
children
protected Matcher[] children
child matchers.
-
depth
private int depth
depth.
-
-
Constructor Detail
-
MatcherBundle
protected MatcherBundle(IDConstraintChecker owner)
the derived class must initialize the children field appropriately.
-
-
Method Detail
-
getDepth
protected final int getDepth()
-
startElement
protected void startElement(java.lang.String namespaceURI, java.lang.String localName) throws org.xml.sax.SAXException- Specified by:
startElementin classMatcher- Throws:
org.xml.sax.SAXException
-
onAttribute
protected void onAttribute(java.lang.String namespaceURI, java.lang.String localName, java.lang.String value, org.relaxng.datatype.Datatype type) throws org.xml.sax.SAXException- Specified by:
onAttributein classMatcher- Throws:
org.xml.sax.SAXException
-
endElement
protected void endElement(org.relaxng.datatype.Datatype type) throws org.xml.sax.SAXException- Specified by:
endElementin classMatcher- Throws:
org.xml.sax.SAXException
-
characters
protected void characters(char[] buf, int start, int len) throws org.xml.sax.SAXException- Overrides:
charactersin classMatcher- Throws:
org.xml.sax.SAXException
-
onRemoved
protected void onRemoved() throws org.xml.sax.SAXExceptioncalled 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:
org.xml.sax.SAXException
-
-