Package uk.ac.cam.ch.wwmm.opsin
Enum OpsinWarning.OpsinWarningType
- java.lang.Object
-
- java.lang.Enum<OpsinWarning.OpsinWarningType>
-
- uk.ac.cam.ch.wwmm.opsin.OpsinWarning.OpsinWarningType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OpsinWarning.OpsinWarningType>
- Enclosing class:
- OpsinWarning
public static enum OpsinWarning.OpsinWarningType extends java.lang.Enum<OpsinWarning.OpsinWarningType>
The type of problem OPSIN encountered
-
-
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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExplanation()
static OpsinWarning.OpsinWarningType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OpsinWarning.OpsinWarningType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
getExplanation
public java.lang.String getExplanation()
-
-