public final ValidationResult validate() {
PropertyValidationSupport support = new PropertyValidationSupport(
attributes, "Attributt");
for(OrderLineAttribute attribute:attributes){
AttributeDataType dataType = attribute.getAttributeDataType()!=null?AttributeDataType.valueOf(attribute.getAttributeDataType()):AttributeDataType.TEKST;
dataType.addError(attribute,support);
}
return support.getResult();
}