Public Member Functions

org.exolab.castor.xml.schema.simpletypes.ListType Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.simpletypes.ListType:
org.exolab.castor.xml.schema.SimpleType org.exolab.castor.xml.schema.XMLType org.exolab.castor.xml.schema.Referable org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure

List of all members.

Public Member Functions

 ListType (Schema schema) throws SchemaException
SimpleType getItemType ()
Annotation getLocalAnnotation ()
short getStructureType ()
void setItemType (SimpleType type)
void setItemType (String typeName)
void setLocalAnnotation (Annotation annotation)
void setSchema (Schema schema)

Detailed Description

Represents a SimpleType that is a "list" of a given SimpleType.

Author:
Arnaud Berry
Keith Visco
Version:
Revision:
1.1.1.1
Id:
ListType.java,v 1.1.1.1 2003/03/03 07:09:44 kvisco Exp

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.simpletypes.ListType.ListType ( Schema  schema  )  throws SchemaException

Creates a new ListType.

Parameters:
schema the Schema for this ListType (Cannot be null)

Member Function Documentation

SimpleType org.exolab.castor.xml.schema.simpletypes.ListType.getItemType (  ) 

Returns the simpleType for the items of this ListType.

Returns:
the simpleType for the items of this ListType.

References org.exolab.castor.xml.schema.XMLType.getName(), and org.exolab.castor.xml.schema.SimpleType.resolveReference().

Annotation org.exolab.castor.xml.schema.simpletypes.ListType.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.
short org.exolab.castor.xml.schema.simpletypes.ListType.getStructureType (  ) 

Returns the type of this Schema Structure

Returns:
the type of this Schema Structure

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

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

References org.exolab.castor.xml.schema.SimpleType.createReference(), and org.exolab.castor.xml.schema.XMLType.setBaseType().

void org.exolab.castor.xml.schema.simpletypes.ListType.setItemType ( SimpleType  type  ) 
void org.exolab.castor.xml.schema.simpletypes.ListType.setLocalAnnotation ( Annotation  annotation  ) 

Sets an annotation which is local to this Union.

Parameters:
annotation the local annotation to set for this Union.

Referenced by org.exolab.castor.xml.schema.reader.SimpleTypeListUnmarshaller.endElement().

void org.exolab.castor.xml.schema.simpletypes.ListType.setSchema ( Schema  schema  ) 

Sets the Schema for this Union. This method overloads the SimpleType.setSchema method to prevent the Schema from being changed.

Parameters:
the schema that this Union belongs to.

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


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