Package chemaxon.fixers
Class StructureFixerDescriptor
java.lang.Object
chemaxon.fixers.StructureFixerDescriptor
- All Implemented Interfaces:
- Cloneable
Descriptor class for 
StructureFixer classes.- Since:
- 5.9
- 
Field SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionStructureFixerDescriptor(Class<? extends StructureFixer> fixerClass) Constructs a descriptor based on fixer class.
- 
Method SummaryModifier 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- 
NAMEname property of fixer- See Also:
 
- 
DESCRIPTIONdescription of fixer- See Also:
 
- 
PRIORITYpriority of fixer- See Also:
 
- 
LOWEST_PRIORITYpublic static final int LOWEST_PRIORITYthe lowest priority value- See Also:
 
- 
LOW_PRIORITYpublic static final int LOW_PRIORITYlow priority value- See Also:
 
- 
DEFAULT_PRIORITYpublic static final int DEFAULT_PRIORITYthe default priority value- See Also:
 
- 
HIGH_PRIORITYpublic static final int HIGH_PRIORITYhigh priority value- See Also:
 
- 
HIGHEST_PRIORITYpublic static final int HIGHEST_PRIORITYthe highest priority value- See Also:
 
- 
ACTIONSTRING_TOKENaction string tokens of the fixer- See Also:
 
 
- 
- 
Constructor Details- 
StructureFixerDescriptorpublic 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- 
getIdentifierReturns the fixer identifier- Returns:
- the fixer identifier
 
- 
setIdentifierSets the fixer identifier- Parameters:
- fixerId- the fixer identifier to set
 
- 
getNameReturns the fixer name- Returns:
- the fixer name
 
- 
setNameSets the fixer name- Parameters:
- name- the new name
 
- 
getDescriptionReturns the description- Returns:
- the description
 
- 
setDescriptionSets the description of the concerning fixer- Parameters:
- description- is a- Stringobject which represents the description of the concerning fixer
 
- 
getPrioritypublic int getPriority()Returns the fixer priority.- Returns:
- the priority of the fixer
- Since:
- 5.12
 
- 
setPrioritypublic void setPriority(int priority) Sets the fixer priority.- Parameters:
- priority- the new priority
- Since:
- 5.12
 
- 
getActionStringTokensGets the action string token of the fixer- Returns:
- the action string token of the fixer
 
- 
setActionStringTokensSets the action string token of the fixer- Parameters:
- actionStringTokens- the action string tokens of the fixer
 
- 
addPropertyChangeListenerAdd 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
 
- 
removePropertyChangeListenerRemove 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
 
- 
addPropertyChangeListenerAdd 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
 
- 
removePropertyChangeListenerRemove 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
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
- 
clone- Overrides:
- clonein class- Object
- Throws:
- CloneNotSupportedException
 
 
-