public interface StructureChecker
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_KEY_VALID
This property key used to be the key of the property change event of valid property
|
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.
|
StructureCheckerResult |
check(Molecule molecule)
Detects a specific error in the molecule.
|
StructureChecker |
cloneItem()
Returns a clone of this StructureChecker instance
|
String |
getDescription()
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
StructureCheckerDescriptor |
getDescriptor()
Returns a
StructureCheckerDescriptor instance which represents the user interface
related informations of the checker |
String |
getEditorClassName()
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
String |
getErrorCode()
Returns the
String represented error code of the checker (this error code
should be used for external implementation support instead of getErrorType() ) |
StructureCheckerErrorType |
getErrorType() |
String |
getHelpText()
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
Icon |
getIcon()
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
String |
getLocalMenuName()
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
String |
getName()
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
boolean |
isAvailable()
Returns true if the checker is available, and can be used
|
boolean |
isValid()
Returns true if the checker's configuration is valid, false otherwise
|
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 |
setDescription(String description)
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
void |
setHelpText(String helpText)
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
void |
setIcon(Icon icon)
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
void |
setLocalMenuName(String localMenuName)
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
void |
setMoreErrorMessage(String moreError)
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
void |
setName(String name)
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
void |
setNoErrorMessage(String noError)
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
void |
setOneErrorMessage(String oneError)
Deprecated.
This method isn't needed anymore and will be removed in 6.0
|
static final String PROPERTY_KEY_VALID
StructureCheckerResult check(Molecule molecule) throws NullPointerException
molecule
- a Molecule
instance have to be checkedStructureCheckerResult
(which contains all data needed
to fix the problem) if the molecule contains the examined error, null
otherwiseNullPointerException
- if molecule is null@Deprecated String getName()
@Deprecated void setName(String name)
name
- the human readable name of the checker@Deprecated String getLocalMenuName()
@Deprecated void setLocalMenuName(String localMenuName)
localMenuName
- a String
to be shown in the local menu@Deprecated String getHelpText()
@Deprecated void setHelpText(String helpText)
helpText
- a String
to be shown in the tooltip@Deprecated void setNoErrorMessage(String noError)
noError
- the error message if no error found@Deprecated void setOneErrorMessage(String oneError)
oneError
- the error message if one error found@Deprecated void setMoreErrorMessage(String moreError)
moreError
- the error message if two or more error found@Deprecated Icon getIcon()
Icon
of the current checkerIcon
of the current checker@Deprecated void setIcon(Icon icon)
icon
- is an instance of Icon
StructureCheckerErrorType getErrorType()
String getErrorCode()
String
represented error code of the checker (this error code
should be used for external implementation support instead of getErrorType()
)String
represented error code of the checker (this error code
should be used for external implementation support instead of getErrorType()
)@Deprecated String getEditorClassName()
@Deprecated void setDescription(String description)
description
- the description of the checker@Deprecated String getDescription()
StructureChecker cloneItem()
boolean isValid()
boolean isAvailable()
StructureCheckerDescriptor getDescriptor()
StructureCheckerDescriptor
instance which represents the user interface
related informations of the checkerStructureCheckerDescriptor
instance which represents the user interface
related informations of the checkervoid 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 removedPropertyChangeSupport.removePropertyChangeListener(String, PropertyChangeListener)
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 addedPropertyChangeSupport.addPropertyChangeListener(String, PropertyChangeListener)
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 removedPropertyChangeSupport.removePropertyChangeListener(PropertyChangeListener)
void addPropertyChangeListener(PropertyChangeListener listener)
listener
is null, no exception is thrown and no action
is taken.listener
- The PropertyChangeListener to be addedPropertyChangeSupport.addPropertyChangeListener(PropertyChangeListener)