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

public Class FieldsMatcher

extends MatcherBundle
Class Inheritance
Imports
org.xml.sax.Locator, .SAXException, org.xml.sax.helpers.LocatorImpl, com.sun.msv.grammar.xmlschema.KeyConstraint, .KeyRefConstraint

Coordinator of FieldMatcher. This object is created when SelectorMatcher finds a match. This object then creates FieldMatcher for each field, and let them find their field matchs. When leaving the element that matched the selector, it collects field values and registers a key value to IDConstraintChecker.

Depending on the type of the constraint, it works differently.

Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected final SelectorMatcher
selector

the parent SelectorMatcher.

protected final Locator
startTag

location of the start tag.

Inherited from com.sun.msv.verifier.identity.MatcherBundle:
children

Constructor Summary

AccessConstructor and Description
protected
FieldsMatcher(SelectorMatcher selector, String namespaceURI, String localName)

Method Summary

Modifier and TypeMethod and Description
protected void
onRemoved()

Overrides com.sun.msv.verifier.identity.MatcherBundle.onRemoved.

called when this bundle is deactivated.
Inherited from com.sun.msv.verifier.identity.MatcherBundle:
charactersendElementgetDepthonAttributestartElement

Field Detail

selectorback to summary
protected final SelectorMatcher selector

the parent SelectorMatcher.

startTagback to summary
protected final Locator startTag

location of the start tag. It is usually preferable as a source of error.

Constructor Detail

FieldsMatcherback to summary
protected FieldsMatcher(SelectorMatcher selector, String namespaceURI, String localName) throws SAXException

Method Detail

onRemovedback to summary
protected void onRemoved() throws SAXException

Overrides com.sun.msv.verifier.identity.MatcherBundle.onRemoved.

Doc from com.sun.msv.verifier.identity.MatcherBundle.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.