Class RedefineState
java.lang.Object
com.sun.msv.reader.State
com.sun.msv.reader.SimpleState
com.sun.msv.reader.xmlschema.GlobalDeclState
com.sun.msv.reader.xmlschema.RedefineState
- All Implemented Interfaces:
XSTypeOwner, ExpressionOwner, ContentHandler
used to parse <redefine> element.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SimpleTypeExpWhen a simple type is being redefined, the original declaration will be stored here.private booleanprevious value of reader#doDuplicateDefinitionCheck. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Statecreates appropriate child state object for this elementprotected voidendSelf()this method is called in endElement method when the state is about to be removed.voidonEndChild(XSDatatypeExp type) protected voidperforms a task that should be done before reading any child elements.Methods inherited from class GlobalDeclState
getTargetNamespaceUri, onEndChildMethods inherited from class SimpleState
endDocument, endElement, isGrammarElement, startElementMethods inherited from class State
_assert, callInterceptExpression, characters, endPrefixMapping, getBaseURI, getLocation, getParentState, getStartTag, ignorableWhitespace, init, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
-
Field Details
-
oldSimpleTypeExp
When a simple type is being redefined, the original declaration will be stored here. -
prevDuplicateCheck
private boolean prevDuplicateCheckprevious value of reader#doDuplicateDefinitionCheck.
-
-
Constructor Details
-
RedefineState
public RedefineState()
-
-
Method Details
-
createChildState
Description copied from class:SimpleStatecreates appropriate child state object for this element- Overrides:
createChildStatein classGlobalDeclState
-
startSelf
-
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
-
onEndChild
- Specified by:
onEndChildin interfaceXSTypeOwner- Overrides:
onEndChildin classGlobalDeclState
-