1 21 package org.jacorb.ir.gui.typesystem.remote; 22 23 import org.omg.CORBA.*; 24 import org.jacorb.ir.gui.typesystem.*; 25 26 public class IREnum 27 extends IRNode 28 implements AbstractContainer 29 { 30 31 34 protected IREnum() { 35 super(); 36 } 37 41 protected IREnum(org.omg.CORBA.IRObject irObject) { 42 super(irObject); 43 } 44 47 public org.jacorb.ir.gui.typesystem.ModelParticipant[] contents() 48 { 49 EnumDef enumDef = 50 EnumDefHelper.narrow((org.omg.CORBA.Object )this.irObject); 51 String [] contents = enumDef.members(); 52 org.jacorb.ir.gui.typesystem.TypeSystemNode[] result = 53 new org.jacorb.ir.gui.typesystem.TypeSystemNode[contents.length]; 54 for (int i=0; i<contents.length; i++) 55 { 56 result[i] = RemoteTypeSystem.createTypeSystemNode(contents[i]); 57 } return result; 59 } 60 64 public static String nodeTypeName() { 65 return "enum"; 66 } 67 } 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | Popular Tags |