com.ibm.sensorevent.model.converter
Class WBEConverter

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.WBEConverter
All Implemented Interfaces:
IConverter, IGenericConverter, java.io.Serializable

public class WBEConverter
extends Converter
implements IConverter

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
WBEConverter()
          Constructs an WBEConverter
 
Method Summary
static IGenericConverter getInstance()
          Factory method to create an WBEConverter instance
static boolean isWBEEvent(java.lang.String xml)
           
static boolean mulipleEvents(java.lang.String xml)
           
 ISensorEvent toIBMSensorEvent(javax.xml.parsers.SAXParser sp, java.lang.String xml)
          Converts an XML string in CommonBaseEvent XML format to an ISensorEvent
 ISensorEvent toIBMSensorEvent(java.lang.String xml)
          Converts an XML string to an ISensorEvent
 ISensorEvent[] toIBMSensorEvents(javax.xml.parsers.SAXParser sp, java.lang.String xml)
          Converts an XML string in CommonBaseEvent XML format to an ISensorEvent
 ISensorEvent[] toIBMSensorEvents(java.lang.String xml)
           
 java.lang.String toXMLString(ISensorEvent event)
          Converts an ISensorEvent to an XML string
 
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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

WBEConverter

public WBEConverter()
Constructs an WBEConverter

Method Detail

isWBEEvent

public static boolean isWBEEvent(java.lang.String xml)

mulipleEvents

public static boolean mulipleEvents(java.lang.String xml)

getInstance

public static IGenericConverter getInstance()
Factory method to create an WBEConverter instance


toIBMSensorEvent

public ISensorEvent toIBMSensorEvent(java.lang.String xml)
                              throws SensorEventException
Description copied from interface: IConverter
Converts an XML string to an ISensorEvent

Specified by:
toIBMSensorEvent in interface IConverter
Throws:
SensorEventException

toIBMSensorEvents

public ISensorEvent[] toIBMSensorEvents(java.lang.String xml)
                                 throws SensorEventException
Throws:
SensorEventException

toXMLString

public java.lang.String toXMLString(ISensorEvent event)
                             throws SensorEventException
Description copied from interface: IConverter
Converts an ISensorEvent to an XML string

Specified by:
toXMLString in interface IConverter
Throws:
SensorEventException

toIBMSensorEvent

public ISensorEvent toIBMSensorEvent(javax.xml.parsers.SAXParser sp,
                                     java.lang.String xml)
                              throws SensorEventException
Converts an XML string in CommonBaseEvent XML format to an ISensorEvent

Parameters:
sp - - Instance of the SAXParser to use.
xml - - the XML string to convert
Throws:
SensorEventException

toIBMSensorEvents

public ISensorEvent[] toIBMSensorEvents(javax.xml.parsers.SAXParser sp,
                                        java.lang.String xml)
                                 throws SensorEventException
Converts an XML string in CommonBaseEvent XML format to an ISensorEvent

Parameters:
sp - - Instance of the SAXParser to use.
xml - - the XML string to convert
Throws:
SensorEventException


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