c = container._lookup_name(search_name, levels_to_search - 1, limit_type, exclude_inherited); if (c != null)
public Container defined_in() { return ContainerHelper.narrow(defined_in.getReference()); }
public LocalContained _lookup(String search_name) { if (search_name.startsWith("::")) return delegateFor.getRepository()._lookup(search_name.substring(2)); int idx = search_name.indexOf("::"); if (idx > 0) { String first = search_name.substring(0, idx); Object o = contMap.get(first); if (o == null || !(o instanceof LocalContainer)) return null; else { LocalContainer next = (LocalContainer) o; String rest = search_name.substring(idx + 2); return next._lookup(rest); } } else return (LocalContained) contMap.get(search_name); }
/** * 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); } }
void add(String name, LocalContained contained) throws IRConstructionException { if (contained.getRepository() != delegateFor.getRepository()) throw IIOPLogger.ROOT_LOGGER.wrongInterfaceRepository(); if (contMap.get(name) != null) throw IIOPLogger.ROOT_LOGGER.duplicateRepositoryName(); cont.add(contained); contMap.put(name, contained); }
public LocalContained _lookup(String search_name) { if (search_name.startsWith("::")) return delegateFor.getRepository()._lookup(search_name.substring(2)); int idx = search_name.indexOf("::"); if (idx > 0) { String first = search_name.substring(0, idx); Object o = contMap.get(first); if (o == null || !(o instanceof LocalContainer)) return null; else { LocalContainer next = (LocalContainer) o; String rest = search_name.substring(idx + 2); return next._lookup(rest); } } else return (LocalContained) contMap.get(search_name); }
/** * 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); } }
void add(String name, LocalContained contained) throws IRConstructionException { if (contained.getRepository() != delegateFor.getRepository()) throw IIOPLogger.ROOT_LOGGER.wrongInterfaceRepository(); if (contMap.get(name) != null) throw IIOPLogger.ROOT_LOGGER.duplicateRepositoryName(); cont.add(contained); contMap.put(name, contained); }
public LocalContained _lookup(String search_name) { if (search_name.startsWith("::")) return delegateFor.getRepository()._lookup(search_name.substring(2)); int idx = search_name.indexOf("::"); if (idx > 0) { String first = search_name.substring(0, idx); Object o = contMap.get(first); if (o == null || !(o instanceof LocalContainer)) return null; else { LocalContainer next = (LocalContainer) o; String rest = search_name.substring(idx + 2); return next._lookup(rest); } } else return (LocalContained) contMap.get(search_name); }
container.add(oName, oDef);
void add(String name, LocalContained contained) throws IRConstructionException { if (contained.getRepository() != delegateFor.getRepository()) throw IIOPLogger.ROOT_LOGGER.wrongInterfaceRepository(); if (contMap.get(name) != null) throw IIOPLogger.ROOT_LOGGER.duplicateRepositoryName(); cont.add(contained); contMap.put(name, contained); }
public Container defined_in() { return ContainerHelper.narrow(defined_in.getReference()); }
c = container._lookup_name(search_name, levels_to_search - 1, limit_type, exclude_inherited); if (c != null)
/** * 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); } }
public Container defined_in() { return ContainerHelper.narrow(defined_in.getReference()); }
c = container._lookup_name(search_name, levels_to_search - 1, limit_type, exclude_inherited); if (c != null)
/** * 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); } }