gov.nist.nlpir.irf.feature
Class ProxyIndexingFeature

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

public class ProxyIndexingFeature
extends VirtualProxy

Proxy class for Indexing Features.

Version:
$Revision: 1.2 $
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:
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
ProxyIndexingFeature()
          No argument constructor for deserialization purpose.
ProxyIndexingFeature(ProxyDataElem feature, ProxyDocument sourceDoc, ProxyDataElem sourceField)
           
 
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
 ProxyDataElem getFeature()
           
 ProxyDocument getSourceDoc()
           
 ProxyDataElem getSourceField()
           
 void makePersistent()
          Override VirtualProxy's method with the same name.
 void setFeature(ProxyDataElem feature)
           
 void setSourceDoc(ProxyDocument sourceDoc)
           
 void setSourceField(ProxyDataElem sourceField)
           
 java.lang.String toString()
          Returns string representation of indexing feature showing feature and source, preceded by P .
 
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

ProxyIndexingFeature

public ProxyIndexingFeature(ProxyDataElem feature,
                            ProxyDocument sourceDoc,
                            ProxyDataElem sourceField)
Parameters:
feature - Feature to be stored.
sourceDoc - Source document to be stored.
sourceField - Field in the document from where this feature comes.

ProxyIndexingFeature

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

getFeature

public final ProxyDataElem getFeature()
See Also:
IndexingFeature.getFeature()

getSourceDoc

public final ProxyDocument getSourceDoc()
See Also:
IndexingFeature.getSourceDoc()

getSourceField

public final ProxyDataElem getSourceField()
See Also:
IndexingFeature.getSourceField()

setFeature

public void setFeature(ProxyDataElem feature)
See Also:
IndexingFeature.setFeature(gov.nist.nlpir.irf.de.ProxyDataElem)

setSourceDoc

public void setSourceDoc(ProxyDocument sourceDoc)
See Also:
IndexingFeature.setSourceDoc(gov.nist.nlpir.irf.document.ProxyDocument)

setSourceField

public void setSourceField(ProxyDataElem sourceField)
See Also:
IndexingFeature.setSourceField(gov.nist.nlpir.irf.de.ProxyDataElem)

toString

public java.lang.String toString()
Returns string representation of indexing feature showing feature and source, preceded by P .
Returns:
string representation of indexing feature
Overrides:
toString in class VirtualProxy

makePersistent

public void makePersistent()
Override VirtualProxy's method with the same name. Passes this message on to component proxies in the real IndexingFeature's source and feature before calling the VirtualProxy's method to make this ProxyIndexingFeature persistent.
Overrides:
makePersistent in class VirtualProxy

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 VirtualProxy