com.im.df/1 5.9.1

com.im.df.query
Class IJCJChemSearchOptions

java.lang.Object
  extended by com.im.df.query.IJCJChemSearchOptions
All Implemented Interfaces:
JChemSearchConstants

Deprecated. This class is only used to restore old-type options. JChemSearchOptions should be used directly.

public final class IJCJChemSearchOptions
extends Object
implements JChemSearchConstants

Options for JChem structure searches.
Options are are 2 types:

  1. Those that have JavaBean getters and setters such as stereoSearchMode, similarityThreshold.
  2. Those that are defined using constants from chemaxon.sss.SearchConstants whose values are set and got using the clearValue(Integer key), setValue(Integer key, Integer value) and searchConstants.put(key, value) methods.

To persist these use the encodeOptions() method which returns a List of String values, such as isotope:d. Options of both types are converted to String values by this method. The format used for the Strings is that used by JChem seach.

To restore a persisted value use the setValue(String str) method, which will restore options of both types from their String values.


Field Summary
 
Fields inherited from interface com.im.df.query.JChemSearchConstants
JCHEM_SEARCH_OPTIONS, VALUE_STEREO_EXACT, VALUE_STEREO_OFF, VALUE_STEREO_ON
 
Constructor Summary
IJCJChemSearchOptions()
          Deprecated.  
IJCJChemSearchOptions(IJCJChemSearchOptions opts)
          Deprecated. Create search options based on an existing set of values
 
Method Summary
 void clearValue(Integer key)
          Deprecated. Clears the specified value.
 JChemSearchOptions createJChemSearchOptions()
          Deprecated.  
 List<String> encodeOptions()
          Deprecated. Encode all current options in their string form.
 Integer getDoubleBondStereoSearchMode()
          Deprecated.  
 Integer getMaxExecutionTime()
          Deprecated.  
 Integer getMaxResultCount()
          Deprecated.  
 Boolean getReturnNonHits()
          Deprecated.  
 String getScreeningConfig()
          Deprecated.  
 int getSearchType()
          Deprecated.  
 Float getSimilarityThreshold()
          Deprecated.  
 String getStereoSearchMode()
          Deprecated.  
 Integer getValue(Integer key)
          Deprecated. Gets the value for the specified key.
 void setDoubleBondStereoSearchMode(Integer value)
          Deprecated.  
 void setMaxExecutionTime(Integer value)
          Deprecated.  
 void setMaxResultCount(Integer value)
          Deprecated.  
 void setReturnNonHits(Boolean val)
          Deprecated.  
 void setScreeningConfig(String val)
          Deprecated.  
 void setSearchType(int searchType)
          Deprecated.  
 void setSimilarityThreshold(Float f)
          Deprecated.  
 void setStereoSearchMode(String value)
          Deprecated.  
 void setValue(Integer key, Integer value)
          Deprecated. Sets the specified value.
 void setValue(String str)
          Deprecated. Set the value from its String form.
 void setValues(List<String> values)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IJCJChemSearchOptions

public IJCJChemSearchOptions()
Deprecated. 

IJCJChemSearchOptions

public IJCJChemSearchOptions(IJCJChemSearchOptions opts)
Deprecated. 
Create search options based on an existing set of values

Parameters:
opts - The options
Method Detail

clearValue

public void clearValue(Integer key)
Deprecated. 
Clears the specified value. The value should be a constant from chemaxon.sss.SearchConstants

Parameters:
key - The option to clear

setValue

public void setValue(Integer key,
                     Integer value)
Deprecated. 
Sets the specified value. The key and value should be a constant from chemaxon.sss.SearchConstants

Parameters:
key - The option to set e.g. SearchConstants.OPTION_CHARGE_MATCHING
value - The value for the option e.g. SearchConstants.CHARGE_MATCHING_EXACT

getValue

public Integer getValue(Integer key)
Deprecated. 
Gets the value for the specified key. The key should be a constant from chemaxon.sss.SearchConstants

Parameters:
key - The option to get e.g. SearchConstants.OPTION_CHARGE_MATCHING
Returns:
The value for the option e.g. SearchConstants.CHARGE_MATCHING_EXACT

setStereoSearchMode

public void setStereoSearchMode(String value)
Deprecated. 

getStereoSearchMode

public String getStereoSearchMode()
Deprecated. 

getSearchType

public int getSearchType()
Deprecated. 

setSearchType

public void setSearchType(int searchType)
Deprecated. 

setDoubleBondStereoSearchMode

public void setDoubleBondStereoSearchMode(Integer value)
Deprecated. 

getDoubleBondStereoSearchMode

public Integer getDoubleBondStereoSearchMode()
Deprecated. 

getSimilarityThreshold

public Float getSimilarityThreshold()
Deprecated. 

setSimilarityThreshold

public void setSimilarityThreshold(Float f)
Deprecated. 

getScreeningConfig

public String getScreeningConfig()
Deprecated. 

setScreeningConfig

public void setScreeningConfig(String val)
Deprecated. 

setMaxResultCount

public void setMaxResultCount(Integer value)
Deprecated. 

getMaxResultCount

public Integer getMaxResultCount()
Deprecated. 

getReturnNonHits

public Boolean getReturnNonHits()
Deprecated. 

setReturnNonHits

public void setReturnNonHits(Boolean val)
Deprecated. 

setMaxExecutionTime

public void setMaxExecutionTime(Integer value)
Deprecated. 

getMaxExecutionTime

public Integer getMaxExecutionTime()
Deprecated. 

setValue

public void setValue(String str)
Deprecated. 
Set the value from its String form.

Parameters:
str - The String. e.g. isotope:d

setValues

public void setValues(List<String> values)
Deprecated. 

encodeOptions

public List<String> encodeOptions()
Deprecated. 
Encode all current options in their string form. The order of the items is unspecified.

Returns:
A list of the encoded options.

createJChemSearchOptions

public JChemSearchOptions createJChemSearchOptions()
Deprecated. 

com.im.df/1 5.9.1