Package org.wildfly.iiop.openjdk.rmi
Class Util
java.lang.Object
org.wildfly.iiop.openjdk.rmi.Util
This is a RMI/IIOP metadata conversion utility class.
Routines here are conforming to the "Java(TM) Language to IDL Mapping
Specification", version 1.1 (01-06-07).
- Version:
- $Revision: 81018 $
- Author:
- Ole Husgaard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturn the IR global ID of the given class or interface.static StringgetTypeIDLName(Class cls) Return the IDL type name for the given class.static voidinsertAnyPrimitive(org.omg.CORBA.Any any, Object primitive) Insert a java primitive into an Any.static booleanisValidRMIIIOP(Class cls) Check if this class is valid for RMI/IIOP mapping.static StringjavaToIDLName(String name) Map Java name to IDL name, as per sections 1.3.2.3, 1.3.2.4 and 1.3.2.2.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getTypeIDLName
Return the IDL type name for the given class. Here we use the mapping for parameter types and return values.- Throws:
RMIIIOPViolationException
-
isValidRMIIIOP
Check if this class is valid for RMI/IIOP mapping. This method will either throw an exception or return true.- Throws:
RMIIIOPViolationException
-
insertAnyPrimitive
Insert a java primitive into an Any. The primitive is assumed to be wrapped in one of the primitive wrapper classes. -
javaToIDLName
Map Java name to IDL name, as per sections 1.3.2.3, 1.3.2.4 and 1.3.2.2. This only works for a single name component, without a qualifying dot. -
getIRIdentifierOfClass
Return the IR global ID of the given class or interface. This is described in section 1.3.5.7. The returned string is in the RMI hashed format, like "RMI:java.util.Hashtable:C03324C0EA357270:13BB0F25214AE4B8".
-