Class GenericDocument

java.lang.Object
net.ontopia.infoset.fulltext.core.GenericDocument
All Implemented Interfaces:
Serializable, DocumentIF
Direct Known Subclasses:
TopicMapDocument

public class GenericDocument extends Object implements DocumentIF, Serializable
INTERNAL: The default document implementation. This class contains a single straightforward implementation of the DocumentIF interfaces. The class uses a map internally to hold its FieldIF elements.

See Also:
  • Field Details

  • Constructor Details

    • GenericDocument

      public GenericDocument()
  • Method Details

    • getField

      public FieldIF getField(String name)
      Description copied from interface: DocumentIF
      INTERNAL: Returns the field with the specified name.
      Specified by:
      getField in interface DocumentIF
    • getFields

      public Collection<FieldIF> getFields()
      Description copied from interface: DocumentIF
      INTERNAL: Returns all the fields of this document.
      Specified by:
      getFields in interface DocumentIF
      Returns:
      A collection of FieldIF objects.
    • addField

      public void addField(FieldIF field)
      Description copied from interface: DocumentIF
      INTERNAL: Adds the given field to the document.
      Specified by:
      addField in interface DocumentIF
    • removeField

      public void removeField(FieldIF field)
      Description copied from interface: DocumentIF
      INTERNAL: Removes the given field from the document.
      Specified by:
      removeField in interface DocumentIF
    • toString

      public String toString()
      Overrides:
      toString in class Object