com.sun.msv.reader.trex
Class GrammarState

java.lang.Object
  extended by com.sun.msv.reader.State
      extended by com.sun.msv.reader.SimpleState
          extended by com.sun.msv.reader.ExpressionState
              extended by com.sun.msv.reader.trex.DivInGrammarState
                  extended by com.sun.msv.reader.trex.GrammarState
All Implemented Interfaces:
ExpressionOwner, ContentHandler
Direct Known Subclasses:
GrammarState

public class GrammarState
extends DivInGrammarState

parses <grammar> element. this state is used to parse top-level grammars and nested grammars. grammars merged by include element are handled by MergeGrammarState.

this class provides a new TREXGrammar object to localize names defined within this grammar.

Author:
Kohsuke KAWAGUCHI

Field Summary
 
Fields inherited from class com.sun.msv.reader.State
reader
 
Constructor Summary
GrammarState()
           
 
Method Summary
 void endSelf()
          this method is called in endElement method when the state is about to be removed.
 
Methods inherited from class com.sun.msv.reader.trex.DivInGrammarState
onEndChild
 
Methods inherited from class com.sun.msv.reader.SimpleState
endDocument, endElement, startElement
 
Methods inherited from class com.sun.msv.reader.State
_assert, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrammarState

public GrammarState()
Method Detail

endSelf

public void endSelf()
Description copied from class: SimpleState
this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job