c.add(base, m);
/** * Add a set of attributes to a container (interface or value class). */ private void addAttributes(LocalContainer container, ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { AttributeAnalysis[] attrs = ca.getAttributes(); for (int i = 0; i < attrs.length; ++i) { AttributeDefImpl aDef; String aid = ca.getMemberRepositoryId(attrs[i].getJavaName()); String aName = attrs[i].getIDLName(); Class cls = attrs[i].getCls(); TypeCode typeCode = getTypeCode(cls); aDef = new AttributeDefImpl(aid, aName, "1.0", attrs[i].getMode(), typeCode, container, impl); container.add(aName, aDef); } }
/** * 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); } }
container.add(oName, oDef);
c.add(base, m);
c.add(base, m);
/** * Add a set of attributes to a container (interface or value class). */ private void addAttributes(LocalContainer container, ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { AttributeAnalysis[] attrs = ca.getAttributes(); for (int i = 0; i < attrs.length; ++i) { AttributeDefImpl aDef; String aid = ca.getMemberRepositoryId(attrs[i].getJavaName()); String aName = attrs[i].getIDLName(); Class cls = attrs[i].getCls(); TypeCode typeCode = getTypeCode(cls); aDef = new AttributeDefImpl(aid, aName, "1.0", attrs[i].getMode(), typeCode, container, impl); container.add(aName, aDef); } }
/** * Add a set of attributes to a container (interface or value class). */ private void addAttributes(LocalContainer container, ContainerAnalysis ca) throws RMIIIOPViolationException, IRConstructionException { AttributeAnalysis[] attrs = ca.getAttributes(); for (int i = 0; i < attrs.length; ++i) { AttributeDefImpl aDef; String aid = ca.getMemberRepositoryId(attrs[i].getJavaName()); String aName = attrs[i].getIDLName(); Class cls = attrs[i].getCls(); TypeCode typeCode = getTypeCode(cls); aDef = new AttributeDefImpl(aid, aName, "1.0", attrs[i].getMode(), typeCode, container, impl); container.add(aName, aDef); } }
/** * 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); } }
container.add(oName, oDef);
container.add(oName, oDef);