org.exolab.castor.xml.schema.simpletypes
Class ListType
- Referable, java.io.Serializable
Represents a SimpleType that is a "list" of a given
SimpleType.
$Revision: 1.1.1.1 $ $Id: ListType.java,v 1.1.1.1 2003/03/03 07:09:44 kvisco Exp $
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 |
addFacet , copyFacets , createReference , getBuiltInBaseType , getFacet , getFacets , getFacets , getFinal , getLength , getLocalFacets , getMaxLength , getMinLength , getParent , getReferenceId , getStructureType , getTypeCode , hasFacet , isBuiltInType , resolveReference , setFinal , setParent , setTypeCode , validate |
getBaseType , getDerivationMethod , getId , getName , getSchema , getType , isAnyType , isComplexType , isSimpleType , setBaseType , setDerivationMethod , setId , setName , setParent , setSchema |
ListType
public ListType(Schema schema)
throws SchemaException
Creates a new ListType.
schema
- the Schema for this ListType (Cannot be null)
getItemType
public SimpleType getItemType()
Returns the simpleType for the items of this ListType.
- 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.
- the annotation which is local to this Union.
getStructureType
public short getStructureType()
Returns the type of this Schema Structure
- getStructureType in interface SimpleType
- the type of this Schema Structure
setItemType
public void setItemType(String typeName)
Sets the SimpleType for this ListType (the type of
item that instances of this list holds).
typeName
- the name of the SimpleType for this ListType.
setItemType
public void setItemType(SimpleType type)
Sets the SimpleType for this ListType (the type of
item that instances of this list holds).
type
- the SimpleType for this ListType.
setLocalAnnotation
public void setLocalAnnotation(Annotation annotation)
Sets an annotation which is local to this Union.
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.
- setSchema in interface XMLType
Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com