gov.nist.nlpir.irf.feature
Class ProxyIdxFeatWordInString

java.lang.Object
  |
  +--gov.nist.nlpir.irf.proxy.VirtualProxy
        |
        +--gov.nist.nlpir.irf.feature.ProxyIndexingFeature
              |
              +--gov.nist.nlpir.irf.feature.ProxyIdxFeatWordInString
Direct Known Subclasses:
ProxyIdxFeatWordInText

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.

Version:
$Revision: 1.1 $
Author:
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
VirtualProxy.IMP_Entry
 
Fields inherited from class gov.nist.nlpir.irf.proxy.VirtualProxy
broker, handles, inMemoryProxiesByOid, iS, objectIdentifier, realObject, serialVersionUID
 
Constructor Summary
ProxyIdxFeatWordInString()
          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

ProxyIdxFeatWordInString

public ProxyIdxFeatWordInString(ProxyDataElem feature,
                                ProxyDocument sourceDoc,
                                ProxyDataElem sourceField,
                                int wordCount)
Parameters:
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.

ProxyIdxFeatWordInString

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

getWordCount

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

setWordCount

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

createBroker

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

toString

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