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); }
final public AttributeValue attr_val() throws ParseException { String id; ObjectBlock value; id = attribute_identifier(); jj_consume_token(SYM_EQ); value = object_block(); {if (true) return new AttributeValue(id, value);} throw new Error("Missing return statement in function"); }
final public AttributeValue attr_val() throws ParseException { String id; ObjectBlock value; id = attribute_identifier(); jj_consume_token(SYM_EQ); value = object_block(); {if (true) return new AttributeValue(id, value);} throw new Error("Missing return statement in function"); }
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); } }