com.sun.msv.verifier.identity
Class Matcher

java.lang.Object
  extended by com.sun.msv.verifier.identity.Matcher
Direct Known Subclasses:
FieldsMatcher, PathMatcher

public abstract class Matcher
extends Object

Base abstract implementation of XPath matcher. XPath mathcer tracks the startElement event and the endElement event. The characters event is also used by some derived classes.

Author:
Kohsuke KAWAGUCHI

Field Summary
protected  IDConstraintChecker owner
           
 
Method Summary
protected  void characters(char[] buf, int start, int len)
           
protected abstract  void endElement(Datatype type)
           
protected abstract  void onAttribute(String namespaceURI, String localName, String value, Datatype type)
           
protected abstract  void startElement(String namespaceURI, String localName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

protected final IDConstraintChecker owner
Method Detail

startElement

protected abstract void startElement(String namespaceURI,
                                     String localName)
                              throws SAXException
Throws:
SAXException

onAttribute

protected abstract void onAttribute(String namespaceURI,
                                    String localName,
                                    String value,
                                    Datatype type)
                             throws SAXException
Throws:
SAXException

endElement

protected abstract void endElement(Datatype type)
                            throws SAXException
Throws:
SAXException

characters

protected void characters(char[] buf,
                          int start,
                          int len)
                   throws SAXException
Throws:
SAXException


MSV