public class Annotation extends 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 and Description |
|---|
Annotation()
Creates a new Annotation
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAppInfo(AppInfo appInfo)
Adds the given AppInfo to this Annotation
|
void |
addDocumentation(Documentation documentation)
Adds the given Documentation to this Annotation
|
java.util.Enumeration |
getAppInfo()
Returns an enumeration of all AppInfo elements for this Annotation
|
java.util.Enumeration |
getDocumentation()
Returns an enumeration of all documentation elements for this Annotation
|
short |
getStructureType()
Returns the type of this Schema Structure
|
void |
removeAppInfo(AppInfo appInfo)
Removes the given AppInfo from this Annotation
|
void |
removeDocumentation(Documentation documentation)
Removes the given Documentation from this Annotation
|
void |
validate()
Checks the validity of this Schema defintion.
|
public void addAppInfo(AppInfo appInfo)
appInfo - the AppInfo to addpublic void addDocumentation(Documentation documentation)
documentation - the documentation to add to this Annotationpublic java.util.Enumeration getAppInfo()
public java.util.Enumeration getDocumentation()
public void removeAppInfo(AppInfo appInfo)
appInfo - the AppInfo to removepublic void removeDocumentation(Documentation documentation)
documentation - the Documentation to removepublic short getStructureType()
getStructureType in class Structurepublic void validate()
throws ValidationException
validate in class StructureValidationException - when this Schema definition
is invalid.Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com