gov.nist.nlpir.irf.feature
Class ProxyIdxFeatWordInText

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

public class ProxyIdxFeatWordInText
extends ProxyIdxFeatWordInString

Proxy class for Indexing Features referring to a word in a text.

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:
IdxFeatWordInText, 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
ProxyIdxFeatWordInText()
          Empty constructor for deserializatiopn purpose.
ProxyIdxFeatWordInText(ProxyDataElem feature, ProxyDocument sourceDoc, ProxyDataElem sourceField, int wordCount, int paragraphCount)
           
 
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 getParagraphCount()
          Gets the positional information (paragraph number).
 void setParagraphCount(int paragraphCount)
          Sets the positional information (paragraph number).
 java.lang.String toString()
          Display method, returning the IdxFeatWordInText preceded by P .
 
Methods inherited from class gov.nist.nlpir.irf.feature.ProxyIdxFeatWordInString
getWordCount, setWordCount
 
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

ProxyIdxFeatWordInText

public ProxyIdxFeatWordInText(ProxyDataElem feature,
                              ProxyDocument sourceDoc,
                              ProxyDataElem sourceField,
                              int wordCount,
                              int paragraphCount)
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 paragraph it is extracted from.
paragraphCount - number of the paragraph this feature is in (in the sourceField argument actually).

ProxyIdxFeatWordInText

public ProxyIdxFeatWordInText()
Empty constructor for deserializatiopn purpose.
Method Detail

getParagraphCount

public final int getParagraphCount()
Gets the positional information (paragraph number).

setParagraphCount

public final void setParagraphCount(int paragraphCount)
Sets the positional information (paragraph number).

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 ProxyIdxFeatWordInString

toString

public java.lang.String toString()
Display method, returning the IdxFeatWordInText preceded by P .
Overrides:
toString in class ProxyIdxFeatWordInString