|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface provides the skeleton all data element classes must comply
with
IRF provides several base Data Elements but developpers can write their
own ones to handle specific types of information, like speech or images.
DataElems must provide function to be compared to other DataElems so that
indexing and retrieval can be done.
DataElems must also provide a hashCode() function based on the value they
represent so that they can be indexed.
Method Summary | |
void |
addHTML(java.lang.StringBuffer baseString,
int maxNrChar,
boolean form)
Adds the value of the DataElem to the string given in parameter. |
int |
compareTo(DataElem o)
Compares the current object to the given object, which must be of the same type. |
boolean |
equals(java.lang.Object other)
Extends the default definition of equals(Object) in Object. |
boolean |
exactMatch(DataElem de)
Compares this DataElem to another. |
java.util.Vector |
getIndexingFeatures(ProxyDocument source,
IndexingModalities im,
DataElem sourceField)
Returns the indexing features of this data element. |
java.lang.String |
getValueAsString()
Returns the string representation of the value of the DataElem Note: may be different of getAsString(), when object embeds other ones for instance. |
int |
hashCode()
Extends the default definition of hashCode() in Object. |
void |
HTML_ShowDoc(java.lang.StringBuffer string)
Appends a HTML representation of the DataElem to the given string, allowing to create HTML docs from DataElems. |
float |
match(DataElem de)
Matches score of this DataElem with another. |
void |
present()
Each DataElem has to provide a function to present itself so that the tree of DataElems can be browsed and checked. |
void |
presentBrief()
Same as present() but the presentation can be shorter. |
java.lang.String |
toString()
Returns the string representation of the DataElem |
Method Detail |
public void present()
public void presentBrief()
public float match(DataElem de)
de
- the DataElem this is compared with.public boolean exactMatch(DataElem de)
de
- the DataElem this is compared with.public java.util.Vector getIndexingFeatures(ProxyDocument source, IndexingModalities im, DataElem sourceField)
source
- source document of data elementim
- the controlling indexing modalitiessourceField
- the document field from which the data element camepublic java.lang.String getValueAsString()
public java.lang.String toString()
public int compareTo(DataElem o)
o
- the object this is compared to. Must be of the same type.public int hashCode()
Hashtable
,
Object
public boolean equals(java.lang.Object other)
Object.equals(java.lang.Object)
public void addHTML(java.lang.StringBuffer baseString, int maxNrChar, boolean form)
baseString
- the string to which the HTML value will be appended.
Caution : the String is modified.maxNrChar
- maximum number of characters this function will add
to the string.form
- if true, the text will be used to create a form, otherwise
it won't be.public void HTML_ShowDoc(java.lang.StringBuffer string)
string
- the HTML text the representation will be added to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |