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 Modifier and Type Field Description private java.util.List
m_content
Content of annotation item.private java.lang.String
m_source
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 Modifier Constructor Description protected
AnnotationItem(int type)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContent(org.w3c.dom.Node node)
Add annotation item content node.void
clearContent()
Clear annotation item content.int
getChildCount()
Get count of child elements.java.util.Iterator
getChildIterator()
Get read-only iterator for child elements.java.util.List
getContent()
Get annotation item content list.java.lang.String
getSource()
Get annotation item source.void
setSource(java.lang.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:SchemaBase
Get count of child elements.- Specified by:
getChildCount
in classSchemaBase
- Returns:
- child count
-
getChildIterator
public java.util.Iterator getChildIterator()
Description copied from class:SchemaBase
Get read-only iterator for child elements.- Specified by:
getChildIterator
in classSchemaBase
- Returns:
- iterator
-
getSource
public java.lang.String getSource()
Get annotation item source.- Returns:
- item source
-
setSource
public void setSource(java.lang.String source)
Set annotation item source.- Parameters:
source
- item source
-
getContent
public final java.util.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(org.w3c.dom.Node node)
Add annotation item content node.- Parameters:
node
- annotation item content node
-
-