org.jibx.schema.elements
Class AnnotationItem

java.lang.Object
  extended by org.jibx.schema.elements.SchemaBase
      extended by 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
protected AnnotationItem(int type)
          Constructor.
 
Method Summary
 void addContent(Node node)
          Add annotation item content node.
 void clearContent()
          Clear annotation item content.
 int getChildCount()
          Get count of child elements.
 Iterator getChildIterator()
          Get read-only iterator for child elements.
 List getContent()
          Get annotation item content list.
 String getSource()
          Get annotation item source.
 void setSource(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationItem

protected AnnotationItem(int type)
Constructor.

Parameters:
type - element type
Method Detail

getChildCount

public int getChildCount()
Description copied from class: SchemaBase
Get count of child elements.

Specified by:
getChildCount in class SchemaBase
Returns:
child count

getChildIterator

public Iterator getChildIterator()
Description copied from class: SchemaBase
Get read-only iterator for child elements.

Specified by:
getChildIterator in class SchemaBase
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


Copyright © 2005-2012 jibx.org. All Rights Reserved.