public class RepositoryId extends Object
Modifier and Type | Method and Description |
---|---|
static int |
computeValueTag(boolean codeBasePresent,
int typeInfo,
boolean chunkedEncoding) |
static String |
convertToISOLatin1(String name)
Convert strings with illegal IDL identifier characters.
|
static String |
createForAnyType(Class<?> type)
Createa a repository ID for the type if it is either a java type or an IDL type.
|
static String |
createForIDLType(Class<?> ser,
int major,
int minor)
Creates a repository ID for an IDL Java Type.
|
static String |
createForJavaType(Class<?> clz)
Creates a repository ID for a normal Java Type.
|
static String |
createForJavaType(Serializable ser)
Creates a repository ID for a normal Java Type.
|
static String |
createForSpecialCase(Class<?> clazz) |
static String |
createForSpecialCase(Serializable ser) |
static String |
createSequenceRepID(Class<?> clazz)
Creates a repository ID for a sequence.
|
static String |
createSequenceRepID(Object ser)
Creates a repository ID for a sequence.
|
static long |
fromHex(String hexNumber) |
String |
getActualSerialVersionUID() |
long |
getActualSerialVersionUIDAsLong() |
Class<?> |
getAnyClassFromType() |
static byte[] |
getByteArray(String repStr) |
Class<?> |
getClassFromType() |
Class<?> |
getClassFromType(Class<?> expectedType,
String codebase) |
Class<?> |
getClassFromType(String url) |
String |
getClassName() |
String |
getDefinedInId() |
String |
getRepositoryId() |
String |
getSerialVersionUID() |
long |
getSerialVersionUIDAsLong() |
static String |
getServerURL() |
static int |
getTypeInfo(int value_tag) |
String |
getTypeString() |
String |
getUnqualifiedName() |
String |
getVersionString() |
static boolean |
isAbstractBase(Class<?> clazz) |
static boolean |
isAnyRequired(Class<?> clazz) |
static boolean |
isChunkedEncoding(int value_tag) |
static boolean |
isCodeBasePresent(int value_tag) |
boolean |
isIDLType() |
boolean |
isRMIValueType() |
boolean |
isSequence() |
boolean |
isSupportedFormat() |
static void |
setByteArray(String repStr,
byte[] repStrBytes) |
String |
toString() |
static boolean |
useFullValueDescription(Class<?> clazz,
String repositoryID)
Checks to see if the FullValueDescription should be retrieved.
|
public static final byte[] IDL_IDENTIFIER_CHARS
public static final int kInitialValueTag
public static final int kNoTypeInfo
public static final int kSingleRepTypeInfo
public static final int kPartialListTypeInfo
public static final int kChunkedMask
public static final int kPreComputed_StandardRMIUnchunked
public static final int kPreComputed_CodeBaseRMIUnchunked
public static final int kPreComputed_StandardRMIChunked
public static final int kPreComputed_CodeBaseRMIChunked
public static final int kPreComputed_StandardRMIUnchunked_NoRep
public static final int kPreComputed_CodeBaseRMIUnchunked_NoRep
public static final int kPreComputed_StandardRMIChunked_NoRep
public static final int kPreComputed_CodeBaseRMIChunked_NoRep
public static final String kWStringValueVersion
public static final String kWStringValueHash
public static final String kWStringStubValue
public static final String kWStringTypeStr
public static final String kWStringValueRepID
public static final String kAnyRepID
public static final String kClassDescValueHash
public static final String kClassDescStubValue
public static final String kClassDescTypeStr
public static final String kClassDescValueRepID
public static final String kObjectValueHash
public static final String kObjectStubValue
public static final String kSequenceValueHash
public static final String kPrimitiveSequenceValueHash
public static final String kSerializableValueHash
public static final String kSerializableStubValue
public static final String kExternalizableValueHash
public static final String kExternalizableStubValue
public static final String kRemoteValueHash
public static final String kRemoteStubValue
public static final String kRemoteTypeStr
public static final String kRemoteValueRepID
public static final Hashtable<String,StringBuffer> kSpecialArrayTypeStrings
public static final RepositoryIdCache cache
public static final String kjava_rmi_Remote
public static final String korg_omg_CORBA_Object
public static final Class<?>[] kNoParamTypes
public static final Object[] kNoArgs
public final String getUnqualifiedName()
public final String getDefinedInId()
public final String getTypeString()
public final String getVersionString()
public final String getSerialVersionUID()
public final String getActualSerialVersionUID()
public final long getSerialVersionUIDAsLong()
public final long getActualSerialVersionUIDAsLong()
public final boolean isRMIValueType()
public final boolean isIDLType()
public final String getRepositoryId()
public static byte[] getByteArray(String repStr)
public static void setByteArray(String repStr, byte[] repStrBytes)
public final boolean isSequence()
public final boolean isSupportedFormat()
public final String getClassName()
public final Class<?> getAnyClassFromType() throws ClassNotFoundException
ClassNotFoundException
public final Class<?> getClassFromType() throws ClassNotFoundException
ClassNotFoundException
public final Class<?> getClassFromType(Class<?> expectedType, String codebase) throws ClassNotFoundException
ClassNotFoundException
public final Class<?> getClassFromType(String url) throws ClassNotFoundException, MalformedURLException
public static boolean useFullValueDescription(Class<?> clazz, String repositoryID) throws IOException
Throws
- IOException if suids do not match or if the repositoryID is not an RMIValueTypeIOException
public static String createSequenceRepID(Object ser)
ser
- The Java object to create a repository ID forpublic static String createSequenceRepID(Class<?> clazz)
clazz
- The Java class to create a repository ID forpublic static String createForSpecialCase(Serializable ser)
public static String createForJavaType(Serializable ser) throws TypeMismatchException
ser
- The Java object to create a repository ID forTypeMismatchException
- if ser implements the org.omg.CORBA.portable.IDLEntity interface which indicates it is an IDL
Value type.public static String createForJavaType(Class<?> clz) throws TypeMismatchException
clz
- The Java class to create a repository ID forTypeMismatchException
- if ser implements the org.omg.CORBA.portable.IDLEntity interface which indicates it is an IDL
Value type.public static String createForIDLType(Class<?> ser, int major, int minor) throws TypeMismatchException
ser
- The IDL Value object to create a repository ID formajor
- The major version numberminor
- The minor version numberTypeMismatchException
- if ser does not implement the org.omg.CORBA.portable.IDLEntity interface which indicates it is an
IDL Value type.public static String createForAnyType(Class<?> type)
type
- The type to create rep. id forpublic static boolean isAbstractBase(Class<?> clazz)
public static boolean isAnyRequired(Class<?> clazz)
public static long fromHex(String hexNumber)
public static String convertToISOLatin1(String name)
Section 5.5.7 of OBV spec.
public static int computeValueTag(boolean codeBasePresent, int typeInfo, boolean chunkedEncoding)
public static boolean isCodeBasePresent(int value_tag)
public static int getTypeInfo(int value_tag)
public static boolean isChunkedEncoding(int value_tag)
public static String getServerURL()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.