Package org.exolab.castor.xml.schema
Class Annotated
java.lang.Object
org.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AttributeDecl
,AttributeGroup
,Facet
,IdentityConstraint
,IdentityField
,IdentitySelector
,Particle
,RedefineSchema
,Schema
,XMLType
A base class used for XML Structures that support annotations.
- Version:
- $Revision$ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
- 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 TypeMethodDescriptionvoid
addAnnotation
(Annotation annotation) Adds the given Annotation to this Annotated Structure.Returns an Enumeration of the Annotations contained within this Annotated type.void
removeAnnotation
(Annotation annotation) Removes the given Annotation from this Annotated Structure.Methods inherited from class org.exolab.castor.xml.schema.Structure
getStructureType, isValid, validate
-
Constructor Details
-
Annotated
public Annotated()
-
-
Method Details
-
addAnnotation
Adds the given Annotation to this Annotated Structure.- Parameters:
annotation
- the Annotation to add
-
getAnnotations
Returns an Enumeration of the Annotations contained within this Annotated type.- Returns:
- an Enumeration of the Annotation contained within this Annotated type
-
removeAnnotation
Removes the given Annotation from this Annotated Structure.- Parameters:
annotation
- the Annotation to remove
-