answer.setAttributes(attributeList);
return answer;
}
protected static MetaTypeAttributeDTO createMetaTypeAttributeDTO(Properties resources, OCD ocd, String name, AD ad) {
MetaTypeAttributeDTO answer = new MetaTypeAttributeDTO();
answer.setId(ad.getID());
answer.setName(localize(resources, ad.getName()));
answer.setDescription(localize(resources, ad.getDescription()));
answer.setCardinality(ad.getCardinality());
answer.setDefaultValue(ad.getDefaultValue());
answer.setOptionLabels(ad.getOptionLabels());
answer.setOptionValues(ad.getOptionValues());
answer.setRequired(ad.isRequired());
answer.setTypeName(typeName(ad.getType()));
return answer;
}