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

public abstract class Annotated extends Structure
A base class used for XML Structures that support annotations.
Version:
$Revision: 7996 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
Author:
Keith Visco
See Also:
  • Constructor Details

    • Annotated

      public Annotated()
  • Method Details

    • addAnnotation

      public void addAnnotation(Annotation annotation)
      Adds the given Annotation to this Annotated Structure.
      Parameters:
      annotation - the Annotation to add
    • getAnnotations

      public Enumeration<Annotation> getAnnotations()
      Returns an Enumeration of the Annotations contained within this Annotated type.
      Returns:
      an Enumeration of the Annotation contained within this Annotated type
    • removeAnnotation

      public void removeAnnotation(Annotation annotation)
      Removes the given Annotation from this Annotated Structure.
      Parameters:
      annotation - the Annotation to remove