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:
org.xml.sax.ContentHandler
- Direct Known Subclasses:
TypeWithOneChildState,UnionState
abstract class TypeState extends SimpleState
Base implementation for those states which produce a type object as its parsing result.
-
-
Constructor Summary
Constructors Constructor Description TypeState()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) XSDatatypeExp_makeType()the makeType method with protection against possible exception.voidendSelf()this method is called in endElement method when the state is about to be removed.private XSTypeOwnergetParent()Gets the parent state as TypeOwner.java.lang.StringgetTargetNamespaceUri()protected abstract XSDatatypeExpmakeType()This method is called from endElement method.voidstartElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.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
-
-
-
-
Method Detail
-
getParent
private XSTypeOwner getParent()
Gets the parent state as TypeOwner.
-
getTargetNamespaceUri
public final java.lang.String 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
protected abstract XSDatatypeExp makeType() throws org.relaxng.datatype.DatatypeException
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(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classSimpleState
-
-