Package com.sun.msv.verifier.identity
Class FieldsMatcher
java.lang.Object
com.sun.msv.verifier.identity.Matcher
com.sun.msv.verifier.identity.MatcherBundle
com.sun.msv.verifier.identity.FieldsMatcher
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SelectorMatcher
the parent SelectorMatcher.protected final Locator
location of the start tag.Fields inherited from class com.sun.msv.verifier.identity.MatcherBundle
children
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FieldsMatcher
(SelectorMatcher selector, String namespaceURI, String localName) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
called when this bundle is deactivated.Methods inherited from class com.sun.msv.verifier.identity.MatcherBundle
characters, endElement, getDepth, onAttribute, startElement
-
Field Details
-
startTag
location of the start tag. It is usually preferable as a source of error. -
selector
the parent SelectorMatcher.
-
-
Constructor Details
-
FieldsMatcher
protected FieldsMatcher(SelectorMatcher selector, String namespaceURI, String localName) throws SAXException - Throws:
SAXException
-
-
Method Details
-
onRemoved
Description copied from class:MatcherBundle
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.- Overrides:
onRemoved
in classMatcherBundle
- Throws:
SAXException
-