use of org.omg.CORBA.EnumDef in project ACS by ACS-Community.
the class BACIIntrospector method getEnumDef.
private DataEnum getEnumDef(TypeCode tc) {
if (tc.kind() != TCKind.tk_enum)
return null;
try {
DataEnum de = new DataEnum(tc.id());
Contained ctd = ra.lookupId(tc.id());
EnumDef ed = EnumDefHelper.narrow(ctd);
String[] mems = ed.members();
for (int i = 0; i < mems.length; i++) de.add(i, mems[i]);
return de;
} catch (org.omg.CORBA.TypeCodePackage.BadKind e) {
e.printStackTrace();
return null;
}
}