com.sun.msv.grammar.xmlschema
Class SimpleTypeExp
java.lang.Object
|
+--com.sun.msv.grammar.Expression
|
+--com.sun.msv.grammar.ReferenceExp
|
+--com.sun.msv.grammar.xmlschema.RedefinableExp
|
+--com.sun.msv.grammar.xmlschema.XMLSchemaTypeExp
|
+--com.sun.msv.grammar.xmlschema.SimpleTypeExp
- All Implemented Interfaces:
- Serializable
- public class SimpleTypeExp
- extends XMLSchemaTypeExp
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
- See Also:
- Serialized Form
setType
public void setType(XSDatatype dt,
ExpressionPool pool)
getType
public XSDatatype getType()
- gets the XSDatatype object that represents this simple type.
getBlock
public int getBlock()
- gets the value of the block constraint.
SimpleTypeExp always returns 0 because it doesn't
have the block constraint.
- Overrides:
getBlock
in class XMLSchemaTypeExp
getClone
public RedefinableExp getClone()
- clone this object.
- Overrides:
getClone
in class RedefinableExp
redefine
public void redefine(RedefinableExp _rhs)
- Description copied from class:
RedefinableExp
- 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.
- Overrides:
redefine
in class RedefinableExp