Package chemaxon.fixers
Class StructureFixerDescriptor
java.lang.Object
chemaxon.fixers.StructureFixerDescriptor
- All Implemented Interfaces:
Cloneable
Descriptor class for
StructureFixer classes.- Since:
- 5.9
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringaction string tokens of the fixerstatic final intthe default priority valuestatic final Stringdescription of fixerstatic final inthigh priority valuestatic final intthe highest priority valuestatic final intlow priority valuestatic final intthe lowest priority valuestatic final Stringname property of fixerstatic final Stringpriority of fixer -
Constructor Summary
ConstructorsConstructorDescriptionStructureFixerDescriptor(Class<? extends StructureFixer> fixerClass) Constructs a descriptor based on fixer class. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a PropertyChangeListener to the listener list.voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Add a PropertyChangeListener for a specific property.clone()booleanString[]Gets the action string token of the fixerReturns the descriptionReturns the fixer identifiergetName()Returns the fixer nameintReturns the fixer priority.inthashCode()voidRemove a PropertyChangeListener from the listener list.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove a PropertyChangeListener for a specific property.voidsetActionStringTokens(String[] actionStringTokens) Sets the action string token of the fixervoidsetDescription(String description) Sets the description of the concerning fixervoidsetIdentifier(String fixerId) Sets the fixer identifiervoidSets the fixer namevoidsetPriority(int priority) Sets the fixer priority.toString()
-
Field Details
-
NAME
name property of fixer- See Also:
-
DESCRIPTION
description of fixer- See Also:
-
PRIORITY
priority of fixer- See Also:
-
LOWEST_PRIORITY
public static final int LOWEST_PRIORITYthe lowest priority value- See Also:
-
LOW_PRIORITY
public static final int LOW_PRIORITYlow priority value- See Also:
-
DEFAULT_PRIORITY
public static final int DEFAULT_PRIORITYthe default priority value- See Also:
-
HIGH_PRIORITY
public static final int HIGH_PRIORITYhigh priority value- See Also:
-
HIGHEST_PRIORITY
public static final int HIGHEST_PRIORITYthe highest priority value- See Also:
-
ACTIONSTRING_TOKEN
action string tokens of the fixer- See Also:
-
-
Constructor Details
-
StructureFixerDescriptor
public StructureFixerDescriptor(Class<? extends StructureFixer> fixerClass) throws IllegalArgumentException Constructs a descriptor based on fixer class.FixerInfoof specified class will be used for descriptor generation- Parameters:
fixerClass- the class used to generate descriptor- Throws:
IllegalArgumentException- if the fixerClass is null
-
-
Method Details
-
getIdentifier
Returns the fixer identifier- Returns:
- the fixer identifier
-
setIdentifier
Sets the fixer identifier- Parameters:
fixerId- the fixer identifier to set
-
getName
Returns the fixer name- Returns:
- the fixer name
-
setName
Sets the fixer name- Parameters:
name- the new name
-
getDescription
Returns the description- Returns:
- the description
-
setDescription
Sets the description of the concerning fixer- Parameters:
description- is aStringobject which represents the description of the concerning fixer
-
getPriority
public int getPriority()Returns the fixer priority.- Returns:
- the priority of the fixer
- Since:
- 5.12
-
setPriority
public void setPriority(int priority) Sets the fixer priority.- Parameters:
priority- the new priority- Since:
- 5.12
-
getActionStringTokens
Gets the action string token of the fixer- Returns:
- the action string token of the fixer
-
setActionStringTokens
Sets the action string token of the fixer- Parameters:
actionStringTokens- the action string tokens of the fixer
-
addPropertyChangeListener
Add 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.- Parameters:
listener- The PropertyChangeListener to be added
-
removePropertyChangeListener
Remove 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.- Parameters:
listener- The PropertyChangeListener to be removed
-
addPropertyChangeListener
Add 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.- Parameters:
propertyName- The name of the property to listen on.listener- The PropertyChangeListener to be added
-
removePropertyChangeListener
Remove 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.- Parameters:
propertyName- The name of the property that was listened on.listener- The PropertyChangeListener to be removed
-
hashCode
public int hashCode() -
equals
-
toString
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-