ilog.server.jsds
Class IlsClassConverter

java.lang.Object
  |
  +--ilog.server.jsds.IlsClassConverter

public class IlsClassConverter
extends java.lang.Object

Repository of converters (convert object into another class).


Method Summary
static java.lang.Object Convert(java.lang.Object from, java.lang.Class to)
          Try to convert an object to another class.
static void Register(java.lang.Class from, java.lang.Class to, IlsConverter converter)
          Register a new type of convertion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

Convert

public static java.lang.Object Convert(java.lang.Object from,
                                       java.lang.Class to)
Try to convert an object to another class.
Parameters:
from - Original object.
to - Class to convert the original object.
Returns:
a new object of class to or null if no converter is registered for this conversion.
See Also:
Register(java.lang.Class, java.lang.Class, ilog.server.jsds.IlsConverter)

Register

public static void Register(java.lang.Class from,
                            java.lang.Class to,
                            IlsConverter converter)
Register a new type of convertion.
Parameters:
from - Original class of the convertion.
to - Destination class of the convertion.
converter - Convertion to apply.
See Also:
IlsConverter