Top Description Fields Constructors Methods
com.sun.msv.verifier.identity

pack-priv Class MatcherBundle

extends Matcher
Class Inheritance
Known Direct Subclasses
com.sun.msv.verifier.identity.PathMatcher, com.sun.msv.verifier.identity.FieldsMatcher
Imports
org.relaxng.datatype.Datatype, org.xml.sax.SAXException

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.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected Matcher[]
children

child matchers.

private int
depth

depth.

Inherited from com.sun.msv.verifier.identity.Matcher:
owner

Constructor Summary

AccessConstructor and Description
protected
MatcherBundle(IDConstraintChecker owner)

the derived class must initialize the children field appropriately.

Method Summary

Modifier and TypeMethod and Description
protected void
characters(char[] buf, int start, int len)

Overrides com.sun.msv.verifier.identity.Matcher.characters.

protected void
protected final int
protected void
onAttribute(String namespaceURI, String localName, String value, Datatype type)

Implements abstract com.sun.msv.verifier.identity.Matcher.onAttribute.

protected void
onRemoved()

called when this bundle is deactivated.

protected void

Field Detail

childrenback to summary
protected Matcher[] children

child matchers.

depthback to summary
private int depth

depth.

Constructor Detail

MatcherBundleback to summary
protected MatcherBundle(IDConstraintChecker owner)

the derived class must initialize the children field appropriately.

Method Detail

charactersback to summary
protected void characters(char[] buf, int start, int len) throws SAXException

Overrides com.sun.msv.verifier.identity.Matcher.characters.

endElementback to summary
protected void endElement(Datatype type) throws SAXException

Implements abstract com.sun.msv.verifier.identity.Matcher.endElement.

getDepthback to summary
protected final int getDepth()
onAttributeback to summary
protected void onAttribute(String namespaceURI, String localName, String value, Datatype type) throws SAXException

Implements abstract com.sun.msv.verifier.identity.Matcher.onAttribute.

onRemovedback to summary
protected void onRemoved() throws 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.

startElementback to summary
protected void startElement(String namespaceURI, String localName) throws SAXException

Implements abstract com.sun.msv.verifier.identity.Matcher.startElement.