org.apache.felix.upnp.basedriver.util
Class Converter

java.lang.Object
  extended by org.apache.felix.upnp.basedriver.util.Converter

public class Converter
extends java.lang.Object

Author:
Felix Project Team

Constructor Summary
Converter()
           
 
Method Summary
static java.lang.Object parseString(java.lang.String value, java.lang.String upnpType)
           
static java.lang.String toString(java.lang.Object value, java.lang.String upnpType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

toString

public static java.lang.String toString(java.lang.Object value,
                                        java.lang.String upnpType)
                                 throws java.lang.Exception
Parameters:
value - Object that contain the value
upnpType - String conating the UPnP Type of the Object
Returns:
a String that contain the UPnP rappresentation of the value contained in Object of type specified by typeUPnP
Throws:
java.lang.Exception

parseString

public static java.lang.Object parseString(java.lang.String value,
                                           java.lang.String upnpType)
                                    throws java.lang.Exception
Parameters:
value -
upnpType -
Returns:
Throws:
java.lang.Exception