org.exolab.castor.xml.schema

Class Annotation

public class Annotation extends Structure

A class representing the XML Schema Annotation

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:27 $

Author: Keith Visco

Constructor Summary
Annotation()
Creates a new Annotation
Method Summary
voidaddAppInfo(AppInfo appInfo)
Adds the given AppInfo to this Annotation
voidaddDocumentation(Documentation documentation)
Adds the given Documentation to this Annotation
EnumerationgetAppInfo()
Returns an enumeration of all AppInfo elements for this Annotation
EnumerationgetDocumentation()
Returns an enumeration of all documentation elements for this Annotation
shortgetStructureType()
Returns the type of this Schema Structure
voidremoveAppInfo(AppInfo appInfo)
Removes the given AppInfo from this Annotation
voidremoveDocumentation(Documentation documentation)
Removes the given Documentation from this Annotation
voidvalidate()
Checks the validity of this Schema defintion.

Constructor Detail

Annotation

public Annotation()
Creates a new Annotation

Method Detail

addAppInfo

public void addAppInfo(AppInfo appInfo)
Adds the given AppInfo to this Annotation

Parameters: appInfo the AppInfo to add

addDocumentation

public void addDocumentation(Documentation documentation)
Adds the given Documentation to this Annotation

Parameters: documentation the documentation to add to this Annotation

getAppInfo

public Enumeration getAppInfo()
Returns an enumeration of all AppInfo elements for this Annotation

Returns: an enumeration of all AppInfo elements for this Annotation

getDocumentation

public Enumeration getDocumentation()
Returns an enumeration of all documentation elements for this Annotation

Returns: an enumeration of all documentation elements for this Annotation

getStructureType

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

Returns: the type of this Schema Structure

removeAppInfo

public void removeAppInfo(AppInfo appInfo)
Removes the given AppInfo from this Annotation

Parameters: appInfo the AppInfo to remove

removeDocumentation

public void removeDocumentation(Documentation documentation)
Removes the given Documentation from this Annotation

Parameters: documentation the Documentation to remove

validate

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

Throws: ValidationException when this Schema definition is invalid.

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