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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenericDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(FieldIF field)INTERNAL: Adds the given field to the document.FieldIFgetField(String name)INTERNAL: Returns the field with the specified name.Collection<FieldIF>getFields()INTERNAL: Returns all the fields of this document.voidremoveField(FieldIF field)INTERNAL: Removes the given field from the document.StringtoString()
-
-
-
Method Detail
-
getField
public FieldIF getField(String name)
Description copied from interface:DocumentIFINTERNAL: Returns the field with the specified name.- Specified by:
getFieldin interfaceDocumentIF
-
getFields
public Collection<FieldIF> getFields()
Description copied from interface:DocumentIFINTERNAL: Returns all the fields of this document.- Specified by:
getFieldsin interfaceDocumentIF- Returns:
- A collection of FieldIF objects.
-
addField
public void addField(FieldIF field)
Description copied from interface:DocumentIFINTERNAL: Adds the given field to the document.- Specified by:
addFieldin interfaceDocumentIF
-
removeField
public void removeField(FieldIF field)
Description copied from interface:DocumentIFINTERNAL: Removes the given field from the document.- Specified by:
removeFieldin interfaceDocumentIF
-
-