|
||||||||||
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.ProxyDeInteger
Proxy representation of a integer as a DataElem.
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 | |
ProxyDeInteger()
No-argument constructor |
|
ProxyDeInteger(DeInteger v)
Creates a ProxyDeInteger that represents the given integer. |
|
ProxyDeInteger(int v)
Creates a ProxyDeInteger that represents the given integer. |
|
ProxyDeInteger(java.lang.String v)
Creates a ProxyDeInteger that represents the given integer. |
Method Summary | |
void |
addHTML(java.lang.StringBuffer baseString,
int i,
boolean form)
Appends the string representation of this to the given HTML text. Caution: string is modified by this function. |
int |
compareTo(DataElem o)
Computes the difference between the real DeInteger and the given DeInteger. |
PersistenceBroker |
createBroker()
Creates a broker for this proxy object and remembers it |
boolean |
exactMatch(DataElem de)
Compares the values of the real DE_Intger and the given DeInteger and sets the result. |
java.util.Vector |
getIndexingFeatures(ProxyDocument source,
IndexingModalities im,
DataElem field)
Gets the (actually unique) indexing feature of this ProxyDeInteger. |
int |
getValue()
Return the value of the represented integer |
java.lang.String |
getValueAsString()
Returns a string representation of the integer |
int |
hashCode()
Redefines the default Object.hashCode(). |
void |
HTML_ShowDoc(java.lang.StringBuffer baseString)
Appends a string representation of the real DeInteger to the given string. |
float |
match(DataElem de)
Computes the matching score between the real DeInteger and the given DeInteger. |
void |
present()
Prints the value of the represented integer. |
void |
presentBrief()
Exactly the same thing as present(): prints the value. |
void |
setValue(int v)
Sets the value of the represented integer |
java.lang.String |
toString()
Returns a string representation of the integer |
Methods inherited from class gov.nist.nlpir.irf.de.ProxyDataElem |
equals |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ProxyDeInteger()
public ProxyDeInteger(DeInteger v)
v
- the value of the represented integer as DeInteger.public ProxyDeInteger(int v)
v
- the value of the represented integer.public ProxyDeInteger(java.lang.String v)
v
- the value of the integer as a string.Method Detail |
public final int getValue()
public final void setValue(int v)
v
- the new value of the represented integer.public void present()
public void presentBrief()
public final java.lang.String getValueAsString()
public final java.lang.String toString()
public java.util.Vector getIndexingFeatures(ProxyDocument source, IndexingModalities im, DataElem field)
source
- the Document in which the integer was read.im
- the controlling indexing modalitiesthe
- document field from which this data element camepublic boolean exactMatch(DataElem de)
de
- the DeInteger to compare topublic float match(DataElem de)
de
- the DeInteger this is compared to.public int compareTo(DataElem o)
o
- the DeInteger this is compared to.public int hashCode()
Hashtable
,
Object
public void addHTML(java.lang.StringBuffer baseString, int i, boolean form)
baseString
- the text to be extended by this. Caution: string
itself is modified.i
- not used.form
- not used.public void HTML_ShowDoc(java.lang.StringBuffer baseString)
baseString
- the string to be completed.public PersistenceBroker createBroker()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |