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 protected
MatcherBundle(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 void
characters(char[] buf, int start, int len)
protected void
endElement(org.relaxng.datatype.Datatype type)
protected int
getDepth()
protected void
onAttribute(java.lang.String namespaceURI, java.lang.String localName, java.lang.String value, org.relaxng.datatype.Datatype type)
protected void
onRemoved()
called when this bundle is deactivated.protected void
startElement(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:
startElement
in 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:
onAttribute
in classMatcher
- Throws:
org.xml.sax.SAXException
-
endElement
protected void endElement(org.relaxng.datatype.Datatype type) throws org.xml.sax.SAXException
- Specified by:
endElement
in classMatcher
- Throws:
org.xml.sax.SAXException
-
characters
protected void characters(char[] buf, int start, int len) throws org.xml.sax.SAXException
- Overrides:
characters
in classMatcher
- Throws:
org.xml.sax.SAXException
-
onRemoved
protected void onRemoved() throws org.xml.sax.SAXException
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:
org.xml.sax.SAXException
-
-