Enum OpsinWarning.OpsinWarningType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      APPEARS_AMBIGUOUS
      OPSIN made a choice that appeared to be ambiguous to give this structure i.e.
      STEREOCHEMISTRY_IGNORED
      OPSIN ignored stereochemistry from the input name to give this structure.
    • Enum Constant Detail

      • STEREOCHEMISTRY_IGNORED

        public static final OpsinWarning.OpsinWarningType STEREOCHEMISTRY_IGNORED
        OPSIN ignored stereochemistry from the input name to give this structure. This can have various causes
        : OPSIN doesn't support interpretation of the type of stereochemistry OPSIN stereo-perception doesn't support this type of stereocentre The name describes the wrong structure The stereochemistry is being requested at the wrong atom/bond
      • APPEARS_AMBIGUOUS

        public static final OpsinWarning.OpsinWarningType APPEARS_AMBIGUOUS
        OPSIN made a choice that appeared to be ambiguous to give this structure i.e. the name may describe multiple possible structures
        The name may be missing locants
        Alternatively the name could actually be a trivial rather than systematic name
        OPSIN tries to make sensible choices when choosing in ambiguous cases so the resultant structure may nonetheless be the intended one
    • Method Detail

      • values

        public static OpsinWarning.OpsinWarningType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (OpsinWarning.OpsinWarningType c : OpsinWarning.OpsinWarningType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OpsinWarning.OpsinWarningType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getExplanation

        public java.lang.String getExplanation()