Package com.actelion.research.chem
Class NamedSubstituents
- java.lang.Object
-
- com.actelion.research.chem.NamedSubstituents
-
public class NamedSubstituents extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NamedSubstituents()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StereoMoleculegetSubstituent(java.lang.String name)static java.lang.StringgetSubstituentIDCode(java.lang.String name)static java.lang.Stringidentify(java.lang.String nameStart)Checks, whether the given nameStart either exactly matches one of the dictionary names or whether exactly one dictionary name starts with the given nameStart.static booleanisValidSubstituentNameStart(java.lang.String s)
-
-
-
Method Detail
-
identify
public static java.lang.String identify(java.lang.String nameStart)
Checks, whether the given nameStart either exactly matches one of the dictionary names or whether exactly one dictionary name starts with the given nameStart. If one of these conditions occurr, then the full dictionary name is returned.- Parameters:
nameStart-- Returns:
- null, "", or dictionary name if no, multiple, or exactly one name matches nameStart
-
getSubstituentIDCode
public static java.lang.String getSubstituentIDCode(java.lang.String name)
-
getSubstituent
public static StereoMolecule getSubstituent(java.lang.String name)
-
isValidSubstituentNameStart
public static boolean isValidSubstituentNameStart(java.lang.String s)
- Parameters:
s-- Returns:
- whether appending some characters to s may lead to a known substituent name
-
-