com.im.df/1 5.8

com.im.df.util
Class JChemTableUtils

java.lang.Object
  extended by com.im.df.util.JChemTableUtils

public class JChemTableUtils
extends Object


Constructor Summary
JChemTableUtils()
           
 
Method Summary
static List<Integer> getAllTableTypesAsList()
          Get all the JChem table types in the following order: MOLECULES, REACTIONS, MARKUSH_LIBRARIES, QUERY_STRUCTURES, ANY_STRUCTURES
static int[] getLicensedTableTypesAsArray()
          See the List form of this method
static List<Integer> getLicensedTableTypesAsList()
          Get the JChem table types that are licensed.
static String tableTypeNeedsLicense(int tableType)
          Are the correct licenses present for this JChem table type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JChemTableUtils

public JChemTableUtils()
Method Detail

tableTypeNeedsLicense

public static String tableTypeNeedsLicense(int tableType)
Are the correct licenses present for this JChem table type

Parameters:
tableType -
Returns:
A description of the license that is needed. Null if licensing is OK or no licenses are needed

getAllTableTypesAsList

public static List<Integer> getAllTableTypesAsList()
Get all the JChem table types in the following order: MOLECULES, REACTIONS, MARKUSH_LIBRARIES, QUERY_STRUCTURES, ANY_STRUCTURES

Returns:
The table types as defined by their TableTypeConstants.TABLE_TYPE_* constants

getLicensedTableTypesAsList

public static List<Integer> getLicensedTableTypesAsList()
Get the JChem table types that are licensed. Uses getAllTableTypesAsList() to get the list of types and then removes any that are not licensed.

Returns:
The licesnsed table types as defined by their TableTypeConstants.TABLE_TYPE_* constants

getLicensedTableTypesAsArray

public static int[] getLicensedTableTypesAsArray()
See the List form of this method

Returns:
The table types as defined by their TableTypeConstants.TABLE_TYPE_* constants

com.im.df/1 5.8