Package org.exolab.castor.xml.schema
Class AnnotationItem
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.AnnotationItem
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AppInfo
,Documentation
A class which represents the superclass of
either AppInfo or Documentation element.
- Version:
- $Revision: 5951 $ $Date: 2003-03-03 02:57:21 -0700 (Mon, 03 Mar 2003) $
- Author:
- Keith Visco
- See Also:
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given Object to this Annotation item.Returns the String content of this Annotation item.Returns an Enumeration of all objects contained by this Annotation item.Returns the source property of this Annotaion item.abstract short
Returns the type of this Schema Structurevoid
Removes the given Object from this Annotation item.void
Sets the source property for this Annotaion item.void
validate()
Checks the validity of this Schema defintion.
-
Method Details
-
add
Adds the given Object to this Annotation item.- Parameters:
object
- the Object to add
-
getContent
Returns the String content of this Annotation item.- Returns:
- the String content of this Annotation item.
-
getObjects
Returns an Enumeration of all objects contained by this Annotation item.- Returns:
- an Enumeration of all objects contained by this Annotation item.
-
getSource
Returns the source property of this Annotaion item.- Returns:
- the source property of this Annotation item.
-
remove
Removes the given Object from this Annotation item.- Parameters:
object
- the Object to remove
-
setSource
Sets the source property for this Annotaion item.- Parameters:
source
- the value of the source property
-
getStructureType
public abstract short getStructureType()Returns the type of this Schema Structure- Specified by:
getStructureType
in classStructure
- Returns:
- the type of this Schema Structure
-
validate
Checks the validity of this Schema defintion.- Specified by:
validate
in classStructure
- Throws:
ValidationException
- when this Schema definition is invalid.
-