Package chemaxon.standardizer
Class StandardizerActionDescriptor
java.lang.Object
chemaxon.standardizer.StandardizerActionDescriptor
- All Implemented Interfaces:
Cloneable
Descriptor of
Contains all needed interface informations.
StandardizerAction
objects.Contains all needed interface informations.
- Name of the action
- Description of the action
- Help text of the action
- Icon of the action
- XML tags of the action
- Action string tokens of the action
- Since:
- 5.11
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
action string token of the actionstatic final String
description of actionstatic final String
editor class name property of standardizer actionstatic final String
help text for actionstatic final String
icon path of actionstatic final String
id property of actionstatic final String
name property of actionstatic final String
tags of actionstatic final String
xml token of the action -
Constructor Summary
ConstructorDescriptionStandardizerActionDescriptor
(Class<? extends StandardizerAction> standardizerActionClass) Constructs a descriptor based on standardizer action 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 tokens of the actionGets the description of the actionReturns the editorClassNameGets the help text of the actiongetIcon()
Returns theIcon
related to iconPath propertyGets the path of icon associated to the actiongetId()
Gets the id of the actiongetName()
Gets the name of the actionString[]
getTags()
Gets the tags associated to the actionString[]
Gets the XML tokens of the actionint
hashCode()
boolean
Returnstrue
if this action can be used in current license environment.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 tokens of the actionvoid
setDescription
(String description) Sets the description of the actionvoid
setEditorClassName
(String editorClassName) Sets the editorClassNamevoid
setHelpText
(String helpText) Sets the help text of the actionvoid
setIconPath
(String iconPath) Sets the path of icon associated to the actionvoid
Sets the id of the actionvoid
Sets the name of the actionvoid
Sets the tags of the actionvoid
setXMLTokens
(String... xmlTokens) Sets the XML tokens of the actiontoString()
-
Field Details
-
ID
id property of action- See Also:
-
NAME
name property of action- See Also:
-
HELP_TEXT
help text for action- See Also:
-
DESCRIPTION
description of action- See Also:
-
ACTIONSTRING_TOKEN
action string token of the action- See Also:
-
XML_TOKEN
xml token of the action- See Also:
-
ICON_PATH
icon path of action- See Also:
-
TAGS
tags of action- See Also:
-
EDITOR_CLASS_NAME
editor class name property of standardizer action- See Also:
-
-
Constructor Details
-
StandardizerActionDescriptor
public StandardizerActionDescriptor(Class<? extends StandardizerAction> standardizerActionClass) throws IllegalArgumentException Constructs a descriptor based on standardizer action class.
The annotationStandardizerActionInfo
of the specified class will be used for descriptor generation.- Parameters:
standardizerActionClass
- the class used to generate descriptor- Throws:
IllegalArgumentException
- if the standardizerActionClass is null
-
-
Method Details
-
getId
Gets the id of the action- Returns:
- the id of the action
-
getName
Gets the name of the action- Returns:
- the name of the action
-
getActionStringTokens
Gets the action string tokens of the action- Returns:
- the action string tokens of the action
-
getXMLTokens
Gets the XML tokens of the action- Returns:
- the XML tokens of the action
-
getDescription
Gets the description of the action- Returns:
- the description of the action
-
getHelpText
Gets the help text of the action- Returns:
- the help text of the action
-
getIconPath
Gets the path of icon associated to the action- Returns:
- the path of icon associated to the action
-
getTags
Gets the tags associated to the action- Returns:
- the tags associated to the action
-
setId
Sets the id of the action- Parameters:
id
- the id of the action
-
setName
Sets the name of the action- Parameters:
name
- the name of the action
-
setActionStringTokens
Sets the action string tokens of the action- Parameters:
actionStringTokens
- the action string tokens of the action
-
setXMLTokens
Sets the XML tokens of the action- Parameters:
xmlTokens
- the XML tokens of the action
-
setTags
Sets the tags of the action- Parameters:
tags
- the tags of the action
-
setDescription
Sets the description of the action- Parameters:
description
- the description of the action
-
setHelpText
Sets the help text of the action- Parameters:
helpText
- the help text of the action
-
setIconPath
Sets the path of icon associated to the action- Parameters:
iconPath
- the path of icon associated to the action
-
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- See Also:
-
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- See Also:
-
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- See Also:
-
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- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-
getIcon
Returns theIcon
related to iconPath property- Returns:
- the
Icon
related to iconPath property
-
getEditorClassName
Returns the editorClassName- Returns:
- the editorClassName
-
setEditorClassName
Sets the editorClassName- Parameters:
editorClassName
- the editorClassName to set
-
isLicensed
public boolean isLicensed()Returnstrue
if this action can be used in current license environment.- Returns:
true
if this action can be used in current license environment- Since:
- 6.0
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-