RMObject bindAttributes(String type, List<AttributeValue> attributes) throws DADLBindingException, RMObjectBuildingException { Map<String, Object> values = new HashMap<String, Object>(); for (AttributeValue attr : attributes) { String id = attr.getId(); Object value = bindObjectBlock(attr.getValue()); values.put(id, value); } return invokeRMObjectBuilder(type, values); }
RMObject bindAttributes(String type, List<AttributeValue> attributes) throws DADLBindingException, RMObjectBuildingException { Map<String, Object> values = new HashMap<String, Object>(); for (AttributeValue attr : attributes) { String id = attr.getId(); Object value = bindObjectBlock(attr.getValue()); values.put(id, value); } return invokeRMObjectBuilder(type, values); }
private Object bindAttributes(String type, List<AttributeValue> attributes) throws BindingException { log.debug("bind attributes for type: " + type); Map<String, Object> values = new HashMap<String, Object>(); for (AttributeValue attr : attributes) { String id = attr.getId(); Object value = bindObjectBlock(attr.getValue()); values.put(id, value); } try { return createModelClass(type, values); } catch (Exception ex) { throw new BindingException("failed to create instance of " + type + ", with values: " + values, ex); } }