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
Modifier and Type | Method and Description |
---|---|
void |
add(Object object)
Adds the given Object to this Annotation item.
|
String |
getContent()
Returns the String content of this Annotation item.
|
Enumeration |
getObjects()
Returns an Enumeration of all objects contained by this Annotation item.
|
String |
getSource()
Returns the source property of this Annotaion item.
|
abstract short |
getStructureType()
Returns the type of this Schema Structure
|
void |
remove(Object object)
Removes the given Object from this Annotation item.
|
void |
setSource(String source)
Sets the source property for this Annotaion item.
|
void |
validate()
Checks the validity of this Schema defintion.
|
public void add(Object object)
object
- the Object to addpublic String getContent()
public Enumeration getObjects()
public String getSource()
public void remove(Object object)
object
- the Object to removepublic void setSource(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.Copyright © 2015. All rights reserved.