Class AnyType

All Implemented Interfaces:
Serializable

public final class AnyType extends XMLType
A Class which represents the XML Schema AnyType.
Version:
$Revision: 6230 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
Author:
Keith Visco
See Also:
  • Constructor Details

    • AnyType

      public AnyType(Schema schema)
      Creates a new AnyType for the given Schema.
  • Method Details

    • getName

      public String getName()
      Returns the name of this type. This method always returns 'anyType'.
      Overrides:
      getName in class XMLType
      Returns:
      the name of this type.
    • getStructureType

      public short getStructureType()
      Returns the type of this Schema Structure. This method returns Structure.ANYTYPE.
      Specified by:
      getStructureType in class Structure
      Returns:
      the type of this Schema Structure.
    • setName

      public void setName(String name)
      Overrides XMLType#setName. The Name of anyType cannot be changed.
      Overrides:
      setName in class XMLType
      Parameters:
      name - of the type
    • setBaseType

      public void setBaseType(XMLType baseType)
      Overrides XMLType#setBaseType(), anyType cannot have a Base type.
      Overrides:
      setBaseType in class XMLType
      Parameters:
      baseType - the base type which this datatype inherits from
    • setDerivationMethod

      public void setDerivationMethod(String derivationMethod)
      Overrides XMLType#setDerivationMethod, anyType cannot be derived from any other type.
      Overrides:
      setDerivationMethod in class XMLType
      Parameters:
      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.
      Overrides:
      setId in class XMLType
      Parameters:
      id - the unique Id for this XMLType
    • validate

      public void validate() throws ValidationException
      Checks the validity of this Schema defintion.
      Specified by:
      validate in class Structure
      Throws:
      ValidationException - when this Schema definition is invalid.
    • setParent

      protected void setParent(Structure parent)
      Sets the parent for this XMLType
      Specified by:
      setParent in class XMLType
      Parameters:
      parent - the parent Structure for this XMLType