Top Description Fields Constructors Methods
com.sun.msv.reader.xmlschema

public Class RedefineState

extends GlobalDeclState
Class Inheritance
Imports
com.sun.msv.grammar.xmlschema.SimpleTypeExp, com.sun.msv.reader.AbortException, .State, com.sun.msv.reader.datatype.xsd.XSDatatypeExp, com.sun.msv.util.StartTagInfo

used to parse <redefine> element.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private SimpleTypeExp
oldSimpleTypeExp

When a simple type is being redefined, the original declaration will be stored here.

private boolean
prevDuplicateCheck

previous value of reader#doDuplicateDefinitionCheck.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected State
createChildState(StartTagInfo tag)

Overrides com.sun.msv.reader.xmlschema.GlobalDeclState.createChildState.

creates appropriate child state object for this element
protected void
endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed.
public void
protected void
startSelf()

Overrides com.sun.msv.reader.State.startSelf.

performs a task that should be done before reading any child elements.
Inherited from com.sun.msv.reader.xmlschema.GlobalDeclState:
getTargetNamespaceUrionEndChild

Field Detail

oldSimpleTypeExpback to summary
private SimpleTypeExp oldSimpleTypeExp

When a simple type is being redefined, the original declaration will be stored here.

prevDuplicateCheckback to summary
private boolean prevDuplicateCheck

previous value of reader#doDuplicateDefinitionCheck.

Constructor Detail

RedefineStateback to summary
public RedefineState()

Method Detail

createChildStateback to summary
protected State createChildState(StartTagInfo tag)

Overrides com.sun.msv.reader.xmlschema.GlobalDeclState.createChildState.

Doc from com.sun.msv.reader.SimpleState.createChildState.

creates appropriate child state object for this element

endSelfback to summary
protected void endSelf()

Overrides com.sun.msv.reader.SimpleState.endSelf.

Doc from com.sun.msv.reader.SimpleState.endSelf.

this method is called in endElement method when the state is about to be removed. derived-class should perform any wrap-up job

onEndChildback to summary
public void onEndChild(XSDatatypeExp type)

Overrides com.sun.msv.reader.xmlschema.GlobalDeclState.onEndChild.

Implements com.sun.msv.reader.datatype.xsd.XSTypeOwner.onEndChild.

startSelfback to summary
protected void startSelf()

Overrides com.sun.msv.reader.State.startSelf.

Doc from com.sun.msv.reader.State.startSelf.

performs a task that should be done before reading any child elements. derived-class can safely read startTag and/or parentState values.