All Implemented Interfaces:
Serializable, Referable

public class ListType extends SimpleType
Represents a SimpleType that is a "list" of a given SimpleType.
Version:
$Revision: 7398 $ $Id: ListType.java 7398 2008-01-29 20:56:45Z wguttmn $
Author:
Arnaud Berry, Keith Visco
See Also:
  • Constructor Details

    • ListType

      public ListType(Schema schema) throws SchemaException
      Creates a new ListType.
      Parameters:
      schema - the Schema for this ListType (Cannot be null)
      Throws:
      SchemaException
  • Method Details

    • getItemType

      public SimpleType getItemType()
      Returns the simpleType for the items of this ListType.
      Returns:
      the simpleType for the items of this ListType.
    • getLocalAnnotation

      public Annotation getLocalAnnotation()
      Returns the annotation which appears local to this Union, or null if no local annotation has been set.
      Returns:
      the annotation which is local to this Union.
    • getStructureType

      public short getStructureType()
      Returns the type of this Schema Structure
      Overrides:
      getStructureType in class SimpleType
      Returns:
      the type of this Schema Structure
    • setItemType

      public void setItemType(SimpleType type)
      Sets the SimpleType for this ListType (the type of item that instances of this list holds).
      Parameters:
      type - the SimpleType for this ListType.
    • setItemType

      public void setItemType(String typeName)
      Sets the SimpleType for this ListType (the type of item that instances of this list holds).
      Parameters:
      typeName - the name of the SimpleType for this ListType.
    • setLocalAnnotation

      public void setLocalAnnotation(Annotation annotation)
      Sets an annotation which is local to this Union.
      Parameters:
      annotation - the local annotation to set for this Union.
    • setSchema

      public void setSchema(Schema schema)
      Sets the Schema for this Union. 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 Union belongs to.