public final class AnyType extends XMLType
NULL_ARGUMENT
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 and Description |
---|
AnyType(Schema schema)
Creates a new AnyType for the given Schema.
|
Modifier and Type | Method and Description |
---|---|
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, getBaseTypeName, getDerivationMethod, getId, getSchema, isAnyType, isComplexType, isSimpleType, setSchema
addAnnotation, getAnnotations, removeAnnotation
public AnyType(Schema schema)
public String getName()
public short getStructureType()
getStructureType
in class Structure
public void setName(String name)
public void setBaseType(XMLType baseType)
setBaseType
in class XMLType
baseType
- the base type which this datatype inherits frompublic void setDerivationMethod(String derivationMethod)
setDerivationMethod
in class XMLType
derivationMethod
- the derivation method.public void setId(String id)
public void validate() throws ValidationException
validate
in class Structure
ValidationException
- when this Schema definition
is invalid.Copyright © 2022. All rights reserved.