|
CAR (Context-Aware Retrieval) v1.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--Collection
A Collection is a vector of Documents.
See the Basic Terminology section of the User Manual for a description.
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Fields inherited from interface CarFace |
BOOLEAN_LITERAL, COLLECTION, DOUBLE_LITERAL, EXTERNAL, grammarNames, INTERNAL, KEYPHRASE, LITERALcapacityIncrement, LITERALinitialCapacity, MARKUP, SERIAL, SESSION, STRING_LITERAL, STRINGVALUE_LITERAL |
Constructor Summary | |
Collection()
constructs a collection of 0 documents |
|
Collection(java.lang.String id,
java.lang.String s)
constructs a collection of 0 elements, with the input id and title. |
Method Summary | |
void |
addDocument(Document doc)
adds the input document to the collection. |
static Collection |
deserialize(java.lang.String fn)
deserializes a collection held in the path argument. |
java.lang.String |
getCollectionId()
For system programmer use only. |
CommentTuple |
getCommentTuple()
returns the collection's commentTuple. |
Document |
getDocument(int i)
returns the ith document in the collection. |
Document |
getDocumentCopy(int i)
returns a copy of the ith document in the collection. |
java.lang.String |
getTitle()
For system programmer use only. |
int |
numberOfDocuments()
returns the number of documents in the collection. |
void |
removeCommentContainingKeyPhrase()
For system programmer use only. |
void |
serialize(java.lang.String fn)
For system programmer use only. |
void |
setCollectionId(java.lang.String id)
For system programmer use only. |
void |
setCommentTuple(CommentTuple ct)
replaes the current CommentTuple (if there is one) by the one input. |
void |
setTitle(java.lang.String s)
For system programmer use only. |
static void |
t(java.lang.String s)
Provides trace output of string if -dCollection on command line of CAR run |
java.lang.String |
toString()
converts the collection to a string. |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
|
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public Collection()
public Collection(java.lang.String id, java.lang.String s)
Method Detail |
public static void t(java.lang.String s)
public static Collection deserialize(java.lang.String fn)
fn
- path of serialized collection.public void setCollectionId(java.lang.String id)
public void setTitle(java.lang.String s)
public void setCommentTuple(CommentTuple ct)
public int numberOfDocuments()
public void addDocument(Document doc)
public java.lang.String getCollectionId()
public java.lang.String getTitle()
public CommentTuple getCommentTuple()
public void removeCommentContainingKeyPhrase()
public Document getDocument(int i)
i
- the document index (starting at zero).public Document getDocumentCopy(int i)
i
- the document index (starting at zero).public void serialize(java.lang.String fn)
public java.lang.String toString()
toString
in class java.util.Vector
|
CAR (Context-Aware Retrieval) v1.0 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |