Search in sources :

Example 1 with EnumDef

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;
    }
}
Also used : Contained(org.omg.CORBA.Contained) EnumDef(org.omg.CORBA.EnumDef) DataEnum(si.ijs.acs.objectexplorer.engine.DataEnum)

Aggregations

Contained (org.omg.CORBA.Contained)1 EnumDef (org.omg.CORBA.EnumDef)1 DataEnum (si.ijs.acs.objectexplorer.engine.DataEnum)1