Class SimpleTypeReference

All Implemented Interfaces:
Serializable, Referable

class SimpleTypeReference extends SimpleType
Package private class to handles simple-type references.
Version:
$Revision: 6230 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
Author:
Arnaud Berry, Keith Visco
  • Constructor Details

    • SimpleTypeReference

      SimpleTypeReference(Schema schema, String name)
      Creates a new SimpleTypeReference.
      Parameters:
      schema - the parent Schema of the simple type being referenced, must not be null.
      name - the name of the simple type being referenced, must not be null.
  • Method Details

    • getType

      XMLType getType()
      Returns the referred type
      Overrides:
      getType in class XMLType
      Returns:
      the type this type "really" represents
    • resolveTypeReference

      void resolveTypeReference()
      Resolves the type reference.
    • getStructureType

      public short getStructureType()
      Returns Structure.UNKNOWN (This class should not be seen outside AttributeDecl (and ElementDecl ?) anyway)
      Overrides:
      getStructureType in class SimpleType
      Returns:
      the type of this Schema Structure
    • setName

      public void setName(String name)
      Sets the Schema for this Union. This method overloads the SimpleType#setSchema method to prevent the Schema from being changed.
      Overrides:
      setName in class XMLType
      Parameters:
      name - the schema that this Union belongs to.
    • setSchema

      public void setSchema(Schema schema)
      Sets the Schema for this SimpleTypeReference. This method overloads the SimpleType#setSchema method to prevent the Schema from being changed.
      Overrides:
      setSchema in class XMLType
      Parameters:
      schema - the schema that this SimpleType that is being referenced belongs to.