Package chemaxon.standardizer.actions
Class ConvertToEnhancedStereoAction
- java.lang.Object
-
- chemaxon.standardizer.AbstractStandardizerAction
-
- chemaxon.standardizer.actions.ConvertToEnhancedStereoAction
-
- All Implemented Interfaces:
chemaxon.license.Licensable
,StandardizerAction
,PropertyChangeListener
,Cloneable
,EventListener
@PublicAPI public final class ConvertToEnhancedStereoAction extends AbstractStandardizerAction
Convert to enhanced stereo standardizer action- Since:
- 5.11
-
-
Field Summary
Fields Modifier and Type Field Description static String
AND
static String
OR
static String
PROPERTY_KEY_ABSOLUTE
Key of type for property change of modestatic String
PROPERTY_KEY_ABSSTEREO
Key of type for property change of modestatic String
PROPERTY_KEY_ENFORCE_ABS
Key of type for property change of modestatic String
PROPERTY_KEY_STEREO_GROUP
Key of type for property change of modestatic String
PROPERTY_KEY_TYPE
Key of type for property change of mode-
Fields inherited from class chemaxon.standardizer.AbstractStandardizerAction
CONFIG_PATH_KEY, FORMAT_KEY, ID_KEY, support
-
-
Constructor Summary
Constructors Constructor Description ConvertToEnhancedStereoAction(Map<String,String> params)
Initializes the action with parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConvertToEnhancedStereoAction
clone()
String
getType()
Gets the type value of the actionboolean
isAbsStereo()
Gets the absolute value of the actionboolean
isEnforceAbsStereo()
void
setAbsStereo(boolean absStereo)
Sets the absoluteLegacy value of the actionvoid
setEnforceAbsStereo(boolean enforceAbsStereo)
void
setType(String type)
Sets the type value of the actionprotected Changes
standardize1(Molecule molecule)
This method contains the current standardization mechanism.String
toString()
-
Methods inherited from class chemaxon.standardizer.AbstractStandardizerAction
addPropertyChangeListener, addPropertyChangeListener, anyBooleanPropertyTrue, cloneItem, getComponents, getDescriptor, getID, isActive, isAvailable, isLicensed, isValid, propertyChange, removePropertyChangeListener, removePropertyChangeListener, setActive, setID, setLicenseEnvironment, setValid, standardize
-
-
-
-
Field Detail
-
AND
public static final String AND
- See Also:
- Constant Field Values
-
OR
public static final String OR
- See Also:
- Constant Field Values
-
PROPERTY_KEY_STEREO_GROUP
public static final String PROPERTY_KEY_STEREO_GROUP
Key of type for property change of mode- See Also:
- Constant Field Values
-
PROPERTY_KEY_TYPE
public static final String PROPERTY_KEY_TYPE
Key of type for property change of mode- See Also:
- Constant Field Values
-
PROPERTY_KEY_ABSOLUTE
public static final String PROPERTY_KEY_ABSOLUTE
Key of type for property change of mode- See Also:
- Constant Field Values
-
PROPERTY_KEY_ABSSTEREO
public static final String PROPERTY_KEY_ABSSTEREO
Key of type for property change of mode- See Also:
- Constant Field Values
-
PROPERTY_KEY_ENFORCE_ABS
public static final String PROPERTY_KEY_ENFORCE_ABS
Key of type for property change of mode- See Also:
- Constant Field Values
-
-
Method Detail
-
setType
public void setType(String type)
Sets the type value of the action- Parameters:
type
- the type value of the action
-
getType
public String getType()
Gets the type value of the action- Returns:
- the type value of the action
-
setAbsStereo
public void setAbsStereo(boolean absStereo)
Sets the absoluteLegacy value of the action- Parameters:
absStereo
- the absolute value of the action
-
isAbsStereo
public boolean isAbsStereo()
Gets the absolute value of the action- Returns:
- absolute the absolute value of the action
-
isEnforceAbsStereo
public boolean isEnforceAbsStereo()
-
setEnforceAbsStereo
public void setEnforceAbsStereo(boolean enforceAbsStereo)
-
standardize1
protected Changes standardize1(Molecule molecule)
Description copied from class:AbstractStandardizerAction
This method contains the current standardization mechanism. Descendants needs to implement this method.
Special molecules containing more components (e.g.RgMolecule
,RxnMolecule
) are decomponented by the methodAbstractStandardizerAction.getComponents(Molecule)
, andAbstractStandardizerAction.standardize1(Molecule)
method is called on each component, before applied on the original molecule. If a descendant does not want this to occur, this method must be overridden.
Logs of standardization should be generated to aLogger
, that can be collected by usingStandardizerLogger.getLogger()
method.- Specified by:
standardize1
in classAbstractStandardizerAction
- Parameters:
molecule
- theMolecule
instance to be standardized- Returns:
- the changes applied on the molecule during the standardization process
-
clone
public ConvertToEnhancedStereoAction clone() throws CloneNotSupportedException
- Overrides:
clone
in classAbstractStandardizerAction
- Throws:
CloneNotSupportedException
-
toString
public String toString()
- Overrides:
toString
in classAbstractStandardizerAction
-
-