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
-
public class FieldsMatcher extends MatcherBundle
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
Fields Modifier and Type Field Description protected SelectorMatcher
selector
the parent SelectorMatcher.protected org.xml.sax.Locator
startTag
location of the start tag.-
Fields inherited from class com.sun.msv.verifier.identity.MatcherBundle
children
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FieldsMatcher(SelectorMatcher selector, java.lang.String namespaceURI, java.lang.String localName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onRemoved()
called when this bundle is deactivated.-
Methods inherited from class com.sun.msv.verifier.identity.MatcherBundle
characters, endElement, getDepth, onAttribute, startElement
-
-
-
-
Field Detail
-
startTag
protected final org.xml.sax.Locator startTag
location of the start tag. It is usually preferable as a source of error.
-
selector
protected final SelectorMatcher selector
the parent SelectorMatcher.
-
-
Constructor Detail
-
FieldsMatcher
protected FieldsMatcher(SelectorMatcher selector, java.lang.String namespaceURI, java.lang.String localName) throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
-
-
Method Detail
-
onRemoved
protected void onRemoved() throws org.xml.sax.SAXException
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:
org.xml.sax.SAXException
-
-