Package chemaxon.standardizer.actions
Class InvalidStandardizerAction
java.lang.Object
chemaxon.standardizer.actions.InvalidStandardizerAction
- All Implemented Interfaces:
- StandardizerAction
@PublicApi
public final class InvalidStandardizerAction
extends Object
implements StandardizerAction
Implementation of 
StandardizerAction representing an invalid instance
 of a standardizer action. Used by StandardizerConfigurationReader for
 invalid configuration entries- Since:
- 5.11
- 
Constructor SummaryConstructorsConstructorDescriptionInvalidStandardizerAction(String errorMessage) Initializes an invalid standardizer instanceInitializes an invalid standardizer instance
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a PropertyChangeListener to the listener list.voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Add a PropertyChangeListener for a specific property.clone()Returns a clone of thisStandardizerActioninstanceGets the name of the original actionGets the descriptor of the standardizer action.Gets the error message of the standardizer instancegetID()Gets the identifier of the standardizer taskGets the parameter map of the actionbooleanisActive()Returns true if the action is active, and can be usedbooleanReturns true if the action is available, and can be usedbooleanisValid()Returns true if the action's parameters are valid, false otherwisevoidRemove a PropertyChangeListener from the listener list.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove a PropertyChangeListener for a specific property.voidsetActive(boolean active) Sets whether the action is active, and can be usedvoidSets the license environment of the actionstandardize(Molecule molecule) Standardizes the provided molecule.
 Logs of standardization should be generated to aSystem.Logger, that can be collected by usingStandardizerLogger.getLogger()method.toString()
- 
Constructor Details- 
InvalidStandardizerActionInitializes an invalid standardizer instance- Parameters:
- errorMessage- the error message of the instance.
 
- 
InvalidStandardizerActionpublic InvalidStandardizerAction(String errorMessage, String actionName, Map<String, String> parameters) Initializes an invalid standardizer instance- Parameters:
- errorMessage- the error message of the instance.
- actionName- the name of the action
- parameters- the parameters of the action
 
 
- 
- 
Method Details- 
standardizeDescription copied from interface:StandardizerActionStandardizes the provided molecule.
 Logs of standardization should be generated to aSystem.Logger, that can be collected by usingStandardizerLogger.getLogger()method.- Specified by:
- standardizein interface- StandardizerAction
- Parameters:
- molecule- the target molecule of the standardization process
- Returns:
- the change set of the molecule
- Throws:
- NullPointerException
 
- 
cloneItemDescription copied from interface:StandardizerActionReturns a clone of thisStandardizerActioninstance- Specified by:
- cloneItemin interface- StandardizerAction
- Returns:
- a clone of this StandardizerActioninstance
 
- 
isValidpublic boolean isValid()Description copied from interface:StandardizerActionReturns true if the action's parameters are valid, false otherwise- Specified by:
- isValidin interface- StandardizerAction
- Returns:
- true if the action's parameters are valid, false otherwise
 
- 
isAvailablepublic boolean isAvailable()Description copied from interface:StandardizerActionReturns true if the action is available, and can be used- Specified by:
- isAvailablein interface- StandardizerAction
- Returns:
- true if the action is available, and can be used
 
- 
getDescriptorDescription copied from interface:StandardizerActionGets the descriptor of the standardizer action. Contains all necessary informations of the action for user interfaces.- Specified by:
- getDescriptorin interface- StandardizerAction
- Returns:
- the descriptor of the standardizer action.
 
- 
removePropertyChangeListenerDescription copied from interface:StandardizerActionRemove a PropertyChangeListener for a specific property. Iflistenerwas added more than once to the same event source for the specified property, it will be notified one less time after being removed. IfpropertyNameis null, no exception is thrown and no action is taken. Iflisteneris null, or was never added for the specified property, no exception is thrown and no action is taken.- Specified by:
- removePropertyChangeListenerin interface- StandardizerAction
- Parameters:
- propertyName- The name of the property that was listened on.
- listener- The PropertyChangeListener to be removed
- See Also:
 
- 
addPropertyChangeListenerDescription copied from interface:StandardizerActionAdd a PropertyChangeListener for a specific property. The listener will be invoked only when a call on firePropertyChange names that specific property. The same listener object may be added more than once. For each property, the listener will be invoked the number of times it was added for that property. IfpropertyNameorlisteneris null, no exception is thrown and no action is taken.- Specified by:
- addPropertyChangeListenerin interface- StandardizerAction
- Parameters:
- propertyName- The name of the property to listen on.
- listener- The PropertyChangeListener to be added
- See Also:
 
- 
removePropertyChangeListenerDescription copied from interface:StandardizerActionRemove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties. Iflistenerwas added more than once to the same event source, it will be notified one less time after being removed. Iflisteneris null, or was never added, no exception is thrown and no action is taken.- Specified by:
- removePropertyChangeListenerin interface- StandardizerAction
- Parameters:
- listener- The PropertyChangeListener to be removed
- See Also:
 
- 
addPropertyChangeListenerDescription copied from interface:StandardizerActionAdd a PropertyChangeListener to the listener list. The listener is registered for all properties. The same listener object may be added more than once, and will be called as many times as it is added. Iflisteneris null, no exception is thrown and no action is taken.- Specified by:
- addPropertyChangeListenerin interface- StandardizerAction
- Parameters:
- listener- The PropertyChangeListener to be added
- See Also:
 
- 
getErrorMessageGets the error message of the standardizer instance- Returns:
- the error message of the standardizer instance
 
- 
toString
- 
getIDDescription copied from interface:StandardizerActionGets the identifier of the standardizer task- Specified by:
- getIDin interface- StandardizerAction
- Returns:
- the identifier of the standardizer task
 
- 
isActivepublic boolean isActive()Description copied from interface:StandardizerActionReturns true if the action is active, and can be used- Specified by:
- isActivein interface- StandardizerAction
- Returns:
- true if the action is active, and can be used
 
- 
setActivepublic void setActive(boolean active) Description copied from interface:StandardizerActionSets whether the action is active, and can be used- Specified by:
- setActivein interface- StandardizerAction
- Parameters:
- active- whether the action should be active, and can be used
 
- 
clone- Overrides:
- clonein class- Object
- Throws:
- CloneNotSupportedException
 
- 
getActionNameGets the name of the original action- Returns:
- the name of the original action
 
- 
getParametersGets the parameter map of the action- Returns:
- the parameter map of the action
 
- 
setLicenseEnvironmentDescription copied from interface:StandardizerActionSets the license environment of the action- Specified by:
- setLicenseEnvironmentin interface- StandardizerAction
- Parameters:
- env- the license environment of the action
 
 
-