org.exolab.castor.xml.schema
Class AnnotationItem

java.lang.Object
  extended by org.exolab.castor.xml.schema.Structure
      extended by org.exolab.castor.xml.schema.AnnotationItem
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AppInfo, Documentation

public abstract class AnnotationItem
extends Structure

A class which represents the superclass of either AppInfo or Documentation element.

Version:
$Revision: 1.1 $ $Date: 2003/03/03 09:57:19 $
Author:
Keith Visco
See Also:
Serialized Form

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
AnnotationItem()
          Creates a new AnnotationItem
 
Method Summary
 void add(java.lang.Object object)
          Adds the given Object to this Annotation item.
 java.lang.String getContent()
          Returns the String content of this Annotation item.
 java.util.Enumeration getObjects()
          Returns an Enumeration of all objects contained by this Annotation item.
 java.lang.String getSource()
          Returns the source property of this Annotaion item.
(package private) static void getStringValue(AnyNode node, java.lang.StringBuffer buffer)
          Returns the concatenation of all the TEXT nodes in the given AnyNode in document order
abstract  short getStructureType()
          Returns the type of this Schema Structure
 void remove(java.lang.Object object)
          Removes the given Object from this Annotation item.
 void setSource(java.lang.String source)
          Sets the source property for this Annotaion item.
 void validate()
          Checks the validity of this Schema defintion.
 
Methods inherited from class org.exolab.castor.xml.schema.Structure
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationItem

AnnotationItem()
Creates a new AnnotationItem

Method Detail

add

public void add(java.lang.Object object)
Adds the given Object to this Annotation item.

Parameters:
object - the Object to add

getContent

public java.lang.String getContent()
Returns the String content of this Annotation item.

Returns:
the String content of this Annotation item.

getObjects

public java.util.Enumeration getObjects()
Returns an Enumeration of all objects contained by this Annotation item.

Returns:
an Enumeration of all objects contained by this Annotation item.

getSource

public java.lang.String getSource()
Returns the source property of this Annotaion item.

Returns:
the source property of this Annotation item.

remove

public void remove(java.lang.Object object)
Removes the given Object from this Annotation item.

Parameters:
object - the Object to remove

setSource

public void setSource(java.lang.String source)
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 class Structure
Returns:
the type of this Schema Structure

validate

public void validate()
              throws ValidationException
Checks the validity of this Schema defintion.

Specified by:
validate in class Structure
Throws:
ValidationException - when this Schema definition is invalid.

getStringValue

static final void getStringValue(AnyNode node,
                                 java.lang.StringBuffer buffer)
Returns the concatenation of all the TEXT nodes in the given AnyNode in document order

Parameters:
node - the AnyNode to return the String value of
buffer - the StringBuffer to append to.


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com