Package chemaxon.checkers
Class StructureCheckerDescriptor
java.lang.Object
chemaxon.checkers.StructureCheckerDescriptor
- All Implemented Interfaces:
Cloneable
Descriptor for
StructureChecker- Since:
- 5.7
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringaction string token of the checkerstatic final Stringcustom name propertystatic final Stringdescription of checkerstatic final Stringeditor class name property of checkerstatic final Stringfix mode propertystatic final Stringfixer class name propertystatic final Stringhelp text for checkerstatic final Stringicon path of checkerstatic final Stringlocal menu name property of checkerstatic final Stringmultiple error message for checkerstatic final Stringname property of checkerstatic final Stringno error message for checkerstatic final Stringsingle error message for checkerstatic final Stringseverity of checker -
Constructor Summary
ConstructorsConstructorDescriptionStructureCheckerDescriptor(Class<? extends StructureChecker> checkerClass) Constructs a descriptor based on checker class. -
Method Summary
Modifier 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 checkerReturns the customNameReturns the descriptionReturns the editorClassNameReturns the fixerClassNameReturns the fixModeReturns the help textgetIcon()Returns theIconrelated to iconPath propertyReturns the icon pathReturns the checker identifierReturns the local menu nameReturns the more error messagegetName()Returns the checker nameReturns the no error message of the concerning checkerReturns the one error messageReturns the severityinthashCode()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 checkervoidsetCustomName(String customName) Sets the customNamevoidsetDescription(String description) Sets the description of the concerning checkervoidsetEditorClassName(String editorClassName) Sets the editorClassNamevoidsetFixerClassName(String fixerClassName) Sets the fixerClassNamevoidsetFixMode(FixMode fixMode) Sets the fixModevoidsetHelpText(String helpText) Sets the help text of the concerning checkervoidsetIconPath(String iconPath) Sets the icon pathvoidsetIdentifier(String checkerId) Sets the checker identifiervoidsetLocalMenuName(String localMenuName) Sets the local menu name of the concerning checkervoidsetMoreErrorMessage(String moreErrorMessage) Sets the more error message of the concerning checkervoidSets the checker namevoidsetNoErrorMessage(String noErrorMessage) Sets the no error message of the concerning checkervoidsetOneErrorMessage(String oneErrorMessage) Sets the one error message of the concerning checkervoidsetSeverity(CheckerSeverity severity) Sets the severity of the concerning checkertoString()
-
Field Details
-
CUSTOM_NAME
custom name property- See Also:
-
FIX_MODE
fix mode property- See Also:
-
FIXER_CLASS_NAME
fixer class name property- See Also:
-
EDITOR_CLASS_NAME
editor class name property of checker- See Also:
-
NAME
name property of checker- See Also:
-
LOCAL_MENU_NAME
local menu name property of checker- See Also:
-
NO_ERROR_MESSAGE
no error message for checker- See Also:
-
ONE_ERROR_MESSAGE
single error message for checker- See Also:
-
MORE_ERROR_MESSAGE
multiple error message for checker- See Also:
-
HELP_TEXT
help text for checker- See Also:
-
DESCRIPTION
description of checker- See Also:
-
ICON_PATH
icon path of checker- See Also:
-
SEVERITY
severity of checker- See Also:
-
ACTIONSTRING_TOKEN
action string token of the checker- See Also:
-
-
Constructor Details
-
StructureCheckerDescriptor
public StructureCheckerDescriptor(Class<? extends StructureChecker> checkerClass) throws IllegalArgumentException Constructs a descriptor based on checker class.CheckerInfoof specified class will be used for descriptor generation- Parameters:
checkerClass- the class used to generate descriptor- Throws:
IllegalArgumentException- if the checkerClass is null
-
-
Method Details
-
getIdentifier
Returns the checker identifier- Returns:
- the checker identifier
-
setIdentifier
Sets the checker identifier- Parameters:
checkerId- the checker identifier
-
getName
Returns the checker name- Returns:
- the checker name
-
setName
Sets the checker name- Parameters:
name- the new name
-
getLocalMenuName
Returns the local menu name- Returns:
- the local menu name
-
setLocalMenuName
Sets the local menu name of the concerning checker- Parameters:
localMenuName- is aStringobject which represents the local menu name of the concerning checker
-
getNoErrorMessage
Returns the no error message of the concerning checker- Returns:
- the no error message
-
setNoErrorMessage
Sets the no error message of the concerning checker- Parameters:
noErrorMessage- is aStringobject which represents the message given by the concerned checker is no error found
-
getOneErrorMessage
Returns the one error message- Returns:
- the one error message
-
setOneErrorMessage
Sets the one error message of the concerning checker- Parameters:
oneErrorMessage- is aStringobject which represents the message given by the concerned checker if one error found
-
getMoreErrorMessage
Returns the more error message- Returns:
- the more error message
-
setMoreErrorMessage
Sets the more error message of the concerning checker- Parameters:
moreErrorMessage- is aStringobject which represents the message given by the concerned checker if more than one error found
-
getHelpText
Returns the help text- Returns:
- the help text
-
setHelpText
Sets the help text of the concerning checker- Parameters:
helpText- is aStringobject which represents the detailed help text of the concerning checker
-
getDescription
Returns the description- Returns:
- the description
-
setDescription
Sets the description of the concerning checker- Parameters:
description- is aStringobject which represents the description of the concerning checker
-
getIconPath
Returns the icon path- Returns:
- the icon path
-
setIconPath
Sets the icon path- Parameters:
iconPath- represents the path of the icon image as aStringobject
-
getEditorClassName
Returns the editorClassName- Returns:
- the editorClassName
-
setEditorClassName
Sets the editorClassName- Parameters:
editorClassName- the editorClassName to set
-
getCustomName
Returns the customName- Returns:
- the customName
-
setCustomName
Sets the customName- Parameters:
customName- the customName to set
-
getFixMode
Returns the fixMode- Returns:
- the fixMode
-
setFixMode
Sets the fixMode- Parameters:
fixMode- the fixMode to set
-
getFixerClassName
Returns the fixerClassName- Returns:
- the fixerClassName
-
setFixerClassName
Sets the fixerClassName- Parameters:
fixerClassName- the fixerClassName to set
-
getSeverity
Returns the severity- Returns:
- the severity
-
setSeverity
Sets the severity of the concerning checker- Parameters:
severity- is an instance ofCheckerSeveritywhich represents the severity of the concerning checker
-
getActionStringTokens
Gets the action string token of the checker- Returns:
- the action string token of the checker
-
setActionStringTokens
Sets the action string token of the checker- Parameters:
actionStringTokens- the action string tokens of the checker
-
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. Iflisteneris 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. 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
-
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. 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
-
removePropertyChangeListener
Remove 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
-
hashCode
public int hashCode() -
equals
-
toString
-
getIcon
Returns theIconrelated to iconPath property- Returns:
- the
Iconrelated to iconPath property
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-