Package com.sun.msv.reader.datatype.xsd
Class TypeWithOneChildState
- java.lang.Object
-
- com.sun.msv.reader.State
-
- com.sun.msv.reader.SimpleState
-
- com.sun.msv.reader.datatype.xsd.TypeState
-
- com.sun.msv.reader.datatype.xsd.TypeWithOneChildState
-
- All Implemented Interfaces:
XSTypeOwner
,org.xml.sax.ContentHandler
- Direct Known Subclasses:
ListState
,RestrictionState
,SimpleTypeState
abstract class TypeWithOneChildState extends TypeState implements XSTypeOwner
State which has at most one TypeState as its child.
-
-
Field Summary
Fields Modifier and Type Field Description protected XSDatatypeExp
type
-
Constructor Summary
Constructors Constructor Description TypeWithOneChildState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XSDatatypeExp
annealType(XSDatatypeExp dt)
performs final wrap-up and returns a fully created DataType object that represents this element.protected XSDatatypeExp
makeType()
This method is called from endElement method.void
onEndChild(XSDatatypeExp child)
receives a Pattern object that is contained in this element.-
Methods inherited from class com.sun.msv.reader.datatype.xsd.TypeState
_makeType, endSelf, getTargetNamespaceUri, startElement
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.msv.reader.datatype.xsd.XSTypeOwner
getTargetNamespaceUri
-
-
-
-
Field Detail
-
type
protected XSDatatypeExp type
-
-
Method Detail
-
onEndChild
public void onEndChild(XSDatatypeExp child)
receives a Pattern object that is contained in this element.- Specified by:
onEndChild
in interfaceXSTypeOwner
-
makeType
protected final XSDatatypeExp makeType() throws org.relaxng.datatype.DatatypeException
Description copied from class:TypeState
This method is called from endElement method. Implementation has to provide DataType object that represents the content of this element.
-
annealType
protected XSDatatypeExp annealType(XSDatatypeExp dt) throws org.relaxng.datatype.DatatypeException
performs final wrap-up and returns a fully created DataType object that represents this element.- Throws:
org.relaxng.datatype.DatatypeException
-
-