Class IDLTypesUtil
java.lang.Object
com.sun.corba.se.impl.presentation.rmi.IDLTypesUtil
Utility class for testing RMI/IDL Types as defined in
Section 1.2 of The Java Language to IDL Mapping. Note that
these are static checks only. Runtime checks, such as those
described in Section 1.2.3, #3, are not covered.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeNameForProperty(String propertyName) Return IDL Type name for primitive types as defined in Section 1.3.3 of Java2IDL spec or null if not a primitive type.Return IDL Type name for special case type mappings as defined in Table 1-1 of Java2IDL spec or null if given class is not a special type.booleanSection 1.2.5booleanbooleanSection 1.2.8booleanisException(Class c) Section 1.2.6booleanSection 1.2.7booleanisPrimitive(Class c) Section 1.2.2 Primitive TypesbooleanReturn true if given method is legal property accessor as defined in Section 1.3.4.3 of Java2IDL spec.booleanbooleanbooleanSection 1.2.4voidValidate a class to ensure it conforms to the rules for a Java RMI/IIOP interface.
-
Field Details
-
VALID_TYPE
public static final int VALID_TYPE- See Also:
-
INVALID_TYPE
public static final int INVALID_TYPE- See Also:
-
FOLLOW_RMIC
public static final boolean FOLLOW_RMIC- See Also:
-
-
Constructor Details
-
IDLTypesUtil
public IDLTypesUtil()
-
-
Method Details
-
validateRemoteInterface
Validate a class to ensure it conforms to the rules for a Java RMI/IIOP interface.- Throws:
IDLTypeException- if not a valid RMI/IIOP interface.
-
isRemoteInterface
-
isPrimitive
Section 1.2.2 Primitive Types -
isValue
Section 1.2.4 -
isArray
Section 1.2.5 -
isException
Section 1.2.6 -
isRemoteException
-
isCheckedException
-
isObjectReference
Section 1.2.7 -
isEntity
Section 1.2.8 -
isPropertyAccessorMethod
Return true if given method is legal property accessor as defined in Section 1.3.4.3 of Java2IDL spec. -
getAttributeNameForProperty
-
getPrimitiveIDLTypeMapping
Return IDL Type name for primitive types as defined in Section 1.3.3 of Java2IDL spec or null if not a primitive type. -
getSpecialCaseIDLTypeMapping
Return IDL Type name for special case type mappings as defined in Table 1-1 of Java2IDL spec or null if given class is not a special type.
-