|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.XMLType
public abstract class XMLType
The base type for XML Schema types, such as complex types and simple types.
| Field Summary | |
|---|---|
protected static String |
NULL_ARGUMENT
Error message for a null argument |
| Fields inherited from class org.exolab.castor.xml.schema.Structure |
|---|
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD |
| Constructor Summary | |
|---|---|
XMLType()
Default constructor |
|
| Method Summary | |
|---|---|
XMLType |
getBaseType()
Returns the base type that this type inherits from. |
String |
getBaseTypeName()
If this type has a base type, this returns its name. |
String |
getDerivationMethod()
Gets the name of the derivation method used to derive this type from its parent. null for primitive types. |
String |
getId()
Returns the Id for this ComplexType, or null if no Id has been set. |
String |
getName()
Returns the name of this type (null if none was defined) |
Schema |
getSchema()
Returns the schema to which this type belongs |
boolean |
isAnyType()
Returns true if this XMLType is an AnyType |
boolean |
isComplexType()
Returns true if this XMLType is a ComplexType |
boolean |
isSimpleType()
Returns true if this XMLType is a SimpleType |
void |
setBaseType(XMLType baseType)
Sets the base type for this datatype |
void |
setDerivationMethod(String derivationMethod)
Sets the derivation method name |
void |
setId(String id)
Sets the Id for this XMLType. |
void |
setName(String name)
Sets the name of this type |
protected abstract void |
setParent(Structure parent)
Sets the parent for this XMLType |
void |
setSchema(Schema schema)
Sets the name of this SimpleType |
| Methods inherited from class org.exolab.castor.xml.schema.Annotated |
|---|
addAnnotation, getAnnotations, removeAnnotation |
| Methods inherited from class org.exolab.castor.xml.schema.Structure |
|---|
getStructureType, isValid, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static String NULL_ARGUMENT
| Constructor Detail |
|---|
public XMLType()
| Method Detail |
|---|
public String getId()
public String getName()
public void setName(String name)
name - of the typepublic final boolean isAnyType()
public final boolean isComplexType()
public final boolean isSimpleType()
public Schema getSchema()
public void setSchema(Schema schema)
schema - the Schema to which this Simpletype belongspublic XMLType getBaseType()
public void setBaseType(XMLType baseType)
baseType - the base type which this datatype inherits frompublic String getDerivationMethod()
public void setDerivationMethod(String derivationMethod)
public void setId(String id)
id - the unique Id for this XMLTypeprotected abstract void setParent(Structure parent)
parent - the parent Structure for this XMLTypepublic String getBaseTypeName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||