public Description describe() { String defined_in_id = "IR"; if (defined_in instanceof ContainedOperations) defined_in_id = ((ContainedOperations) defined_in).id(); ConstantDescription d = new ConstantDescription(name, id, defined_in_id, version, typeCode, value); Any any = getORB().create_any(); ConstantDescriptionHelper.insert(any, d); return new Description(DefinitionKind.dk_Constant, any); }
public void allDone() throws IRConstructionException { // Get my type definition: It should have been created now. type_def = IDLTypeImpl.getIDLType(typeCode, repository); getReference(); }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.ConstantDefHelper.narrow( servantToReference(new ConstantDefPOATie(this))); } return ref; }
/** * Add a set of constants to a container (interface or value class). */ private void addConstants(LocalContainer container, ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { ConstantAnalysis[] consts = ca.getConstants(); for (int i = 0; i < consts.length; ++i) { ConstantDefImpl cDef; String cid = ca.getMemberRepositoryId(consts[i].getJavaName()); String cName = consts[i].getIDLName(); Class cls = consts[i].getType(); TypeCode typeCode = getConstantTypeCode(cls); Any value = orb.create_any(); consts[i].insertValue(value); cDef = new ConstantDefImpl(cid, cName, "1.0", typeCode, value, container, impl); container.add(cName, cDef); } }
/** * Add a set of constants to a container (interface or value class). */ private void addConstants(LocalContainer container, ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { ConstantAnalysis[] consts = ca.getConstants(); for (int i = 0; i < consts.length; ++i) { ConstantDefImpl cDef; String cid = ca.getMemberRepositoryId(consts[i].getJavaName()); String cName = consts[i].getIDLName(); Class cls = consts[i].getType(); TypeCode typeCode = getConstantTypeCode(cls); Any value = orb.create_any(); consts[i].insertValue(value); cDef = new ConstantDefImpl(cid, cName, "1.0", typeCode, value, container, impl); container.add(cName, cDef); } }
public void allDone() throws IRConstructionException { // Get my type definition: It should have been created now. type_def = IDLTypeImpl.getIDLType(typeCode, repository); getReference(); }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.ConstantDefHelper.narrow( servantToReference(new ConstantDefPOATie(this))); } return ref; }
public Description describe() { String defined_in_id = "IR"; if (defined_in instanceof ContainedOperations) defined_in_id = ((ContainedOperations) defined_in).id(); ConstantDescription d = new ConstantDescription(name, id, defined_in_id, version, typeCode, value); Any any = getORB().create_any(); ConstantDescriptionHelper.insert(any, d); return new Description(DefinitionKind.dk_Constant, any); }
/** * Add a set of constants to a container (interface or value class). */ private void addConstants(LocalContainer container, ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { ConstantAnalysis[] consts = ca.getConstants(); for (int i = 0; i < consts.length; ++i) { ConstantDefImpl cDef; String cid = ca.getMemberRepositoryId(consts[i].getJavaName()); String cName = consts[i].getIDLName(); Class cls = consts[i].getType(); TypeCode typeCode = getConstantTypeCode(cls); Any value = orb.create_any(); consts[i].insertValue(value); cDef = new ConstantDefImpl(cid, cName, "1.0", typeCode, value, container, impl); container.add(cName, cDef); } }
public void allDone() throws IRConstructionException { // Get my type definition: It should have been created now. type_def = IDLTypeImpl.getIDLType(typeCode, repository); getReference(); }
public IRObject getReference() { if (ref == null) { ref = org.omg.CORBA.ConstantDefHelper.narrow( servantToReference(new ConstantDefPOATie(this))); } return ref; }
public Description describe() { String defined_in_id = "IR"; if (defined_in instanceof ContainedOperations) defined_in_id = ((ContainedOperations) defined_in).id(); ConstantDescription d = new ConstantDescription(name, id, defined_in_id, version, typeCode, value); Any any = getORB().create_any(); ConstantDescriptionHelper.insert(any, d); return new Description(DefinitionKind.dk_Constant, any); }