Class NamedSubstituents


  • public class NamedSubstituents
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static StereoMolecule getSubstituent​(java.lang.String name)  
      static java.lang.String getSubstituentIDCode​(java.lang.String name)  
      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.
      static boolean isValidSubstituentNameStart​(java.lang.String s)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NamedSubstituents

        public NamedSubstituents()
    • 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