@PublicAPI public class StructureFixerDescriptor extends java.lang.Object implements java.lang.Cloneable
StructureFixer
classes.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTIONSTRING_TOKEN
action string tokens of the fixer
|
static int |
DEFAULT_PRIORITY
the default priority value
|
static java.lang.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 java.lang.String |
NAME
name property of fixer
|
static java.lang.String |
PRIORITY
priority of fixer
|
Constructor and Description |
---|
StructureFixerDescriptor(java.lang.Class<? extends StructureFixer> fixerClass)
Constructs a descriptor based on fixer class.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property.
|
StructureFixerDescriptor |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String[] |
getActionStringTokens()
Gets the action string token of the fixer
|
java.lang.String |
getDescription()
Returns the description
|
java.lang.String |
getIdentifier()
Returns the fixer identifier
|
java.lang.String |
getName()
Returns the fixer name
|
int |
getPriority()
Returns the fixer priority.
|
int |
hashCode() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property.
|
void |
setActionStringTokens(java.lang.String[] actionStringTokens)
Sets the action string token of the fixer
|
void |
setDescription(java.lang.String description)
Sets the description of the concerning fixer
|
void |
setIdentifier(java.lang.String fixerId)
Sets the fixer identifier
|
void |
setName(java.lang.String name)
Sets the fixer name
|
void |
setPriority(int priority)
Sets the fixer priority.
|
java.lang.String |
toString() |
public static final java.lang.String NAME
public static final java.lang.String DESCRIPTION
public static final java.lang.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 java.lang.String ACTIONSTRING_TOKEN
public StructureFixerDescriptor(java.lang.Class<? extends StructureFixer> fixerClass) throws java.lang.IllegalArgumentException
FixerInfo
of specified class will be used for descriptor generationfixerClass
- the class used to generate descriptorjava.lang.IllegalArgumentException
- if the fixerClass is nullpublic java.lang.String getIdentifier()
public void setIdentifier(java.lang.String fixerId)
fixerId
- the fixer identifier to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the new namepublic java.lang.String getDescription()
public void setDescription(java.lang.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 java.lang.String[] getActionStringTokens()
public void setActionStringTokens(java.lang.String[] actionStringTokens)
actionStringTokens
- the action string tokens of the fixerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
is null, no exception is thrown and no action
is taken.listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.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(java.lang.String propertyName, java.beans.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(java.lang.String propertyName, java.beans.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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public StructureFixerDescriptor clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException