org.exolab.castor.xml.schema
public abstract class AnnotationItem 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 |
---|
AnnotationItem()
Creates a new AnnotationItem
|
Modifier and Type | Method and Description |
---|---|
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.
|
public void add(java.lang.Object object)
object
- the Object to addpublic java.lang.String getContent()
public java.util.Enumeration getObjects()
public java.lang.String getSource()
public void remove(java.lang.Object object)
object
- the Object to removepublic void setSource(java.lang.String source)
source
- the value of the source propertypublic abstract short getStructureType()
getStructureType
in class Structure
public void validate() throws ValidationException
validate
in class Structure
ValidationException
- when this Schema definition
is invalid.static final void getStringValue(AnyNode node, java.lang.StringBuffer buffer)
node
- the AnyNode to return the String value ofbuffer
- the StringBuffer to append to.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com