Class SimpleState

    • Constructor Detail

      • SimpleState

        public SimpleState()
    • Method Detail

      • isGrammarElement

        protected boolean isGrammarElement​(StartTagInfo tag)
        checks if this element belongs to the grammar.
      • startElement

        public void startElement​(java.lang.String namespaceURI,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes atts)
      • createChildState

        protected abstract State createChildState​(StartTagInfo tag)
        creates appropriate child state object for this element
      • endElement

        public final void endElement​(java.lang.String namespaceURI,
                                     java.lang.String localName,
                                     java.lang.String qName)
      • endDocument

        public final void endDocument()
      • endSelf

        protected void endSelf()
        this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job