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

public Class SimpleTypeExp

extends XMLSchemaTypeExp
Class Inheritance
Imports
com.sun.msv.datatype.xsd.XSDatatype, com.sun.msv.reader.datatype.xsd.XSDatatypeExp

Simple type declaration.

Most of the properties of the simple type declaration component is defined in the XSDatatype object, which is obtained by the getType() method.

Note

XML Schema allows forward reference to simple types. Therefore it must be indirectionalized by ReferenceExp. And this is the only reason this class exists.

Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private static final long
protected XSDatatypeExp
Inherited from com.sun.msv.grammar.xmlschema.XMLSchemaTypeExp:
EXTENSIONRESTRICTION

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
getBlock()

Implements abstract com.sun.msv.grammar.xmlschema.XMLSchemaTypeExp.getBlock.

gets the value of the block constraint.
public RedefinableExp
getClone()

Implements abstract com.sun.msv.grammar.xmlschema.RedefinableExp.getClone.

clone this object.
public XSDatatype
getDatatype()

Gets the encapsulated Datatype object.

public XSDatatypeExp
getType()

gets the XSDatatypeExp object that represents this simple type.

public void
redefine(RedefinableExp _rhs)

Overrides com.sun.msv.grammar.xmlschema.RedefinableExp.redefine.

assigns contents of rhs to this object.
public void

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.grammar.xmlschema.XMLSchemaTypeExp.serialVersionUID.

typeback to summary
protected XSDatatypeExp type

Constructor Detail

SimpleTypeExpback to summary
pack-priv SimpleTypeExp(String typeName)

Method Detail

getBlockback to summary
public int getBlock()

Implements abstract com.sun.msv.grammar.xmlschema.XMLSchemaTypeExp.getBlock.

gets the value of the block constraint. SimpleTypeExp always returns 0 because it doesn't have the block constraint.

getCloneback to summary
public RedefinableExp getClone()

Implements abstract com.sun.msv.grammar.xmlschema.RedefinableExp.getClone.

clone this object.

getDatatypeback to summary
public XSDatatype getDatatype()

Gets the encapsulated Datatype object.

This method can be called only after the parsing is finished.

getTypeback to summary
public XSDatatypeExp getType()

gets the XSDatatypeExp object that represents this simple type.

redefineback to summary
public void redefine(RedefinableExp _rhs)

Overrides com.sun.msv.grammar.xmlschema.RedefinableExp.redefine.

Doc from com.sun.msv.grammar.xmlschema.RedefinableExp.redefine.

assigns contents of rhs to this object. rhs and this object must be the same runtime type, and they must have the same name. this method redefines this object by the given component. derived class should override this method and copy necessary fields, should it necessary.

setback to summary
public void set(XSDatatypeExp exp)