Package org.jibx.schema.elements
Class AnnotationItem
- java.lang.Object
-
- org.jibx.schema.elements.SchemaBase
-
- org.jibx.schema.elements.AnnotationItem
-
- All Implemented Interfaces:
IComponent
- Direct Known Subclasses:
AppInfoElement,DocumentationElement
public abstract class AnnotationItem extends SchemaBase
Annotation item base class. The actual annotation elements are defined as subclasses.
-
-
Field Summary
-
Fields inherited from class org.jibx.schema.elements.SchemaBase
ALL_TYPE, ANNOTATION_TYPE, ANY_TYPE, ANYATTRIBUTE_TYPE, APPINFO_TYPE, ATTRIBUTE_TYPE, ATTRIBUTEGROUP_TYPE, CHOICE_TYPE, COMPLEXCONTENT_TYPE, COMPLEXTYPE_TYPE, DOCUMENTATION_TYPE, ELEMENT_MASKS, ELEMENT_NAMES, ELEMENT_TYPE, ENUMERATION_TYPE, EXTENSION_TYPE, FIELD_TYPE, FRACTIONDIGITS_TYPE, GROUP_TYPE, IMPORT_TYPE, INCLUDE_TYPE, KEY_TYPE, KEYREF_TYPE, LENGTH_TYPE, LIST_TYPE, MAXEXCLUSIVE_TYPE, MAXINCLUSIVE_TYPE, MAXLENGTH_TYPE, MINEXCLUSIVE_TYPE, MININCLUSIVE_TYPE, MINLENGTH_TYPE, NOTATION_TYPE, PATTERN_TYPE, REDEFINE_TYPE, RESTRICTION_TYPE, SCHEMA_TYPE, SELECTOR_TYPE, SEQUENCE_TYPE, SIMPLECONTENT_TYPE, SIMPLETYPE_TYPE, TOTALDIGITS_TYPE, UNION_TYPE, UNIQUE_TYPE, WHITESPACE_TYPE
-
Fields inherited from interface org.jibx.schema.IComponent
SCHEMA_NAMESPACE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationItem(int type)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContent(Node node)Add annotation item content node.voidclearContent()Clear annotation item content.intgetChildCount()Get count of child elements.IteratorgetChildIterator()Get read-only iterator for child elements.ListgetContent()Get annotation item content list.StringgetSource()Get annotation item source.voidsetSource(String source)Set annotation item source.-
Methods inherited from class org.jibx.schema.elements.SchemaBase
addNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, preget, preset, prevalidate, readNamespaces, setExtension, setParent, type, validate, validateAttributes, writeNamespaces
-
-
-
-
Method Detail
-
getChildCount
public int getChildCount()
Description copied from class:SchemaBaseGet count of child elements.- Specified by:
getChildCountin classSchemaBase- Returns:
- child count
-
getChildIterator
public Iterator getChildIterator()
Description copied from class:SchemaBaseGet read-only iterator for child elements.- Specified by:
getChildIteratorin classSchemaBase- Returns:
- iterator
-
getSource
public String getSource()
Get annotation item source.- Returns:
- item source
-
setSource
public void setSource(String source)
Set annotation item source.- Parameters:
source- item source
-
getContent
public final List getContent()
Get annotation item content list. This is a list consisting of DOM nodes.- Returns:
- annotation content list
-
clearContent
public final void clearContent()
Clear annotation item content.
-
addContent
public final void addContent(Node node)
Add annotation item content node.- Parameters:
node- annotation item content node
-
-