org.exolab.castor.xml.schema

Class AnnotationItem

public abstract class AnnotationItem extends Structure

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

Constructor Summary
AnnotationItem()
Creates a new AnnotationItem
Method Summary
voidadd(Object object)
Adds the given Object to this Annotation item.
StringgetContent()
Returns the String content of this Annotation item.
EnumerationgetObjects()
Returns an Enumeration of all objects contained by this Annotation item.
StringgetSource()
Returns the source property of this Annotaion item.
static voidgetStringValue(AnyNode node, StringBuffer buffer)
Returns the concatenation of all the TEXT nodes in the given AnyNode in document order
abstract shortgetStructureType()
Returns the type of this Schema Structure
voidremove(Object object)
Removes the given Object from this Annotation item.
voidsetSource(String source)
Sets the source property for this Annotaion item.
voidvalidate()
Checks the validity of this Schema defintion.

Constructor Detail

AnnotationItem

AnnotationItem()
Creates a new AnnotationItem

Method Detail

add

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

Parameters: object the Object to add

getContent

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

Returns: the String content of this Annotation item.

getObjects

public 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 String getSource()
Returns the source property of this Annotaion item.

Returns: the source property of this Annotation item.

getStringValue

static final void getStringValue(AnyNode node, 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.

getStructureType

public abstract short getStructureType()
Returns the type of this Schema Structure

Returns: the type of this Schema Structure

remove

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

Parameters: object the Object to remove

setSource

public void setSource(String source)
Sets the source property for this Annotaion item.

Parameters: source the value of the source property

validate

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

Throws: ValidationException when this Schema definition is invalid.

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