org.exolab.castor.xml.schema
Class AnyType
- java.io.Serializable
public final class AnyType
A Class which represents the XML Schema AnyType.
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:27 $
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 |
AnyType(Schema schema)- Creates a new AnyType for the given Schema.
|
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(String derivationMethod)- Overrides XMLType#setDerivationMethod, anyType cannot
be derived from any other type.
|
void | setId(String id)- Sets the Id for this XMLType.
|
void | setName(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.
|
getBaseType, getDerivationMethod, getId, getName, getSchema, getType, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName, setParent, setSchema |
AnyType
public AnyType(Schema schema)
Creates a new AnyType for the given Schema.
getName
public String getName()
Returns the name of this type. This method
always returns 'anyType'.
- getName in interface XMLType
getStructureType
public short getStructureType()
Returns the type of this Schema Structure. This
method returns Structure.ANYTYPE.
- getStructureType in interface Structure
- the type of this Schema Structure.
setBaseType
public void setBaseType(XMLType baseType)
Overrides XMLType#setBaseType(), anyType cannot have a Base type.
- setBaseType in interface XMLType
setDerivationMethod
public void setDerivationMethod(String derivationMethod)
Overrides XMLType#setDerivationMethod, anyType cannot
be derived from any other type.
- setDerivationMethod in interface XMLType
derivationMethod - the derivation method.
setId
public void setId(String id)
Sets the Id for this XMLType. The Id must be globally unique
within the Schema. Use a null value to remove the Id.
- setId in interface XMLType
id - the unique Id for this XMLType
setName
public void setName(String name)
Overrides XMLType#setName. The Name of anyType cannot be changed.
- setName in interface XMLType
setParent
protected void setParent(Structure parent)
Sets the parent for this XMLType
- setParent in interface XMLType
parent - the parent Structure for this XMLType
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com