com.ibm.sensorevent.model.converter
Class TypedMapConverter

java.lang.Object
  extended by com.ibm.sensorevent.model.generic.converter.GenericConverter
      extended by com.ibm.sensorevent.model.converter.Converter
          extended by com.ibm.sensorevent.model.converter.MapConverter
              extended by com.ibm.sensorevent.model.converter.TypedMapConverter
All Implemented Interfaces:
IGenericConverter, java.io.Serializable

public class TypedMapConverter
extends MapConverter

The TypedMapConverter class converts ISensorEvents and java.util.Map objects to other formats using the correct types. Specifically, use the MapConverter class to convert:

See Also:
Serialized Form

Constructor Summary
TypedMapConverter()
          Constructs a MapConverter
 
Method Summary
static IGenericConverter getInstance()
          Factory method to create a MapConverter instance
protected  void processTypedMap(IGroup group, java.util.Map map)
           
 ISensorEvent toIBMSensorEvent(java.util.Map map)
          Converts a java.util.Map to an ISensorEvent
 
Methods inherited from class com.ibm.sensorevent.model.converter.MapConverter
toMap
 
Methods inherited from class com.ibm.sensorevent.model.generic.converter.GenericConverter
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypedMapConverter

public TypedMapConverter()
Constructs a MapConverter

Method Detail

getInstance

public static IGenericConverter getInstance()
Factory method to create a MapConverter instance


toIBMSensorEvent

public ISensorEvent toIBMSensorEvent(java.util.Map map)
                              throws SensorEventException
Converts a java.util.Map to an ISensorEvent

Overrides:
toIBMSensorEvent in class MapConverter
Throws:
SensorEventException

processTypedMap

protected void processTypedMap(IGroup group,
                               java.util.Map map)
                        throws SensorEventException
Throws:
SensorEventException


Copyright © 2005 - 2009 IBM Corp. All Rights Reserved.