Package org.exolab.castor.xml.schema
Class Annotation
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotation
- All Implemented Interfaces:
Serializable
A class representing the XML Schema Annotation.
- Version:
- $Revision: 7996 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
- 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAppInfo(AppInfo appInfo) Adds the givenAppInfoto this annotation.voidaddDocumentation(Documentation documentation) Adds the given Documentation to this Annotation.Returns an enumeration of allAppInfoelements for this Annotation.Returns an enumeration of all documentation elements for this Annotation.shortReturns the type of this Schema Structure.voidremoveAppInfo(AppInfo appInfo) Removes the given AppInfo from this Annotation.voidremoveDocumentation(Documentation documentation) Removes the givenDocumentationfrom this Annotation.voidvalidate()Checks the validity of this Schema definition.
-
Constructor Details
-
Annotation
public Annotation()
-
-
Method Details
-
addAppInfo
Adds the givenAppInfoto this annotation.- Parameters:
appInfo- the AppInfo to add
-
addDocumentation
Adds the given Documentation to this Annotation.- Parameters:
documentation- the documentation to add to this Annotation
-
getAppInfo
Returns an enumeration of allAppInfoelements for this Annotation.- Returns:
- an enumeration of all
AppInfoelements for this Annotation
-
getDocumentation
Returns an enumeration of all documentation elements for this Annotation.- Returns:
- an enumeration of all documentation elements for this Annotation
-
removeAppInfo
Removes the given AppInfo from this Annotation.- Parameters:
appInfo- the AppInfo to remove
-
removeDocumentation
Removes the givenDocumentationfrom this Annotation.- Parameters:
documentation- the Documentation to remove
-
getStructureType
public short getStructureType()Returns the type of this Schema Structure.- Specified by:
getStructureTypein classStructure- Returns:
- the type of this Schema Structure
-
validate
Checks the validity of this Schema definition.- Specified by:
validatein classStructure- Throws:
ValidationException- when this Schema definition is invalid.
-