|
||||||||
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
org.exolab.castor.xml.schema.AnyType
public final class AnyType
A Class which represents the XML Schema AnyType.
Field Summary |
---|
Fields inherited from class org.exolab.castor.xml.schema.XMLType |
---|
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 | |
---|---|
AnyType(Schema schema)
Creates a new AnyType for the given Schema. |
Method Summary | |
---|---|
java.lang.String |
getName()
Returns the name of this type. |
short |
getStructureType()
Returns the type of this Schema Structure. |
void |
setBaseType(XMLType baseType)
Overrides XMLType#setBaseType(), anyType cannot have a Base type. |
void |
setDerivationMethod(java.lang.String derivationMethod)
Overrides XMLType#setDerivationMethod, anyType cannot be derived from any other type. |
void |
setId(java.lang.String id)
Sets the Id for this XMLType. |
void |
setName(java.lang.String name)
Overrides XMLType#setName. |
protected void |
setParent(Structure parent)
Sets the parent for this XMLType |
void |
validate()
Checks the validity of this Schema defintion. |
Methods inherited from class org.exolab.castor.xml.schema.XMLType |
---|
getBaseType, getDerivationMethod, getId, getSchema, getType, isAnyType, isComplexType, isSimpleType, setSchema |
Methods inherited from class org.exolab.castor.xml.schema.Annotated |
---|
addAnnotation, getAnnotations, removeAnnotation |
Methods inherited from class org.exolab.castor.xml.schema.Structure |
---|
isValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnyType(Schema schema)
Method Detail |
---|
public java.lang.String getName()
getName
in class XMLType
public short getStructureType()
getStructureType
in class Structure
public void setName(java.lang.String name)
setName
in class XMLType
name
- of the typepublic void setBaseType(XMLType baseType)
setBaseType
in class XMLType
base
- the base type which this datatype inherits frompublic void setDerivationMethod(java.lang.String derivationMethod)
setDerivationMethod
in class XMLType
derivationMethod
- the derivation method.public void setId(java.lang.String id)
setId
in class XMLType
id
- the unique Id for this XMLTypepublic void validate() throws ValidationException
validate
in class Structure
ValidationException
- when this Schema definition
is invalid.protected void setParent(Structure parent)
setParent
in class XMLType
parent
- the parent Structure for this XMLType
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |