|
Voyager ORB | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.objectspace.voyager.corba.TypeCode
A TypeCode allows runtime access to information about an object's type. It is the CORBA cross-platform equivalent of Java reflection. Although you cannot construct a TypeCode directly, you can obtain an object's or class's typecode using the static getTypeCode() methods. Note that the typecode codes tk_null..tk_fixed are defined in com.objectspace.voyager.corba.IConstants.
Method Summary | |
TypeCode |
contentType()
Return the type of my elements. |
long |
defaultIndex()
Return my default index. |
TypeCode |
discriminatorType()
Return my discriminator type. |
static TypeCode |
getTypeCode(java.lang.Class type)
Return the typecode of the specified class. |
static TypeCode |
getTypeCode(java.lang.Object object)
Return the typecode of the specified object. |
java.lang.String |
id()
Return my repository id. |
abstract int |
kind()
Return my code (tk_null..tk_fixed). |
int |
length()
Return my maximum length. |
int |
memberCount()
Return the number of members that I define. |
Any |
memberLabel(int index)
Return an Any that describes the specified union label. |
java.lang.String |
memberName(int index)
Return the name of the specified member. |
TypeCode |
memberType(int index)
Return the typecode of the specified member. |
java.lang.String |
name()
Return the name of my interface. |
Method Detail |
public abstract int kind()
public java.lang.String id() throws TypeCodeException
public java.lang.String name() throws TypeCodeException
public int memberCount() throws TypeCodeException
public java.lang.String memberName(int index) throws TypeCodeException, java.lang.ArrayIndexOutOfBoundsException
index
- The index of the member.public TypeCode memberType(int index) throws TypeCodeException, java.lang.ArrayIndexOutOfBoundsException
index
- The index of the member.public Any memberLabel(int index) throws TypeCodeException
index
- The index of the union label.public TypeCode discriminatorType() throws TypeCodeException
public long defaultIndex() throws TypeCodeException
public int length() throws TypeCodeException
public TypeCode contentType() throws TypeCodeException
public static TypeCode getTypeCode(java.lang.Object object)
object
- The object.public static TypeCode getTypeCode(java.lang.Class type)
type
- The class.
|
ObjectSpace Inc. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |