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

public Class RestrictionState

extends TypeWithOneChildState
implements FacetStateParent
Class Inheritance
All Implemented Interfaces
com.sun.msv.reader.datatype.xsd.FacetStateParent
Imports
org.relaxng.datatype.DatatypeException, com.sun.msv.datatype.xsd.StringType, com.sun.msv.reader.GrammarReader, .IgnoreState, .State, com.sun.msv.util.StartTagInfo

state that parses <restriction> element.
Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
protected XSTypeIncubator
protected final String
protected final String
Inherited from com.sun.msv.reader.datatype.xsd.TypeWithOneChildState:
type

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
protected XSDatatypeExp
annealType(XSDatatypeExp baseType)

Overrides com.sun.msv.reader.datatype.xsd.TypeWithOneChildState.annealType.

performs final wrap-up and returns a fully created DataType object that represents this element.
protected State
createChildState(StartTagInfo tag)

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

creates appropriate child state object for this element
private void
public final XSTypeIncubator
getIncubator()

Implements com.sun.msv.reader.datatype.xsd.FacetStateParent.getIncubator.

gets an incubator object that the owner holds.
public void
onEndChild(XSDatatypeExp child)

Overrides com.sun.msv.reader.datatype.xsd.TypeWithOneChildState.onEndChild.

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

receives a Pattern object that is contained in this element.
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.TypeWithOneChildState:
makeType

Field Detail

incubatorback to summary
protected XSTypeIncubator incubator
newTypeNameback to summary
protected final String newTypeName
newTypeUriback to summary
protected final String newTypeUri

Constructor Detail

RestrictionStateback to summary
protected RestrictionState(String newTypeUri, String newTypeName)

Method Detail

annealTypeback to summary
protected XSDatatypeExp annealType(XSDatatypeExp baseType) throws DatatypeException

Overrides com.sun.msv.reader.datatype.xsd.TypeWithOneChildState.annealType.

Doc from com.sun.msv.reader.datatype.xsd.TypeWithOneChildState.annealType.

performs final wrap-up and returns a fully created DataType object that represents this element.

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

createTypeIncubatorback to summary
private void createTypeIncubator()
getIncubatorback to summary
public final XSTypeIncubator getIncubator()

Implements com.sun.msv.reader.datatype.xsd.FacetStateParent.getIncubator.

Doc from com.sun.msv.reader.datatype.xsd.FacetStateParent.getIncubator.

gets an incubator object that the owner holds.

onEndChildback to summary
public void onEndChild(XSDatatypeExp child)

Overrides com.sun.msv.reader.datatype.xsd.TypeWithOneChildState.onEndChild.

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

Doc from com.sun.msv.reader.datatype.xsd.TypeWithOneChildState.onEndChild.

receives a Pattern object that is contained in this element.

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.