|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.proxy.VirtualProxy | +--gov.nist.nlpir.irf.de.ProxyDataElem | +--gov.nist.nlpir.irf.de.ProxyDeString
An instance of this class is a proxy for a DeString object.
Inner classes inherited from class gov.nist.nlpir.irf.proxy.VirtualProxy |
VirtualProxy.IMP_Entry |
Fields inherited from class gov.nist.nlpir.irf.proxy.VirtualProxy |
broker,
handles,
inMemoryProxiesByOid,
iS,
objectIdentifier,
realObject,
serialVersionUID |
Constructor Summary | |
ProxyDeString()
No-argument constructor |
|
ProxyDeString(DeString s)
Creates a proxy for the given DeString given a DeString |
|
ProxyDeString(java.lang.String s)
Creates a DeString with the given String and associates a new proxy to this DE. |
Method Summary | |
void |
addHTML(java.lang.StringBuffer baseString,
int maxNumberOfChar,
boolean form)
Adds the string to the HTML text given. |
int |
compareTo(DataElem o)
Scores the comparison between the real DeString and the given DeString |
PersistenceBroker |
createBroker()
Creates a broker for this proxy object and remember it |
boolean |
exactMatch(DataElem de)
Compares the associated DeString to another. |
java.util.Vector |
getIndexingFeatures(ProxyDocument source,
IndexingModalities im,
DataElem field)
Extracts Indexing Features from the real DeString. |
java.lang.String |
getValue()
Returns the String contained in the associated DeString. |
java.lang.String |
getValueAsString()
Returns the associated DeString's value as a String |
int |
hashCode()
Computes a hash code for the real DE_string based on the hashCode of the represented String. |
void |
HTML_ShowDoc(java.lang.StringBuffer baseString)
Adds the value of the string between H1 tags to the given string. |
float |
match(DataElem de)
Scores the match of the real DeString with another For the function to succeed, the object must be a DeString also. |
void |
present()
Writes the associated DeString to standard out |
void |
presentBrief()
Writes the associated DeString to standard out in a brief form |
void |
setValue(char[] v)
Sets the String value of the associated DeString from this char array. |
void |
setValue(java.lang.String v)
Sets the String value of the associated DeString. |
java.lang.String |
toString()
Returns the associated DeString's value as a String |
Methods inherited from class gov.nist.nlpir.irf.de.ProxyDataElem |
equals |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ProxyDeString()
public ProxyDeString(DeString s)
public ProxyDeString(java.lang.String s)
Method Detail |
public final java.lang.String getValue()
public final void setValue(java.lang.String v)
public final void setValue(char[] v)
public final java.lang.String getValueAsString()
public final java.lang.String toString()
public void present()
public void presentBrief()
public boolean exactMatch(DataElem de)
de
- the DeString to compare topublic float match(DataElem de)
de
- the DeString to compared topublic int compareTo(DataElem o)
o
- the DeString to compare toString.compareTo(java.lang.Object)
public int hashCode()
public java.util.Vector getIndexingFeatures(ProxyDocument source, IndexingModalities im, DataElem field)
source
- object reference of source document.im
- indexing modalities to be used with this DeString.field
- the document field from which this DE camepublic void addHTML(java.lang.StringBuffer baseString, int maxNumberOfChar, boolean form)
baseString
- the HTML text the value will be appended to.maxNumberOfChar
- maximum number of characters added,
used only if form is false.form
- true if the HTML code must be used in a form,
false otherwise.public void HTML_ShowDoc(java.lang.StringBuffer baseString)
public PersistenceBroker createBroker()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |