Class JChemTableUtils


  • public class JChemTableUtils
    extends Object
    Author:
    Tim Dudgeon
    • 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