org.objectweb.david.libs.helpers
Class TypeCodeHelpers

java.lang.Object
  extended byorg.objectweb.david.libs.helpers.TypeCodeHelpers

public class TypeCodeHelpers
extends java.lang.Object

This class contains some helper methods to manipulate TypeCodes.


Constructor Summary
TypeCodeHelpers()
           
 
Method Summary
static java.lang.String getRMIRepositoryID(java.lang.Class clz)
          This method returns the RMI-style repository ID string from clz.
static org.omg.CORBA.TypeCode getTypeCode(java.lang.Class classe)
          Returns the TypeCode corresponding to the provided Class.
static org.omg.CORBA.TypeCode getValueTypeCode(java.io.Serializable value)
          Returns the TypeCode corresponding to the provided value.
static org.omg.CORBA.TypeCode unAliasedTypeCode(org.omg.CORBA.TypeCode tc)
          Returns the TypeCode represented by tc, after having followed the chain of possible aliases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeCodeHelpers

public TypeCodeHelpers()
Method Detail

unAliasedTypeCode

public static org.omg.CORBA.TypeCode unAliasedTypeCode(org.omg.CORBA.TypeCode tc)
Returns the TypeCode represented by tc, after having followed the chain of possible aliases.

Parameters:
tc - a TypeCode
Returns:
the corresponding unaliased TypeCode

getValueTypeCode

public static org.omg.CORBA.TypeCode getValueTypeCode(java.io.Serializable value)
Returns the TypeCode corresponding to the provided value.

Parameters:
value - a Serializable object;
Returns:
the corresponding TypeCode.

getTypeCode

public static org.omg.CORBA.TypeCode getTypeCode(java.lang.Class classe)
Returns the TypeCode corresponding to the provided Class.

Parameters:
classe - a Class instance;
Returns:
the corresponding TypeCode.

getRMIRepositoryID

public static final java.lang.String getRMIRepositoryID(java.lang.Class clz)
This method returns the RMI-style repository ID string from clz. It is used when no value handler has been set.

Parameters:
clz - a Class instance;
Returns:
the corresponding repository id.