protected ComplexObject getComplexObject(String objectName, Map<String, Object> map) { List<IOID> ioids = new ArrayList<IOID>(); for (Map.Entry<String, Object> namedObject : map.entrySet()) { ioids.add(addJavaObjectGetId(namedObject.getValue(), namedObject.getKey())); } return new ComplexObject(objectName, ioids); }
protected ComplexObject getComplexObject(String objectName, Collection o) { Iterator<Object> objectsIterator = o.iterator(); List<IOID> ioidList = new ArrayList<IOID>(); while (objectsIterator.hasNext()) { Object namedObject = objectsIterator.next(); ioidList.add(addJavaObjectGetId(namedObject, null)); } return new ComplexObject(objectName, ioidList); }