Package 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
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:
-
Field Summary
FieldsFields inherited from class com.sun.msv.grammar.xmlschema.XMLSchemaTypeExp
EXTENSION, RESTRICTIONFields inherited from class com.sun.msv.grammar.ReferenceExp
exp, nameFields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag -
Method Summary
Modifier and TypeMethodDescriptionintgetBlock()gets the value of the block constraint.getClone()clone this object.Gets the encapsulated Datatype object.getType()gets the XSDatatypeExp object that represents this simple type.voidredefine(RedefinableExp _rhs) assigns contents of rhs to this object.voidset(XSDatatypeExp exp) Methods inherited from class com.sun.msv.grammar.ReferenceExp
calcEpsilonReducibility, calcHashCode, equals, isDefined, visit, visit, visit, visitMethods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
Field Details
-
type
-
-
Method Details
-
set
-
getType
gets the XSDatatypeExp object that represents this simple type. -
getDatatype
Gets the encapsulated Datatype object.This method can be called only after the parsing is finished.
-
getBlock
public int getBlock()gets the value of the block constraint. SimpleTypeExp always returns 0 because it doesn't have the block constraint.- Specified by:
getBlockin classXMLSchemaTypeExp
-
getClone
clone this object.- Specified by:
getClonein classRedefinableExp
-
redefine
Description copied from class:RedefinableExpassigns 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:
redefinein classRedefinableExp
-