|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.verifier.identity.Matcher
com.sun.msv.verifier.identity.PathMatcher
com.sun.msv.verifier.identity.SelectorMatcher
public class SelectorMatcher
XPath matcher that tests the selector of an identity constraint. This object is created whenever an element with identity constraints is found. XML Schema guarantees that we can see if an element has id constraints at the startElement method. This mathcer then monitor startElement/endElement and find matches to the specified XPath. Every time it finds a match ("target node" in XML Schema terminology), it creates a FieldsMatcher.
Field Summary | |
---|---|
protected Matcher[] |
children
child matchers. |
protected IdentityConstraint |
idConst
|
Fields inherited from class com.sun.msv.verifier.identity.Matcher |
---|
owner |
Method Summary | |
---|---|
protected void |
characters(char[] buf,
int start,
int len)
|
protected void |
endElement(org.relaxng.datatype.Datatype type)
|
protected int |
getDepth()
|
protected void |
onAttributeMatched(String namespaceURI,
String localName,
String value,
org.relaxng.datatype.Datatype type)
this method is called when the attribute matches the XPath. |
protected void |
onElementMatched(String namespaceURI,
String localName)
this method is called when the element matches the XPath. |
protected void |
onRemoved()
called when this bundle is deactivated. |
Methods inherited from class com.sun.msv.verifier.identity.PathMatcher |
---|
onAttribute, start, startElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected IdentityConstraint idConst
protected Matcher[] children
Method Detail |
---|
protected void onRemoved() throws SAXException
SAXException
protected void onElementMatched(String namespaceURI, String localName) throws SAXException
PathMatcher
onElementMatched
in class PathMatcher
SAXException
protected void onAttributeMatched(String namespaceURI, String localName, String value, org.relaxng.datatype.Datatype type)
PathMatcher
onAttributeMatched
in class PathMatcher
protected final int getDepth()
protected void endElement(org.relaxng.datatype.Datatype type) throws SAXException
endElement
in class Matcher
SAXException
protected void characters(char[] buf, int start, int len) throws SAXException
characters
in class Matcher
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |