kaos.vlik
Class GenericTranslator

java.lang.Object
  extended by kaos.vlik.GenericTranslator
All Implemented Interfaces:
ObservationTranslator, Translator

public class GenericTranslator
extends java.lang.Object
implements ObservationTranslator

A translator built form a list of TranslationEntry objects.


Constructor Summary
GenericTranslator(java.util.List entries)
           
 
Method Summary
 java.util.List getUpdateTypes()
           
 void update(java.lang.String observableID, java.lang.String updateType, java.lang.Object update)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTranslator

public GenericTranslator(java.util.List entries)
Parameters:
entries - The list of TranslationEntry objects this translator uses.
Method Detail

getUpdateTypes

public java.util.List getUpdateTypes()
Specified by:
getUpdateTypes in interface ObservationTranslator
Returns:
A list of strings, the update types which this Translator is able to handle.

update

public void update(java.lang.String observableID,
                   java.lang.String updateType,
                   java.lang.Object update)
Specified by:
update in interface ObservationTranslator
See Also:
KAoSObserver.update(java.lang.String, java.lang.String, java.lang.Object, java.lang.Object)