|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
public class ListType
Represents a SimpleType that is a "list" of a given SimpleType.
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 | |
---|---|
ListType(Schema schema)
Creates a new ListType. |
Method Summary | |
---|---|
SimpleType |
getItemType()
Returns the simpleType for the items of this ListType. |
Annotation |
getLocalAnnotation()
Returns the annotation which appears local to this Union, or null if no local annotation has been set. |
short |
getStructureType()
Returns the type of this Schema Structure |
void |
setItemType(SimpleType type)
Sets the SimpleType for this ListType (the type of item that instances of this list holds). |
void |
setItemType(java.lang.String typeName)
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 |
setSchema(Schema schema)
Sets the Schema for this Union. |
Methods inherited from class org.exolab.castor.xml.schema.SimpleType |
---|
addFacet, copyFacets, createReference, getBuiltInBaseType, getFacet, getFacets, getFacets, getFinal, getLength, getLocalFacets, getMaxLength, getMinLength, getParent, getReferenceId, getTypeCode, hasFacet, isBuiltInType, isRedefined, removeFacet, removeFacet, resolveReference, setFinal, setParent, setRedefined, validate |
Methods inherited from class org.exolab.castor.xml.schema.XMLType |
---|
getBaseType, getDerivationMethod, getId, getName, getSchema, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setId, setName |
Methods inherited from class org.exolab.castor.xml.schema.Annotated |
---|
addAnnotation, getAnnotations, removeAnnotation |
Methods inherited from class org.exolab.castor.xml.schema.Structure |
---|
isValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListType(Schema schema) throws SchemaException
schema
- the Schema for this ListType (Cannot be null)
SchemaException
Method Detail |
---|
public SimpleType getItemType()
public Annotation getLocalAnnotation()
public short getStructureType()
getStructureType
in class SimpleType
public void setItemType(SimpleType type)
type
- the SimpleType for this ListType.public void setItemType(java.lang.String typeName)
typeName
- the name of the SimpleType for this ListType.public void setLocalAnnotation(Annotation annotation)
annotation
- the local annotation to set for this Union.public void setSchema(Schema schema)
setSchema
in class XMLType
the
- schema that this Union belongs to.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |