Package com.sun.msv.reader.trex
Class DivInGrammarState
- java.lang.Object
-
- com.sun.msv.reader.State
-
- com.sun.msv.reader.SimpleState
-
- com.sun.msv.reader.ExpressionState
-
- com.sun.msv.reader.trex.DivInGrammarState
-
- All Implemented Interfaces:
ExpressionOwner
,org.xml.sax.ContentHandler
- Direct Known Subclasses:
GrammarState
public class DivInGrammarState extends ExpressionState implements ExpressionOwner
Used to parse merged grammars. Also <div> element in the grammar element (of RELAX NG). DivInGrammarState itself should not be a ExpressionState. However, GrammarState, which is a derived class of this class, is a ExpressionState. Therefore this class has to extend ExpressionState.
-
-
Constructor Summary
Constructors Constructor Description DivInGrammarState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected State
createChildState(StartTagInfo tag)
creates appropriate child state object for this elementprotected TREXBaseReader
getReader()
protected Expression
makeExpression()
This method is called from endElement method.void
onEndChild(Expression exp)
-
Methods inherited from class com.sun.msv.reader.ExpressionState
endSelf
-
Methods inherited from class com.sun.msv.reader.SimpleState
endDocument, endElement, isGrammarElement, startElement
-
Methods inherited from class com.sun.msv.reader.State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, startSelf
-
-
-
-
Method Detail
-
getReader
protected final TREXBaseReader getReader()
-
makeExpression
protected Expression makeExpression()
Description copied from class:ExpressionState
This method is called from endElement method. Implementation has to provide Expression object that represents the content of this element.- Specified by:
makeExpression
in classExpressionState
-
createChildState
protected State createChildState(StartTagInfo tag)
Description copied from class:SimpleState
creates appropriate child state object for this element- Specified by:
createChildState
in classSimpleState
-
onEndChild
public void onEndChild(Expression exp)
- Specified by:
onEndChild
in interfaceExpressionOwner
-
-