Package com.im.df.util
Class JChemTableUtils
- java.lang.Object
-
- com.im.df.util.JChemTableUtils
-
public class JChemTableUtils extends Object
- Author:
- Tim Dudgeon
-
-
Constructor Summary
Constructors Constructor Description JChemTableUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Integer>
getAllTableTypesAsList()
Get all the JChem table types in the following order: MOLECULES, REACTIONS, MARKUSH_LIBRARIES, QUERY_STRUCTURES, ANY_STRUCTURESstatic int[]
getLicensedTableTypesAsArray()
See the List form of this methodstatic 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
-
-
-
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
-
-