|
com.im.commons 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<JChemCols>
com.im.commons.util.JChemCols
public enum JChemCols
Common utilities and constants for work with JChem well-known columns with prefix "CD_".
| Enum Constant Summary | |
|---|---|
CD_FORMULA
|
|
CD_ID
|
|
CD_MARKUSH
|
|
CD_MOLWEIGHT
|
|
CD_SORTABLE_FORMULA
|
|
CD_STRUCTURE
|
|
| Method Summary | |
|---|---|
String |
getDisplayName()
Get display name of the column type. |
static String |
getStructureColumnDisplayName(int tableType)
Get display name of the structure field (CD_STRUCTURE) based on table type. |
static String |
getTableDisplayName(int tableType)
Returns default display name for specific tableType. |
static boolean |
isJChemColumn(String columnName)
Is this column JChem reserved? In other words does the name start with "CD_" (ignore case)? |
String |
lowerCase()
Returns constant as lower case String, e.g. |
boolean |
match(String columnName)
Does columnName represent this CD_xx column? Just compare enum value toString() with columnName (case insensitive). |
static String |
removeJChemPrefix(String columnName)
Remove "CD_" prefix if columnName starts with this String. |
static JChemCols |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JChemCols[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final JChemCols CD_ID
public static final JChemCols CD_STRUCTURE
public static final JChemCols CD_MOLWEIGHT
public static final JChemCols CD_FORMULA
public static final JChemCols CD_SORTABLE_FORMULA
public static final JChemCols CD_MARKUSH
| Method Detail |
|---|
public static JChemCols[] values()
for (JChemCols c : JChemCols.values()) System.out.println(c);
public static JChemCols valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String lowerCase()
public String getDisplayName()
public boolean match(String columnName)
columnName -
public static String getStructureColumnDisplayName(int tableType)
TableTypeConstants.
public static String getTableDisplayName(int tableType)
TableTypeConstants.
public static boolean isJChemColumn(String columnName)
columnName - Column name to be tested
public static String removeJChemPrefix(String columnName)
|
com.im.commons 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||