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 void
addField(FieldIF field)
INTERNAL: Adds the given field to the document.FieldIF
getField(String name)
INTERNAL: Returns the field with the specified name.Collection<FieldIF>
getFields()
INTERNAL: Returns all the fields of this document.void
removeField(FieldIF field)
INTERNAL: Removes the given field from the document.String
toString()
-
-
-
Method Detail
-
getField
public FieldIF getField(String name)
Description copied from interface:DocumentIF
INTERNAL: Returns the field with the specified name.- Specified by:
getField
in interfaceDocumentIF
-
getFields
public Collection<FieldIF> getFields()
Description copied from interface:DocumentIF
INTERNAL: Returns all the fields of this document.- Specified by:
getFields
in interfaceDocumentIF
- 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 interfaceDocumentIF
-
removeField
public void removeField(FieldIF field)
Description copied from interface:DocumentIF
INTERNAL: Removes the given field from the document.- Specified by:
removeField
in interfaceDocumentIF
-
-