final Collection<? extends AbstractAttr> attributes,
final Collection<? extends AbstractDerAttr> derivedAttributes,
final Collection<? extends AbstractVirAttr> virtualAttributes,
final Collection<ExternalResource> resources) {
AttributeTO attributeTO;
for (AbstractAttr attribute : attributes) {
attributeTO = new AttributeTO();
attributeTO.setSchema(attribute.getSchema().getName());
attributeTO.setValues(attribute.getValuesAsStrings());
attributeTO.setReadonly(attribute.getSchema().isReadonly());
abstractAttributableTO.addAttribute(attributeTO);
}
for (AbstractDerAttr derivedAttribute : derivedAttributes) {
attributeTO = new AttributeTO();
attributeTO.setSchema(derivedAttribute.getDerivedSchema().getName());
attributeTO.addValue(derivedAttribute.getValue(attributes));
attributeTO.setReadonly(true);
abstractAttributableTO.addDerivedAttribute(attributeTO);
}
for (AbstractVirAttr virtualAttribute : virtualAttributes) {
attributeTO = new AttributeTO();
attributeTO.setSchema(virtualAttribute.getVirtualSchema().getName());
attributeTO.setValues(virtualAttribute.getValues());
attributeTO.setReadonly(virtualAttribute.getVirtualSchema().isReadonly());
abstractAttributableTO.addVirtualAttribute(attributeTO);
}
for (ExternalResource resource : resources) {