com.sun.msv.grammar.xmlschema

Class SimpleTypeExp

public class SimpleTypeExp extends XMLSchemaTypeExp

Simple type declaration.

Most of the properties of the simple type declaration component is defined in the {@link XSDatatype} object, which is obtained by the {@link #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

Method Summary
intgetBlock()
gets the value of the block constraint.
RedefinableExpgetClone()
clone this object.
XSDatatypegetDatatype()
Gets the encapsulated Datatype object.
XSDatatypeExpgetType()
gets the XSDatatypeExp object that represents this simple type.
voidredefine(RedefinableExp _rhs)
voidset(XSDatatypeExp exp)

Method Detail

getBlock

public int getBlock()
gets the value of the block constraint. SimpleTypeExp always returns 0 because it doesn't have the block constraint.

getClone

public RedefinableExp getClone()
clone this object.

getDatatype

public XSDatatype getDatatype()
Gets the encapsulated Datatype object.

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

getType

public XSDatatypeExp getType()
gets the XSDatatypeExp object that represents this simple type.

redefine

public void redefine(RedefinableExp _rhs)

set

public void set(XSDatatypeExp exp)