|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StructureChecker
General interface describing functions that are available for a chemical structure checker. Structure checkers can detect various structural issues, but it is the responsibility of fixers to correct them. The result of checking contains information of the discovered issues.
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_KEY_VALID
This property key used to be the key of the property change event of valid property |
Method Summary | |
---|---|
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. |
StructureCheckerResult |
check(Molecule molecule)
Detects a specific error in the molecule. |
StructureChecker |
cloneItem()
Returns a clone of this StructureChecker instance |
java.lang.String |
getDescription()
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
chemaxon.checkers.StructureCheckerDescriptor |
getDescriptor()
Returns a StructureCheckerDescriptor instance which represents the user interface
related informations of the checker |
java.lang.String |
getEditorClassName()
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
java.lang.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()
|
java.lang.String |
getHelpText()
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
javax.swing.Icon |
getIcon()
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
java.lang.String |
getLocalMenuName()
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
java.lang.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(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 |
setDescription(java.lang.String description)
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
void |
setHelpText(java.lang.String helpText)
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
void |
setIcon(javax.swing.Icon icon)
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
void |
setLocalMenuName(java.lang.String localMenuName)
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
void |
setMoreErrorMessage(java.lang.String moreError)
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
void |
setName(java.lang.String name)
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
void |
setNoErrorMessage(java.lang.String noError)
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
void |
setOneErrorMessage(java.lang.String oneError)
Deprecated. This method isn't needed anymore and will be removed in 6.0 |
Field Detail |
---|
static final java.lang.String PROPERTY_KEY_VALID
Method Detail |
---|
StructureCheckerResult check(Molecule molecule) throws java.lang.NullPointerException
molecule
- a Molecule
instance have to be checked
StructureCheckerResult
(which contains all data needed
to fix the problem) if the molecule contains the examined error, null
otherwise
java.lang.NullPointerException
- if molecule is null@Deprecated java.lang.String getName()
@Deprecated void setName(java.lang.String name)
name
- the human readable name of the checker@Deprecated java.lang.String getLocalMenuName()
@Deprecated void setLocalMenuName(java.lang.String localMenuName)
localMenuName
- a String
to be shown in the local menu@Deprecated java.lang.String getHelpText()
@Deprecated void setHelpText(java.lang.String helpText)
helpText
- a String
to be shown in the tooltip@Deprecated void setNoErrorMessage(java.lang.String noError)
noError
- the error message if no error found@Deprecated void setOneErrorMessage(java.lang.String oneError)
oneError
- the error message if one error found@Deprecated void setMoreErrorMessage(java.lang.String moreError)
moreError
- the error message if two or more error found@Deprecated javax.swing.Icon getIcon()
Icon
of the current checker
Icon
of the current checker@Deprecated void setIcon(javax.swing.Icon icon)
icon
- is an instance of Icon
StructureCheckerErrorType getErrorType()
java.lang.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 java.lang.String getEditorClassName()
@Deprecated void setDescription(java.lang.String description)
description
- the description of the checker@Deprecated java.lang.String getDescription()
StructureChecker cloneItem()
boolean isValid()
boolean isAvailable()
chemaxon.checkers.StructureCheckerDescriptor getDescriptor()
StructureCheckerDescriptor
instance which represents the user interface
related informations of the checker
StructureCheckerDescriptor
instance which represents the user interface
related informations of the checkervoid 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 removedPropertyChangeSupport.removePropertyChangeListener(String, PropertyChangeListener)
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 addedPropertyChangeSupport.addPropertyChangeListener(String, PropertyChangeListener)
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 removedPropertyChangeSupport.removePropertyChangeListener(PropertyChangeListener)
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
is null, no exception is thrown and no action
is taken.
listener
- The PropertyChangeListener to be addedPropertyChangeSupport.addPropertyChangeListener(PropertyChangeListener)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |