Package com.sun.msv.reader
Class ExpressionState
java.lang.Object
com.sun.msv.reader.State
com.sun.msv.reader.SimpleState
com.sun.msv.reader.ExpressionState
- All Implemented Interfaces:
ContentHandler
- Direct Known Subclasses:
AttributeState,DataState,DivInGrammarState,ExpressionWithChildState,ExpressionWithoutChildState,InlineElementState
Base implementation for those states who read tags representing an expression.
Responsibility of derived classes are:
- if necessary, implement startSelf method to do something.
- implement createChildState method, which is mandated by SimpleState.
- implement makeExpression method to create Expression object as the outcome of parsing. This method is called at endElement.
- Author:
- Kohsuke KAWAGUCHI
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidendSelf()this method is called in endElement method when the state is about to be removed.protected abstract ExpressionThis method is called from endElement method.Methods inherited from class com.sun.msv.reader.SimpleState
createChildState, endDocument, endElement, isGrammarElement, startElementMethods inherited from class com.sun.msv.reader.State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, startSelfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
ExpressionState
public ExpressionState()
-
-
Method Details
-
endSelf
protected void endSelf()Description copied from class:SimpleStatethis method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job- Overrides:
endSelfin classSimpleState
-
makeExpression
This method is called from endElement method. Implementation has to provide Expression object that represents the content of this element.
-