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
Modifier and TypeFieldDescriptionstatic final String
action string tokens of the fixerstatic final int
the default priority valuestatic final String
description of fixerstatic final int
high priority valuestatic final int
the highest priority valuestatic final int
low priority valuestatic final int
the lowest priority valuestatic final String
name property of fixerstatic final String
priority of fixer -
Constructor Summary
ConstructorDescriptionStructureFixerDescriptor
(Class<? extends StructureFixer> fixerClass) Constructs a descriptor based on fixer class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a PropertyChangeListener to the listener list.void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) Add a PropertyChangeListener for a specific property.clone()
boolean
String[]
Gets the action string token of the fixerReturns the descriptionReturns the fixer identifiergetName()
Returns the fixer nameint
Returns the fixer priority.int
hashCode()
void
Remove a PropertyChangeListener from the listener list.void
removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) Remove a PropertyChangeListener for a specific property.void
setActionStringTokens
(String[] actionStringTokens) Sets the action string token of the fixervoid
setDescription
(String description) Sets the description of the concerning fixervoid
setIdentifier
(String fixerId) Sets the fixer identifiervoid
Sets the fixer namevoid
setPriority
(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.FixerInfo
of 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 aString
object 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. Iflistener
is 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. Iflistener
was added more than once to the same event source, it will be notified one less time after being removed. Iflistener
is 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. IfpropertyName
orlistener
is 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. Iflistener
was added more than once to the same event source for the specified property, it will be notified one less time after being removed. IfpropertyName
is null, no exception is thrown and no action is taken. Iflistener
is 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:
clone
in classObject
- Throws:
CloneNotSupportedException
-