Class 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 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 class MatcherBundle
        Throws:
        org.xml.sax.SAXException