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
Annotation item base class. The actual annotation elements are defined as
subclasses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
Content of annotation item.private String
Annotation item source.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 -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addContent
(Node node) Add annotation item content node.final void
Clear annotation item content.int
Get count of child elements.Get read-only iterator for child elements.final List
Get annotation item content list.Get annotation item source.void
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
-
Field Details
-
m_source
Annotation item source. -
m_content
Content of annotation item.
-
-
Constructor Details
-
AnnotationItem
protected AnnotationItem(int type) Constructor.- Parameters:
type
- element type
-
-
Method Details
-
getChildCount
public int getChildCount()Description copied from class:SchemaBase
Get count of child elements.- Specified by:
getChildCount
in classSchemaBase
- Returns:
- child count
-
getChildIterator
Description copied from class:SchemaBase
Get read-only iterator for child elements.- Specified by:
getChildIterator
in classSchemaBase
- Returns:
- iterator
-
getSource
Get annotation item source.- Returns:
- item source
-
setSource
Set annotation item source.- Parameters:
source
- item source
-
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
Add annotation item content node.- Parameters:
node
- annotation item content node
-