private static final Validation fromDataModel(com.alu.e3.data.model.sub.Validation val) {
if (val == null)
return null;
Validation rVal = new Validation();
if (val.getXml() != null) {
rVal.setXml(new Validation.Xml());
}
if (val.getSchema() != null) {
rVal.setSchema(fromDataModel(val.getSchema()));
}
if (val.getSoap() != null) {
rVal.setSoap(new Validation.Soap(com.alu.e3.prov.restapi.model.SoapVersionEnum.fromValue(val.getSoap().getVersion().value())));
}
return rVal;
}