|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.checkers.AbstractStructureChecker
public abstract class AbstractStructureChecker
Abstract base class of all functions checking and repairing chemical structures.
| Field Summary | |
|---|---|
protected StructureCheckerErrorType |
errorType
|
| Constructor Summary | |
|---|---|
AbstractStructureChecker(StructureCheckerErrorType errorType)
Constructor to create a Structure checker instance with the given errorType |
|
| Method Summary | |
|---|---|
StructureCheckerResult |
check(Molecule molecule)
Detects a specific error in the molecule. |
protected abstract StructureCheckerResult |
check1(Molecule molecule)
|
protected java.lang.String |
getErrorDescription(int errorCount)
Generate the error description depends on erroCount |
java.lang.String |
getHelpText()
Gets the help text of the checker |
javax.swing.Icon |
getIcon()
Gets the Icon of the current checker |
java.lang.String |
getLocalMenuName()
Gets the local menu name of the checker |
java.lang.String |
getName()
Gets the name of the checker |
boolean |
isLicensed()
Returns information about the licensing of the product. |
void |
setHelpText(java.lang.String helpText)
Sets the detailed help of the checker which will shown in the tooltip on the GUI |
void |
setIcon(javax.swing.Icon icon)
Sets the icon of the checker |
void |
setLicenseEnvironment(java.lang.String env)
Every license can have a modifier environment that's typically an integration environment. |
void |
setLocalMenuName(java.lang.String localMenuName)
Set the local menu name of the checker |
void |
setMoreErrorMessage(java.lang.String moreErrorMessage)
Sets the message which will given in the result if two or more error found |
void |
setName(java.lang.String name)
Sets the name of the checker |
void |
setNoErrorMessage(java.lang.String noErrorMessage)
Sets the message which will given in the result if no error found |
void |
setOneErrorMessage(java.lang.String oneErrorMessage)
Sets the message which will given in the result if one error found |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final StructureCheckerErrorType errorType
| Constructor Detail |
|---|
public AbstractStructureChecker(StructureCheckerErrorType errorType)
errorType - element of StructureCheckerErrorType| Method Detail |
|---|
public java.lang.String getName()
StructureChecker
getName in interface StructureCheckerpublic void setName(java.lang.String name)
StructureChecker
setName in interface StructureCheckername - the human readable name of the checkerpublic void setNoErrorMessage(java.lang.String noErrorMessage)
StructureChecker
setNoErrorMessage in interface StructureCheckernoErrorMessage - the error message if no error foundpublic void setOneErrorMessage(java.lang.String oneErrorMessage)
StructureChecker
setOneErrorMessage in interface StructureCheckeroneErrorMessage - the error message if one error foundpublic void setMoreErrorMessage(java.lang.String moreErrorMessage)
StructureChecker
setMoreErrorMessage in interface StructureCheckermoreErrorMessage - the error message if two or more error foundprotected java.lang.String getErrorDescription(int errorCount)
errorCount - number of errors found
public java.lang.String getLocalMenuName()
StructureChecker
getLocalMenuName in interface StructureCheckerpublic void setLocalMenuName(java.lang.String localMenuName)
StructureChecker
setLocalMenuName in interface StructureCheckerlocalMenuName - a String to be shown in the local menupublic java.lang.String getHelpText()
StructureChecker
getHelpText in interface StructureCheckerpublic void setHelpText(java.lang.String helpText)
StructureChecker
setHelpText in interface StructureCheckerhelpText - a String to be shown in the tooltippublic javax.swing.Icon getIcon()
StructureCheckerIcon of the current checker
getIcon in interface StructureCheckerIcon of the current checkerpublic void setIcon(javax.swing.Icon icon)
StructureChecker
setIcon in interface StructureCheckericon - is an instance of Icon
public final StructureCheckerResult check(Molecule molecule)
throws java.lang.NullPointerException,
chemaxon.license.LicenseException
StructureChecker
check in interface StructureCheckermolecule - 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
chemaxon.license.LicenseExceptionprotected abstract StructureCheckerResult check1(Molecule molecule)
public boolean isLicensed()
chemaxon.license.Licensable
return LicenseHandler.isLicensed( LicenseHandler.MY_IDENTIFIER, licenseEnvironment );
isLicensed in interface chemaxon.license.Licensablepublic void setLicenseEnvironment(java.lang.String env)
chemaxon.license.Licensable
private String licenseEnvironment = "";
public void setLicenseEnvironment(String env) {
licenseEnvironment = env;
}
setLicenseEnvironment in interface chemaxon.license.Licensableenv - environment String to be stored and passed to the LicenseHandler in the isLicensed method
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||