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: 7398 $ $Id: ListType.java 7398 2008-01-29 20:56:45Z wguttmn $
- Author:
- Arnaud Berry, Keith Visco
- See Also:
-
Field Summary
Fields inherited from class SimpleType
FINAL_ALL, FINAL_LIST, FINAL_RESTRICTION, FINAL_UNIONModifier and TypeFieldDescriptionstatic final StringThe value of the final attribute used for blocking all types of derivation.static final StringThe value of the final attribute used for blocking list derivation.static final StringThe value of the final attribute used for blocking restriction derivation.static final StringThe value of the final attribute used for blocking union derivation.Fields inherited from class XMLType
NULL_ARGUMENTFields inherited from class 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, WILDCARDModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final short -
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.shortReturns the type of this Schema StructurevoidsetItemType(String typeName) Sets the SimpleType for this ListType (the type of item that instances of this list holds).voidsetItemType(SimpleType type) Sets the SimpleType for this ListType (the type of item that instances of this list holds).voidsetLocalAnnotation(Annotation annotation) Sets an annotation which is local to this Union.voidSets the Schema for this Union.Methods inherited from class 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, validateModifier and TypeMethodDescriptionvoidAdds the given Facet to this Simpletype.protected voidcopyFacets(SimpleType target) Copy this type's facets to the target type.protected SimpleTypecreateReference(String name) A helper method for classes which extend SimpleType.Returns the built in type this type is derived from.Returns an enumeration of the effective facets for this type.Returns the first facet associated with the given name.Returns an Enumeration of all the Facets (including inherited) facets for this type.Returns the facets associated with the given name.getFinal()Returns the value of the 'final' property, indicating which types of derivation are not allowed, or null if the final property has not been set.Returns the value of the length facet result can be nullReturns the facets of this type (without the parent's facets).Returns the value of the maxlength facet result can be nullReturns the value of the minlength facet result can be nullintgetNumberOfFacets(String name) Returns the number of facets named 'name' within the list of facets of this simple type.Returns the parent Structure that contains this SimpleType.Returns the Id used to Refer to this Object.intGets the code for this simple type.booleanReturns true if thisSimpleTypehas a specifiedFacetwith the given name.booleanReturns true if this SimpleType is a built in type.booleanIndicates whether thisSimpleTypeis a date/time type.booleanIndicates whether thisSimpleTypeis a numeric type.booleanReturns true if this simpleType is a redefinition.booleanremoveFacet(String name) Removes the facet with the given name from this SimpleType.booleanremoveFacet(Facet facet) Removes the given Facet from this SimpleType.protected static SimpleTyperesolveReference(SimpleType simpleType) A helper method for classes which extend SimpleType.voidSets the value of the 'final' property, indicating which types of derivation are not allowed.protected voidSets the parent for this SimpleTypevoidSets this Group has redefined.voidvalidate()Checks the validity of this SimpleType definition.Methods inherited from class XMLType
getBaseType, getBaseTypeName, getDerivationMethod, getId, getName, getSchema, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setNameModifier and TypeMethodDescriptionReturns the base type that this type inherits from.If this type has a base type, this returns its name.
Returns null otherwise.Gets the name of the derivation method used to derive this type from its parent.getId()Returns the Id for this ComplexType, or null if no Id has been set.getName()Returns the name of this type (null if none was defined)Returns the schema to which this type belongsfinal booleanReturns true if this XMLType is an AnyTypefinal booleanReturns true if this XMLType is a ComplexTypefinal booleanReturns true if this XMLType is a SimpleTypevoidsetBaseType(XMLType baseType) Sets the base type for this datatypevoidsetDerivationMethod(String derivationMethod) Sets the derivation method namevoidSets the Id for this XMLType.voidSets the name of this typeMethods inherited from class Annotated
addAnnotation, getAnnotations, removeAnnotationModifier and TypeMethodDescriptionvoidaddAnnotation(Annotation annotation) Adds the given Annotation to this Annotated Structure.Returns an Enumeration of the Annotations contained within this Annotated type.voidremoveAnnotation(Annotation annotation) Removes the given Annotation from this Annotated Structure.
-
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:
getStructureTypein 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
-