Class NGCCHandler

  • All Implemented Interfaces:
    NGCCEventReceiver
    Direct Known Subclasses:
    Schema

    public abstract class NGCCHandler
    extends java.lang.Object
    implements NGCCEventReceiver
    Author:
    Kohsuke Kawaguchi (kk@kohsuke.org)
    • Field Detail

      • _parent

        protected final NGCCHandler _parent
        Parent NGCCHandler, if any. If this is the root handler, this field will be null.
      • _cookie

        protected final int _cookie
        Cookie assigned by the parent. This value will be passed to the onChildCompleted handler of the parent.
    • Method Detail

      • getRuntime

        protected abstract NGCCRuntime getRuntime()
        This method will be implemented by the generated code and returns a reference to the current runtime.
      • onChildCompleted

        protected abstract void onChildCompleted​(java.lang.Object result,
                                                 int cookie,
                                                 boolean needAttCheck)
                                          throws org.xml.sax.SAXException
        Notifies the completion of a child object.
        Parameters:
        result - The parsing result of the child state.
        cookie - The cookie value passed to the child object when it is created.
        needAttCheck - This flag is true when the callee needs to call the processAttribute method to check attribute transitions. This flag is set to false when this method is triggered by attribute transition.
        Throws:
        org.xml.sax.SAXException
      • spawnChildFromEnterElement

        public void spawnChildFromEnterElement​(NGCCEventReceiver child,
                                               java.lang.String uri,
                                               java.lang.String localname,
                                               java.lang.String qname,
                                               org.xml.sax.Attributes atts)
                                        throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • spawnChildFromEnterAttribute

        public void spawnChildFromEnterAttribute​(NGCCEventReceiver child,
                                                 java.lang.String uri,
                                                 java.lang.String localname,
                                                 java.lang.String qname)
                                          throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • spawnChildFromLeaveElement

        public void spawnChildFromLeaveElement​(NGCCEventReceiver child,
                                               java.lang.String uri,
                                               java.lang.String localname,
                                               java.lang.String qname)
                                        throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • spawnChildFromLeaveAttribute

        public void spawnChildFromLeaveAttribute​(NGCCEventReceiver child,
                                                 java.lang.String uri,
                                                 java.lang.String localname,
                                                 java.lang.String qname)
                                          throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • spawnChildFromText

        public void spawnChildFromText​(NGCCEventReceiver child,
                                       java.lang.String value)
                                throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • revertToParentFromEnterElement

        public void revertToParentFromEnterElement​(java.lang.Object result,
                                                   int cookie,
                                                   java.lang.String uri,
                                                   java.lang.String local,
                                                   java.lang.String qname,
                                                   org.xml.sax.Attributes atts)
                                            throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • revertToParentFromLeaveElement

        public void revertToParentFromLeaveElement​(java.lang.Object result,
                                                   int cookie,
                                                   java.lang.String uri,
                                                   java.lang.String local,
                                                   java.lang.String qname)
                                            throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • revertToParentFromEnterAttribute

        public void revertToParentFromEnterAttribute​(java.lang.Object result,
                                                     int cookie,
                                                     java.lang.String uri,
                                                     java.lang.String local,
                                                     java.lang.String qname)
                                              throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • revertToParentFromLeaveAttribute

        public void revertToParentFromLeaveAttribute​(java.lang.Object result,
                                                     int cookie,
                                                     java.lang.String uri,
                                                     java.lang.String local,
                                                     java.lang.String qname)
                                              throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • revertToParentFromText

        public void revertToParentFromText​(java.lang.Object result,
                                           int cookie,
                                           java.lang.String text)
                                    throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • unexpectedEnterElement

        public void unexpectedEnterElement​(java.lang.String qname)
                                    throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • unexpectedLeaveElement

        public void unexpectedLeaveElement​(java.lang.String qname)
                                    throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • unexpectedEnterAttribute

        public void unexpectedEnterAttribute​(java.lang.String qname)
                                      throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • unexpectedLeaveAttribute

        public void unexpectedLeaveAttribute​(java.lang.String qname)
                                      throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException