public class MolfileUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
SGROUP_TYPENAMES
Array of S-group type names.
|
Constructor and Description |
---|
MolfileUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
codeHIsotopeMass(int originalCode,
int massNo)
Add mass number information to the given code.
|
static int |
decodeHIsotopeMass(int code)
Extract H isotope information from the given Chemaxon compressed mol format
code of the atom.
|
static Integer |
getSgroupType(String name)
Gets the S-group type.
|
static boolean |
isSpecBeilsteinGeneric(String s)
Tests whether the specified symbol is a Beilstein Generic except
A, Q and X.
|
public static final String[] SGROUP_TYPENAMES
public static Integer getSgroupType(String name)
name
- the S-group type namenull
for invalid type namepublic static boolean isSpecBeilsteinGeneric(String s)
s
- the S-group type namenull
for invalid type namepublic static int decodeHIsotopeMass(int code)
code
- given codepublic static int codeHIsotopeMass(int originalCode, int massNo)
originalCode
- the code to which mass number is addedmassNo
- the mass number