org.objectweb.david.libs.helpers
Class TypeCodeHelpers
java.lang.Object
|
+--org.objectweb.david.libs.helpers.TypeCodeHelpers
- public class TypeCodeHelpers
- extends Object
This class contains some helper methods to manipulate TypeCodes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeCodeHelpers
public TypeCodeHelpers()
unAliasedTypeCode
public static TypeCode unAliasedTypeCode(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 TypeCode getValueTypeCode(Serializable value)
- Returns the TypeCode corresponding to the provided
value.
- Parameters:
value - a Serializable object;- Returns:
- the corresponding TypeCode.
getTypeCode
public static TypeCode getTypeCode(Class classe)
- Returns the TypeCode corresponding to the provided Class.
- Parameters:
classe - a Class instance;- Returns:
- the corresponding TypeCode.
getRMIRepositoryID
public static final String getRMIRepositoryID(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.