Package com.sun.msv.reader.datatype.xsd
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) XSDatatypeExp
the makeType method with protection against possible exception.void
endSelf()
this method is called in endElement method when the state is about to be removed.private XSTypeOwner
Gets the parent state as TypeOwner.final String
protected abstract XSDatatypeExp
makeType()
This method is called from endElement method.final void
startElement
(String namespaceURI, String localName, String qName, Attributes atts) Methods inherited from class com.sun.msv.reader.SimpleState
createChildState, endDocument, endElement, isGrammarElement
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
-
Constructor Details
-
TypeState
TypeState()
-
-
Method Details
-
getParent
Gets the parent state as TypeOwner. -
getTargetNamespaceUri
-
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- Overrides:
endSelf
in 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:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classSimpleState
-