ambit2.core.processors.structure.key
Class PropertyKey<Result>
java.lang.Object
ambit2.base.processors.DefaultAmbitProcessor<ambit2.base.interfaces.IStructureRecord,Result>
ambit2.core.processors.structure.key.PropertyKey<Result>
- All Implemented Interfaces:
- ambit2.base.interfaces.IProcessor<ambit2.base.interfaces.IStructureRecord,Result>, IStructureKey<ambit2.base.interfaces.IStructureRecord,Result>, java.io.Serializable
- Direct Known Subclasses:
- CASKey, DSSToxCID, DSSToxRID, EINECSKey, InchiPropertyKey, PubchemCID
public abstract class PropertyKey<Result>
- extends ambit2.base.processors.DefaultAmbitProcessor<ambit2.base.interfaces.IStructureRecord,Result>
- implements IStructureKey<ambit2.base.interfaces.IStructureRecord,Result>
- See Also:
- Serialized Form
Field Summary |
protected ambit2.base.data.Property |
key
|
Fields inherited from class ambit2.base.processors.DefaultAmbitProcessor |
enabled, logger, propertyChangeSupport |
Method Summary |
java.lang.Object |
getKey()
|
protected Result |
getProperty(ambit2.base.interfaces.IStructureRecord structure)
|
java.lang.Object |
getQueryKey()
|
abstract java.lang.Class |
getType()
|
protected boolean |
isValid(java.lang.Object key,
java.lang.Object value)
|
Result |
process(ambit2.base.interfaces.IStructureRecord structure)
|
void |
setKey(ambit2.base.data.Property key)
|
java.lang.String |
toString()
|
Methods inherited from class ambit2.base.processors.DefaultAmbitProcessor |
addPropertyChangeListener, addPropertyChangeListener, getID, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ambit2.base.interfaces.IProcessor |
getID, isEnabled, setEnabled |
key
protected ambit2.base.data.Property key
PropertyKey
public PropertyKey()
PropertyKey
public PropertyKey(ambit2.base.data.Property key)
getKey
public java.lang.Object getKey()
- Specified by:
getKey
in interface IStructureKey<ambit2.base.interfaces.IStructureRecord,Result>
setKey
public void setKey(ambit2.base.data.Property key)
process
public Result process(ambit2.base.interfaces.IStructureRecord structure)
throws ambit2.base.exceptions.AmbitException
- Specified by:
process
in interface ambit2.base.interfaces.IProcessor<ambit2.base.interfaces.IStructureRecord,Result>
- Throws:
ambit2.base.exceptions.AmbitException
getProperty
protected Result getProperty(ambit2.base.interfaces.IStructureRecord structure)
throws ambit2.base.exceptions.AmbitException
- Throws:
ambit2.base.exceptions.AmbitException
toString
public java.lang.String toString()
- Overrides:
toString
in class ambit2.base.processors.DefaultAmbitProcessor<ambit2.base.interfaces.IStructureRecord,Result>
isValid
protected boolean isValid(java.lang.Object key,
java.lang.Object value)
getQueryKey
public java.lang.Object getQueryKey()
- Specified by:
getQueryKey
in interface IStructureKey<ambit2.base.interfaces.IStructureRecord,Result>
getType
public abstract java.lang.Class getType()
- Specified by:
getType
in interface IStructureKey<ambit2.base.interfaces.IStructureRecord,Result>