Package chemaxon.standardizer.actions
Class ClearStereoAction
- java.lang.Object
-
- chemaxon.standardizer.AbstractStandardizerAction
-
- chemaxon.standardizer.actions.ClearStereoAction
-
- All Implemented Interfaces:
chemaxon.license.Licensable
,StandardizerAction
,PropertyChangeListener
,Cloneable
,EventListener
@PublicAPI public final class ClearStereoAction extends AbstractStandardizerAction
Clear stereo standardizer action- Since:
- 5.11
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_KEY_CHIRALITY
Key of type for property change of modestatic String
PROPERTY_KEY_DOUBLE_BOND
Key of type for property change of modestatic String
PROPERTY_KEY_SINGLE_UP_OR_DOWN_BOND
Key of type for property change of modestatic String
TYPE_KEY
Key of type for parsing-
Fields inherited from class chemaxon.standardizer.AbstractStandardizerAction
CONFIG_PATH_KEY, FORMAT_KEY, ID_KEY, support
-
-
Constructor Summary
Constructors Constructor Description ClearStereoAction(Map<String,String> params)
Initializes the action with parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClearStereoAction
clone()
String
getType()
Gets the type of the action as string.boolean
isChirality()
Gets the chirality value of absolute stereo actionboolean
isDoubleBond()
Gets the double bond value of absolute stereo actionboolean
isSingleUpOrDownBond()
Gets the single wedge value of absolute stereo actionvoid
setChirality(boolean chirality)
Sets the chirality value of absolute stereo actionvoid
setDoubleBond(boolean doubleBond)
Sets the double bond value of absolute stereo actionvoid
setSingleUpOrDownBond(boolean singleUpOrDownBond)
Sets the single wedge value of absolute stereo 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
-
TYPE_KEY
public static final String TYPE_KEY
Key of type for parsing- See Also:
- Constant Field Values
-
PROPERTY_KEY_CHIRALITY
public static final String PROPERTY_KEY_CHIRALITY
Key of type for property change of mode- See Also:
- Constant Field Values
-
PROPERTY_KEY_DOUBLE_BOND
public static final String PROPERTY_KEY_DOUBLE_BOND
Key of type for property change of mode- See Also:
- Constant Field Values
-
PROPERTY_KEY_SINGLE_UP_OR_DOWN_BOND
public static final String PROPERTY_KEY_SINGLE_UP_OR_DOWN_BOND
Key of type for property change of mode- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public String getType()
Gets the type of the action as string. Used for XML serialization- Returns:
- the type of the action as string
-
setChirality
public void setChirality(boolean chirality)
Sets the chirality value of absolute stereo action- Parameters:
chirality
- the chirality value of absolute stereo action
-
isChirality
public boolean isChirality()
Gets the chirality value of absolute stereo action- Returns:
- the chirality value of absolute stereo action
-
setDoubleBond
public void setDoubleBond(boolean doubleBond)
Sets the double bond value of absolute stereo action- Parameters:
doubleBond
- the double bond value of absolute stereo action
-
isDoubleBond
public boolean isDoubleBond()
Gets the double bond value of absolute stereo action- Returns:
- the double bond value of absolute stereo action
-
setSingleUpOrDownBond
public void setSingleUpOrDownBond(boolean singleUpOrDownBond)
Sets the single wedge value of absolute stereo action- Parameters:
singleUpOrDownBond
- the single wedge value of absolute stereo action
-
isSingleUpOrDownBond
public boolean isSingleUpOrDownBond()
Gets the single wedge value of absolute stereo action- Returns:
- the single wedge value of absolute stereo action
-
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 ClearStereoAction clone() throws CloneNotSupportedException
- Overrides:
clone
in classAbstractStandardizerAction
- Throws:
CloneNotSupportedException
-
toString
public String toString()
- Overrides:
toString
in classAbstractStandardizerAction
-
-