Class ListType
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.XMLType
org.exolab.castor.xml.schema.SimpleType
org.exolab.castor.xml.schema.simpletypes.ListType
- All Implemented Interfaces:
Serializable
,Referable
Represents a SimpleType that is a "list" of a given SimpleType.
- Version:
- $Revision$ $Id$
- Author:
- Arnaud Berry, Keith Visco
- See Also:
-
Field Summary
Fields inherited from class org.exolab.castor.xml.schema.SimpleType
FINAL_ALL, FINAL_LIST, FINAL_RESTRICTION, FINAL_UNION
Fields inherited from class org.exolab.castor.xml.schema.XMLType
NULL_ARGUMENT
Fields inherited from class org.exolab.castor.xml.schema.Structure
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the simpleType for the items of this ListType.Returns the annotation which appears local to this Union, or null if no local annotation has been set.short
Returns the type of this Schema Structurevoid
setItemType
(String typeName) Sets the SimpleType for this ListType (the type of item that instances of this list holds).void
setItemType
(SimpleType type) Sets the SimpleType for this ListType (the type of item that instances of this list holds).void
setLocalAnnotation
(Annotation annotation) Sets an annotation which is local to this Union.void
Sets the Schema for this Union.Methods inherited from class org.exolab.castor.xml.schema.SimpleType
addFacet, copyFacets, createReference, getBuiltInBaseType, getEffectiveFacets, getFacet, getFacets, getFacets, getFinal, getLength, getLocalFacets, getMaxLength, getMinLength, getNumberOfFacets, getParent, getReferenceId, getTypeCode, hasFacet, isBuiltInType, isDateTimeType, isNumericType, isRedefined, removeFacet, removeFacet, resolveReference, setFinal, setParent, setRedefined, validate
Methods inherited from class org.exolab.castor.xml.schema.XMLType
getBaseType, getBaseTypeName, getDerivationMethod, getId, getName, getSchema, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName
Methods inherited from class org.exolab.castor.xml.schema.Annotated
addAnnotation, getAnnotations, removeAnnotation
-
Constructor Details
-
ListType
Creates a new ListType.- Parameters:
schema
- the Schema for this ListType (Cannot be null)- Throws:
SchemaException
-
-
Method Details
-
getItemType
Returns the simpleType for the items of this ListType.- Returns:
- the simpleType for the items of this 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.
-
getStructureType
public short getStructureType()Returns the type of this Schema Structure- Overrides:
getStructureType
in classSimpleType
- Returns:
- the type of this Schema Structure
-
setItemType
Sets the SimpleType for this ListType (the type of item that instances of this list holds).- Parameters:
type
- the SimpleType for this ListType.
-
setItemType
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
Sets an annotation which is local to this Union.- Parameters:
annotation
- the local annotation to set for this Union.
-
setSchema
-