Class MatcherBundle

  • Direct Known Subclasses:
    FieldsMatcher, PathMatcher

    class MatcherBundle
    extends Matcher
    Base implementation of Matcher coordinator. This class behaves as a parent of several other matchers, or as a composite XPath matcher. Those child matchers are not directly registered to IDConstraintChecker. Instead, they receive notifications through this object.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Matcher[] children
      child matchers.
      private int depth
      depth.
      • Fields inherited from class com.sun.msv.verifier.identity.Matcher

        owner
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected MatcherBundle​(IDConstraintChecker owner)
      the derived class must initialize the children field appropriately.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void characters​(char[] buf, int start, int len)  
      protected void endElement​(org.relaxng.datatype.Datatype type)  
      protected int getDepth()  
      protected void onAttribute​(java.lang.String namespaceURI, java.lang.String localName, java.lang.String value, org.relaxng.datatype.Datatype type)  
      protected void onRemoved()
      called when this bundle is deactivated.
      protected void startElement​(java.lang.String namespaceURI, java.lang.String localName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • children

        protected Matcher[] children
        child matchers.
      • depth

        private int depth
        depth.
    • Constructor Detail

      • MatcherBundle

        protected MatcherBundle​(IDConstraintChecker owner)
        the derived class must initialize the children field appropriately.
    • Method Detail

      • getDepth

        protected final int getDepth()
      • startElement

        protected void startElement​(java.lang.String namespaceURI,
                                    java.lang.String localName)
                             throws org.xml.sax.SAXException
        Specified by:
        startElement in class Matcher
        Throws:
        org.xml.sax.SAXException
      • onAttribute

        protected void onAttribute​(java.lang.String namespaceURI,
                                   java.lang.String localName,
                                   java.lang.String value,
                                   org.relaxng.datatype.Datatype type)
                            throws org.xml.sax.SAXException
        Specified by:
        onAttribute in class Matcher
        Throws:
        org.xml.sax.SAXException
      • endElement

        protected void endElement​(org.relaxng.datatype.Datatype type)
                           throws org.xml.sax.SAXException
        Specified by:
        endElement in class Matcher
        Throws:
        org.xml.sax.SAXException
      • characters

        protected void characters​(char[] buf,
                                  int start,
                                  int len)
                           throws org.xml.sax.SAXException
        Overrides:
        characters in class Matcher
        Throws:
        org.xml.sax.SAXException
      • onRemoved

        protected void onRemoved()
                          throws org.xml.sax.SAXException
        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.
        Throws:
        org.xml.sax.SAXException