ambit2.core.processors.structure.key
Class CASKey

Package class diagram package CASKey
java.lang.Object
  extended by ambit2.base.processors.DefaultAmbitProcessor<ambit2.base.interfaces.IStructureRecord,Result>
      extended by ambit2.core.processors.structure.key.PropertyKey<java.lang.String>
          extended by ambit2.core.processors.structure.key.CASKey
All Implemented Interfaces:
ambit2.base.interfaces.IProcessor<ambit2.base.interfaces.IStructureRecord,java.lang.String>, IStructureKey<ambit2.base.interfaces.IStructureRecord,java.lang.String>, java.io.Serializable

public class CASKey
extends PropertyKey<java.lang.String>

Returns CAS number given the structure and its properties

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
CASKey()
           
 
Method Summary
 java.lang.Class getType()
           
protected  boolean isValid(java.lang.Object key, java.lang.Object value)
           
 java.lang.String process(ambit2.base.interfaces.IStructureRecord structure)
           
 
Methods inherited from class ambit2.core.processors.structure.key.PropertyKey
getKey, getProperty, getQueryKey, setKey, 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

CASKey

public CASKey()
Method Detail

process

public java.lang.String process(ambit2.base.interfaces.IStructureRecord structure)
                         throws ambit2.base.exceptions.AmbitException
Specified by:
process in interface ambit2.base.interfaces.IProcessor<ambit2.base.interfaces.IStructureRecord,java.lang.String>
Overrides:
process in class PropertyKey<java.lang.String>
Throws:
ambit2.base.exceptions.AmbitException

isValid

protected boolean isValid(java.lang.Object key,
                          java.lang.Object value)
Overrides:
isValid in class PropertyKey<java.lang.String>

getType

public java.lang.Class getType()
Specified by:
getType in interface IStructureKey<ambit2.base.interfaces.IStructureRecord,java.lang.String>
Specified by:
getType in class PropertyKey<java.lang.String>