gov.nist.nlpir.irf.de
Class ProxyDeHtml

java.lang.Object
  |
  +--gov.nist.nlpir.irf.proxy.VirtualProxy
        |
        +--gov.nist.nlpir.irf.de.ProxyDataElem
              |
              +--gov.nist.nlpir.irf.de.ProxyDeString
                    |
                    +--gov.nist.nlpir.irf.de.ProxyDeHtml

public class ProxyDeHtml
extends ProxyDeString

This class represents a DeHtml by proxy.

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
ProxyDeHtml()
          Constructs an instance from no arguments
ProxyDeHtml(char[] v)
          Creates a ProxyDeHtml object, given an array of chars
ProxyDeHtml(DeHtml v)
          Creates a ProxyDeHtml object, given a DeHtml object.
ProxyDeHtml(java.lang.String v)
          Creates a ProxyDeHtml object, given a String object
 
Method Summary
 void addHTML(java.lang.StringBuffer baseString, int maxNrOfChar, boolean form)
          Adds the real current DeHtml value to the HTML text given
 int compareTo(DataElem o)
          Computes the score given by the comparison between teh real DeHtml and the given DeHtml
 PersistenceBroker createBroker()
          Creates a broker for this proxy object and remember it
 java.util.Vector getIndexingFeatures(ProxyDocument source, IndexingModalities im, DataElem field)
          Extracts Indexing Features from the real DeHtml.
 void HTML_ShowDoc(java.lang.StringBuffer baseString)
          Appends the real DeHtml to the given string.
 
Methods inherited from class gov.nist.nlpir.irf.de.ProxyDeString
exactMatch, getValue, getValueAsString, hashCode, match, present, presentBrief, setValue, setValue, toString
 
Methods inherited from class gov.nist.nlpir.irf.de.ProxyDataElem
equals
 
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, makePersistent, materializeRealObject, presentInMemoryProxies, readExternal, replaceRealObject, setBroker, setIS, setObjectIdentifier, setRealObject, testInMemoryProxiesByOidTable, writeExternal
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

ProxyDeHtml

public ProxyDeHtml()
Constructs an instance from no arguments

ProxyDeHtml

public ProxyDeHtml(DeHtml v)
Creates a ProxyDeHtml object, given a DeHtml object.
Parameters:
v - the string, which may content HTML tags.

ProxyDeHtml

public ProxyDeHtml(java.lang.String v)
Creates a ProxyDeHtml object, given a String object
Parameters:
v - the string, which may content HTML tags.

ProxyDeHtml

public ProxyDeHtml(char[] v)
Creates a ProxyDeHtml object, given an array of chars
Parameters:
v - the array of char corresponding to an HTML string.
Method Detail

compareTo

public int compareTo(DataElem o)
Computes the score given by the comparison between teh real DeHtml and the given DeHtml
Parameters:
o - the DeHtml this is compared to
Returns:
the score as an int. It's the difference between the HTML string values
Overrides:
compareTo in class ProxyDeString

getIndexingFeatures

public java.util.Vector getIndexingFeatures(ProxyDocument source,
                                            IndexingModalities im,
                                            DataElem field)
Extracts Indexing Features from the real DeHtml.
Parameters:
source - object reference of source document.
im - indexing modalities to be used with this DeString.
field - the document field from which this data element came
Returns:
vector of IndexingFeatures.
Overrides:
getIndexingFeatures in class ProxyDeString

addHTML

public void addHTML(java.lang.StringBuffer baseString,
                    int maxNrOfChar,
                    boolean form)
Adds the real current DeHtml value to the HTML text given
Parameters:
baseString - the HTML text the value will be appended to
maxNrOfChar - maximum number of characters appended. If 0, no limit to this number
form - if true, the string will be used to create a form, a common text otherwise
Returns:
the new HTML string
Overrides:
addHTML in class ProxyDeString

HTML_ShowDoc

public void HTML_ShowDoc(java.lang.StringBuffer baseString)
Appends the real DeHtml to the given string.
Parameters:
baseString - the HTML text this will be added to.
Overrides:
HTML_ShowDoc in class ProxyDeString

createBroker

public PersistenceBroker createBroker()
Creates a broker for this proxy object and remember it
Returns:
the broker for this object
Overrides:
createBroker in class ProxyDeString