public abstract class Annotated 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 |
---|
Annotated() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(Annotation annotation)
Adds the given Annotation to this Annotated Structure.
|
Enumeration<Annotation> |
getAnnotations()
Returns an Enumeration of the Annotations contained within
this Annotated type.
|
void |
removeAnnotation(Annotation annotation)
Removes the given Annotation from this Annotated Structure.
|
getStructureType, isValid, validate
public void addAnnotation(Annotation annotation)
annotation
- the Annotation to addpublic Enumeration<Annotation> getAnnotations()
public void removeAnnotation(Annotation annotation)
annotation
- the Annotation to removeCopyright © 2019. All rights reserved.