Class SimpleTypeDefinition

java.lang.Object
org.exolab.castor.xml.schema.reader.SimpleTypeDefinition

public class SimpleTypeDefinition extends Object
A simple class used when unmarshalling simpleTypes
Version:
$Revision: 7492 $ $Date: 2004-10-01 07:25:46 -0600 (Fri, 01 Oct 2004) $
Author:
Keith Visco
  • Constructor Details

    • SimpleTypeDefinition

      public SimpleTypeDefinition(Schema schema, String name, String id)
  • Method Details

    • addFacet

      public void addFacet(Facet facet)
      Adds the given Facet to the list of Facets for this SimpleTypeDefinition
      Parameters:
      facet - the Facet to add
    • createSimpleType

      public SimpleType createSimpleType()
      Creates the SimpleType instance which represents this SimpleTypeDefinition
      Returns:
      the new SimpleType instance.
    • setBaseType

      public void setBaseType(SimpleType baseType)
      Sets the base type for this SimpleTypeDefinition. This method is mutually exclusive with #setBaseTypeName
      Parameters:
      baseType - the base type for this SimpleTypeDefinition
    • setFinal

      public void setFinal(String finalValue)
      Sets the value of the 'final' property, indicating which types of derivation are not allowed. A null value will indicate all types of derivation (list, restriction, union) are allowed.
      Parameters:
      finalValue - the value of the final property.