Top Description Fields Constructors Methods
com.sun.msv.reader.datatype.xsd

public Class UnionState

extends TypeState
implements XSTypeOwner
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.datatype.xsd.XSTypeOwner
Imports
java.util.ArrayList, .StringTokenizer, org.relaxng.datatype.DatatypeException, com.sun.msv.reader.IgnoreState, .State, com.sun.msv.util.StartTagInfo

State that parses <union> element and its children.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private final ArrayList<XSDatatypeExp>
protected final String
protected final String

Constructor Summary

AccessConstructor and Description
protected
UnionState(String newTypeUri, String newTypeName)

Method Summary

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

Implements abstract com.sun.msv.reader.SimpleState.createChildState.

creates appropriate child state object for this element
protected final XSDatatypeExp
makeType()

Implements abstract com.sun.msv.reader.datatype.xsd.TypeState.makeType.

This method is called from endElement method.
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.datatype.xsd.TypeState:
_makeTypeendSelfgetTargetNamespaceUristartElement

Field Detail

memberTypesback to summary
private final ArrayList<XSDatatypeExp> memberTypes
newTypeNameback to summary
protected final String newTypeName
newTypeUriback to summary
protected final String newTypeUri

Constructor Detail

UnionStateback to summary
protected UnionState(String newTypeUri, String newTypeName)

Method Detail

createChildStateback to summary
protected State createChildState(StartTagInfo tag)

Implements abstract com.sun.msv.reader.SimpleState.createChildState.

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

creates appropriate child state object for this element

makeTypeback to summary
protected final XSDatatypeExp makeType() throws DatatypeException

Implements abstract com.sun.msv.reader.datatype.xsd.TypeState.makeType.

Doc from com.sun.msv.reader.datatype.xsd.TypeState.makeType.

This method is called from endElement method. Implementation has to provide DataType object that represents the content of this element.

onEndChildback to summary
public void onEndChild(XSDatatypeExp type)

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.