Class TypeState
java.lang.Object
com.sun.msv.reader.State
com.sun.msv.reader.SimpleState
com.sun.msv.reader.datatype.xsd.TypeState
- All Implemented Interfaces:
ContentHandler
- Direct Known Subclasses:
TypeWithOneChildState, UnionState
Base implementation for those states which produce a type object
as its parsing result.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) XSDatatypeExpthe makeType method with protection against possible exception.voidendSelf()this method is called in endElement method when the state is about to be removed.private XSTypeOwnerGets the parent state as TypeOwner.final Stringprotected abstract XSDatatypeExpmakeType()This method is called from endElement method.final voidstartElement(String namespaceURI, String localName, String qName, Attributes atts) Methods inherited from class SimpleState
createChildState, endDocument, endElement, isGrammarElementMethods inherited from class State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, startSelf
-
Constructor Details
-
TypeState
TypeState()
-
-
Method Details
-
getParent
Gets the parent state as TypeOwner. -
getTargetNamespaceUri
-
endSelf
public 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
-
_makeType
XSDatatypeExp _makeType()the makeType method with protection against possible exception. -
makeType
This method is called from endElement method. Implementation has to provide DataType object that represents the content of this element.- Throws:
org.relaxng.datatype.DatatypeException
-
startElement
public final void startElement(String namespaceURI, String localName, String qName, Attributes atts) - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classSimpleState
-