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 Details

    • m_source

      private String m_source
      Annotation item source.
    • m_content

      private List 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 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