public final class StructureCheckerDescriptor extends Object implements Cloneable
StructureChecker
Modifier and Type | Field and Description |
---|---|
static String |
ACTIONSTRING_TOKEN
action string token of the checker
|
static String |
CUSTOM_NAME
custom name property
|
static String |
DESCRIPTION
description of checker
|
static String |
EDITOR_CLASS_NAME
editor class name property of checker
|
static String |
FIX_MODE
fix mode property
|
static String |
FIXER_CLASS_NAME
fixer class name property
|
static String |
HELP_TEXT
help text for checker
|
static String |
ICON_PATH
icon path of checker
|
static String |
LOCAL_MENU_NAME
local menu name property of checker
|
static String |
MORE_ERROR_MESSAGE
multiple error message for checker
|
static String |
NAME
name property of checker
|
static String |
NO_ERROR_MESSAGE
no error message for checker
|
static String |
ONE_ERROR_MESSAGE
single error message for checker
|
static String |
SEVERITY
severity of checker
|
Constructor and Description |
---|
StructureCheckerDescriptor(Class<? extends StructureChecker> checkerClass)
Constructs a descriptor based on checker 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.
|
StructureCheckerDescriptor |
clone() |
boolean |
equals(Object obj) |
String[] |
getActionStringTokens()
Gets the action string token of the checker
|
String |
getCustomName()
Returns the customName
|
String |
getDescription()
Returns the description
|
String |
getEditorClassName()
Returns the editorClassName
|
String |
getFixerClassName()
Returns the fixerClassName
|
FixMode |
getFixMode()
Returns the fixMode
|
String |
getHelpText()
Returns the help text
|
Icon |
getIcon()
Returns the
Icon related to iconPath property |
String |
getIconPath()
Returns the icon path
|
String |
getLocalMenuName()
Returns the local menu name
|
String |
getMoreErrorMessage()
Returns the more error message
|
String |
getName()
Returns the checker name
|
String |
getNoErrorMessage()
Returns the no error message of the concerning checker
|
String |
getOneErrorMessage()
Returns the one error message
|
CheckerSeverity |
getSeverity()
Returns the severity
|
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 checker
|
void |
setCustomName(String customName)
Sets the customName
|
void |
setDescription(String description)
Sets the description of the concerning checker
|
void |
setEditorClassName(String editorClassName)
Sets the editorClassName
|
void |
setFixerClassName(String fixerClassName)
Sets the fixerClassName
|
void |
setFixMode(FixMode fixMode)
Sets the fixMode
|
void |
setHelpText(String helpText)
Sets the help text of the concerning checker
|
void |
setIconPath(String iconPath)
Sets the icon path
|
void |
setLocalMenuName(String localMenuName)
Sets the local menu name of the concerning checker
|
void |
setMoreErrorMessage(String moreErrorMessage)
Sets the more error message of the concerning checker
|
void |
setName(String name)
Sets the checker name
|
void |
setNoErrorMessage(String noErrorMessage)
Sets the no error message of the concerning checker
|
void |
setOneErrorMessage(String oneErrorMessage)
Sets the one error message of the concerning checker
|
void |
setSeverity(CheckerSeverity severity)
Sets the severity of the concerning checker
|
String |
toString() |
public static final String CUSTOM_NAME
public static final String FIX_MODE
public static final String FIXER_CLASS_NAME
public static final String EDITOR_CLASS_NAME
public static final String NAME
public static final String LOCAL_MENU_NAME
public static final String NO_ERROR_MESSAGE
public static final String ONE_ERROR_MESSAGE
public static final String MORE_ERROR_MESSAGE
public static final String HELP_TEXT
public static final String DESCRIPTION
public static final String ICON_PATH
public static final String SEVERITY
public static final String ACTIONSTRING_TOKEN
public StructureCheckerDescriptor(Class<? extends StructureChecker> checkerClass) throws IllegalArgumentException
CheckerInfo
of specified class will be used for descriptor generationcheckerClass
- the class used to generate descriptorIllegalArgumentException
- if the checkerClass is nullpublic String getName()
public void setName(String name)
name
- the new namepublic String getLocalMenuName()
public void setLocalMenuName(String localMenuName)
localMenuName
- is a String
object which represents the local menu name of
the concerning checkerpublic String getNoErrorMessage()
public void setNoErrorMessage(String noErrorMessage)
noErrorMessage
- is a String
object which represents the message given by
the concerned checker is no error foundpublic String getOneErrorMessage()
public void setOneErrorMessage(String oneErrorMessage)
oneErrorMessage
- is a String
object which represents the message given by
the concerned checker if one error foundpublic String getMoreErrorMessage()
public void setMoreErrorMessage(String moreErrorMessage)
moreErrorMessage
- is a String
object which represents the message given by
the concerned checker if more than one error foundpublic String getHelpText()
public void setHelpText(String helpText)
helpText
- is a String
object which represents the detailed help text of the
concerning checkerpublic String getDescription()
public void setDescription(String description)
description
- is a String
object which represents the description of
the concerning checkerpublic String getIconPath()
public void setIconPath(String iconPath)
iconPath
- represents the path of the icon image as a String
objectpublic String getEditorClassName()
public void setEditorClassName(String editorClassName)
editorClassName
- the editorClassName to setpublic String getCustomName()
public void setCustomName(String customName)
customName
- the customName to setpublic FixMode getFixMode()
public void setFixMode(FixMode fixMode)
fixMode
- the fixMode to setpublic String getFixerClassName()
public void setFixerClassName(String fixerClassName)
fixerClassName
- the fixerClassName to setpublic CheckerSeverity getSeverity()
public void setSeverity(CheckerSeverity severity)
severity
- is an instance of CheckerSeverity
which represents the severity
of the concerning checkerpublic String[] getActionStringTokens()
public void setActionStringTokens(String[] actionStringTokens)
actionStringTokens
- the action string tokens of the checkerpublic 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 Icon getIcon()
Icon
related to iconPath propertyIcon
related to iconPath propertypublic StructureCheckerDescriptor clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException