public class StructureFixerDescriptor extends Object implements Cloneable
StructureFixer
classes.Modifier and Type | Field and Description |
---|---|
static String |
ACTIONSTRING_TOKEN
action string tokens of the fixer
|
static int |
DEFAULT_PRIORITY
the default priority value
|
static String |
DESCRIPTION
description of fixer
|
static int |
HIGH_PRIORITY
high priority value
|
static int |
HIGHEST_PRIORITY
the highest priority value
|
static int |
LOW_PRIORITY
low priority value
|
static int |
LOWEST_PRIORITY
the lowest priority value
|
static String |
NAME
name property of fixer
|
static String |
PRIORITY
priority of fixer
|
Constructor and Description |
---|
StructureFixerDescriptor(Class<? extends StructureFixer> fixerClass)
Constructs a descriptor based on fixer class.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property.
|
StructureFixerDescriptor |
clone() |
boolean |
equals(Object obj) |
String[] |
getActionStringTokens()
Gets the action string token of the fixer
|
String |
getDescription()
Returns the description
|
String |
getName()
Returns the fixer name
|
int |
getPriority()
Returns the fixer priority.
|
int |
hashCode() |
void |
removePropertyChangeListener(PropertyChangeListener listener)
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 fixer
|
void |
setDescription(String description)
Sets the description of the concerning fixer
|
void |
setName(String name)
Sets the fixer name
|
void |
setPriority(int priority)
Sets the fixer priority.
|
String |
toString() |
public static final String NAME
public static final String DESCRIPTION
public static final String PRIORITY
public static final int LOWEST_PRIORITY
public static final int LOW_PRIORITY
public static final int DEFAULT_PRIORITY
public static final int HIGH_PRIORITY
public static final int HIGHEST_PRIORITY
public static final String ACTIONSTRING_TOKEN
public StructureFixerDescriptor(Class<? extends StructureFixer> fixerClass) throws IllegalArgumentException
FixerInfo
of specified class will be used for descriptor generationfixerClass
- the class used to generate descriptorIllegalArgumentException
- if the fixerClass is nullpublic String getName()
public void setName(String name)
name
- the new namepublic String getDescription()
public void setDescription(String description)
description
- is a String
object which represents the description of
the concerning fixerpublic int getPriority()
public void setPriority(int priority)
priority
- the new prioritypublic String[] getActionStringTokens()
public void setActionStringTokens(String[] actionStringTokens)
actionStringTokens
- the action string tokens of the fixerpublic void addPropertyChangeListener(PropertyChangeListener listener)
listener
is null, no exception is thrown and no action
is taken.listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
was added more than once to the same event
source, it will be notified one less time after being removed.
If listener
is null, or was never added, no exception is
thrown and no action is taken.listener
- The PropertyChangeListener to be removedpublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
propertyName
or listener
is null, no
exception is thrown and no action is taken.propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
listener
was added more than once to the same event
source for the specified property, it will be notified one less time
after being removed.
If propertyName
is null, no exception is thrown and no
action is taken.
If listener
is null, or was never added for the specified
property, no exception is thrown and no action is taken.propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removedpublic StructureFixerDescriptor clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException