|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.infoset.fulltext.core.GenericDocument
public class GenericDocument
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.
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,FieldIF> |
fields
|
Constructor Summary | |
---|---|
GenericDocument()
|
Method Summary | |
---|---|
void |
addField(FieldIF field)
INTERNAL: Adds the given field to the document. |
FieldIF |
getField(java.lang.String name)
INTERNAL: Returns the field with the specified name. |
java.util.Collection<FieldIF> |
getFields()
INTERNAL: Returns all the fields of this document. |
void |
removeField(FieldIF field)
INTERNAL: Removes the given field from the document. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<java.lang.String,FieldIF> fields
Constructor Detail |
---|
public GenericDocument()
Method Detail |
---|
public FieldIF getField(java.lang.String name)
DocumentIF
getField
in interface DocumentIF
public java.util.Collection<FieldIF> getFields()
DocumentIF
getFields
in interface DocumentIF
public void addField(FieldIF field)
DocumentIF
addField
in interface DocumentIF
public void removeField(FieldIF field)
DocumentIF
removeField
in interface DocumentIF
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |