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 StatecreateChildState(StartTagInfo tag)creates appropriate child state object for this elementprotected TREXBaseReadergetReader()protected ExpressionmakeExpression()This method is called from endElement method.voidonEndChild(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:ExpressionStateThis method is called from endElement method. Implementation has to provide Expression object that represents the content of this element.- Specified by:
makeExpressionin classExpressionState
-
createChildState
protected State createChildState(StartTagInfo tag)
Description copied from class:SimpleStatecreates appropriate child state object for this element- Specified by:
createChildStatein classSimpleState
-
onEndChild
public void onEndChild(Expression exp)
- Specified by:
onEndChildin interfaceExpressionOwner
-
-