ambit2.core.processors.structure.key
Class PropertyKey<Result>

Package class diagram package PropertyKey
java.lang.Object
  extended by ambit2.base.processors.DefaultAmbitProcessor<ambit2.base.interfaces.IStructureRecord,Result>
      extended by 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
 
Constructor Summary
PropertyKey()
           
PropertyKey(ambit2.base.data.Property key)
           
 
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
 

Field Detail

key

protected ambit2.base.data.Property key
Constructor Detail

PropertyKey

public PropertyKey()

PropertyKey

public PropertyKey(ambit2.base.data.Property key)
Method Detail

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>