|
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 | +--Document
A Document is a vector of Fields. In CAR it's sometimes referred to as a stick-e note, context, or just note.
See the Basic Terminology section of the User Manual for more information.
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 | |
Document()
constructs a vector of 0 fields |
|
Document(java.lang.String s)
For system programmer use only. |
|
Document(java.lang.String id,
java.lang.String s)
For system programmer use only. |
Method Summary | |
void |
addComment(java.lang.String comment)
add a comment to the CommentTuple of this document. |
void |
addField(Field f)
add the input field to the document. |
java.lang.Object |
clone()
create a clone (copy) of the document. |
Document |
copy()
create a clone (copy) of the document. |
Field |
duplicateFields()
checks for duplicate fields in the document. |
java.lang.String |
getDocId()
For system programmer use only. |
Field |
getField(int i)
gets the ith field of the document. |
Field |
getField(java.lang.String name)
get the the field with the input name. |
Field |
getNamedFieldWithoutAttribute(java.lang.String fieldName,
java.lang.String attributeName)
gets the first field with given name that doesn't have the given attribute. |
boolean |
hasField(java.lang.String name)
indicates whether the document has the named field. |
int |
numberOfFields()
returns the number of fields in the document |
void |
removeAttribute(java.lang.String attributeName)
rmoves the named attribute from all fields in the document |
void |
setCommentTuple(CommentTuple ct)
set the CommentTuple of this document. |
void |
setField(java.lang.String name)
create a field with the input name as the first 0th field of this document. |
void |
t(java.lang.String s)
Provides trace output of string if -dDocument on command line of CAR run |
java.lang.String |
toString()
converts the document to a string. |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, 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 Document()
public Document(java.lang.String s)
public Document(java.lang.String id, java.lang.String s)
Method Detail |
public void t(java.lang.String s)
public java.lang.Object clone()
clone
in class java.util.Vector
public Document copy()
public void setCommentTuple(CommentTuple ct)
ct
- a CommentTuplepublic void addComment(java.lang.String comment)
comment
- the string comment to be addedpublic java.lang.String getDocId()
public int numberOfFields()
public boolean hasField(java.lang.String name)
name
- the name tag of the fieldpublic void setField(java.lang.String name)
name
- the name tag of the fieldpublic void addField(Field f)
f
- the field to be added.public Field getField(java.lang.String name)
name
- the field name to be found.public Field getField(int i)
public void removeAttribute(java.lang.String attributeName)
public Field getNamedFieldWithoutAttribute(java.lang.String fieldName, java.lang.String attributeName)
fieldName
- field name to look forattributeName
- attribute name that mustn't be in the desired fieldpublic Field duplicateFields()
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 |