Public Member Functions | Protected Member Functions

org.exolab.castor.xml.schema.AnyType Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.AnyType:
org.exolab.castor.xml.schema.XMLType org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure

List of all members.

Public Member Functions

 AnyType (Schema schema)
String getName ()
short getStructureType ()
synchronized void setName (String name)
void setBaseType (XMLType baseType)
void setDerivationMethod (String derivationMethod)
void setId (String id)
void validate () throws ValidationException

Protected Member Functions

void setParent (Structure parent)

Detailed Description

A Class which represents the XML Schema AnyType.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:27

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.AnyType.AnyType ( Schema  schema  ) 

Creates a new AnyType for the given Schema.

References org.exolab.castor.xml.schema.XMLType.setSchema().


Member Function Documentation

String org.exolab.castor.xml.schema.AnyType.getName (  ) 

Returns the name of this type. This method always returns 'anyType'.

Returns:
the name of this type.

Reimplemented from org.exolab.castor.xml.schema.XMLType.

short org.exolab.castor.xml.schema.AnyType.getStructureType (  )  [virtual]

Returns the type of this Schema Structure. This method returns Structure.ANYTYPE.

Returns:
the type of this Schema Structure.

Implements org.exolab.castor.xml.schema.Structure.

void org.exolab.castor.xml.schema.AnyType.setBaseType ( XMLType  baseType  ) 

Overrides XMLType.setBaseType(), anyType cannot have a Base type.

Parameters:
base the base type which this datatype inherits from

Reimplemented from org.exolab.castor.xml.schema.XMLType.

void org.exolab.castor.xml.schema.AnyType.setDerivationMethod ( String  derivationMethod  ) 

Overrides XMLType.setDerivationMethod, anyType cannot be derived from any other type.

Parameters:
derivationMethod the derivation method.

Reimplemented from org.exolab.castor.xml.schema.XMLType.

void org.exolab.castor.xml.schema.AnyType.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.

Parameters:
id the unique Id for this XMLType

Reimplemented from org.exolab.castor.xml.schema.XMLType.

synchronized void org.exolab.castor.xml.schema.AnyType.setName ( String  name  ) 

Overrides XMLType.setName. The Name of anyType cannot be changed.

Parameters:
name of the type

Reimplemented from org.exolab.castor.xml.schema.XMLType.

void org.exolab.castor.xml.schema.AnyType.setParent ( Structure  parent  )  [protected, virtual]

Sets the parent for this XMLType

Parameters:
parent the parent Structure for this XMLType

Implements org.exolab.castor.xml.schema.XMLType.

void org.exolab.castor.xml.schema.AnyType.validate (  )  throws ValidationException [virtual]

Checks the validity of this Schema defintion.

Exceptions:
ValidationException when this Schema definition is invalid.

Implements org.exolab.castor.xml.schema.Structure.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties