Class ProxyIdxFeatWordInString

Direct Known Subclasses:

public class ProxyIdxFeatWordInString
extends ProxyIndexingFeature

Proxy class for Indexing Features referring to a word in a string. This particular IndexingFeature allows you to keep track of the positional information of this word with the variable wordCount. It will then allow finer grain research and display.

$Revision: 1.1 $
This software was produced by NIST, an agency of the U.S. government, and by statute is not subject to copyright in the United States. Recipients of this software assume all responsibilities associated with its operation, modification and maintenance.
See Also:
IdxFeatWordInString, Serialized Form

Inner classes inherited from class gov.nist.nlpir.irf.proxy.VirtualProxy
Fields inherited from class gov.nist.nlpir.irf.proxy.VirtualProxy
broker, handles, inMemoryProxiesByOid, iS, objectIdentifier, realObject, serialVersionUID
Constructor Summary
          No argument constructor for deserialization purpose.
ProxyIdxFeatWordInString(ProxyDataElem feature, ProxyDocument sourceDoc, ProxyDataElem sourceField, int wordCount)
Method Summary
 PersistenceBroker createBroker()
          The concrete proxy will override this method to get the broker for the proxy object @return the broker for this object
 int getWordCount()
          Access to the position information.
 void setWordCount(int wordCount)
          Sets the position information.
 java.lang.String toString()
          Writes the IdxFeatWordInString preceded by P .
Methods inherited from class gov.nist.nlpir.irf.feature.ProxyIndexingFeature
getFeature, getSourceDoc, getSourceField, makePersistent, setFeature, setSourceDoc, setSourceField
Methods inherited from class gov.nist.nlpir.irf.proxy.VirtualProxy
addRefToInMemoryProxiesByOid, deleteRefFromInMemoryProxiesByOid, dematerializeRealObject, dematerializeRealObject, getBroker, getFirstInstance, getInMemoryProxiesByOidBinCount, getInMemoryProxiesByOidSize, getInMemoryProxyCounts, getObjectIdentifier, getPersistenceBroker, getProxyFor, getRealObject, isLightweight, makeLightweight, materializeRealObject, presentInMemoryProxies, readExternal, replaceRealObject, setBroker, setIS, setObjectIdentifier, setRealObject, testInMemoryProxiesByOidTable, writeExternal
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait

Constructor Detail


public ProxyIdxFeatWordInString(ProxyDataElem feature,
                                ProxyDocument sourceDoc,
                                ProxyDataElem sourceField,
                                int wordCount)
feature - Feature to be stored.
sourceDoc - Source document to be stored.
sourceField - Field in the document from where this feature comes.
wordCount - position of this word in the String it is extracted from.


public ProxyIdxFeatWordInString()
No argument constructor for deserialization purpose.
Method Detail


public final int getWordCount()
Access to the position information.


public final void setWordCount(int wordCount)
Sets the position information.


public PersistenceBroker createBroker()
The concrete proxy will override this method to get the broker for the proxy object @return the broker for this object
createBroker in class ProxyIndexingFeature


public java.lang.String toString()
Writes the IdxFeatWordInString preceded by P .
toString in class ProxyIndexingFeature