use of com.helger.xsds.peppol.smp1.ExtensionType in project peppol-commons by phax.
the class BDXR1ExtensionConverter method convertFromExtensionBDXR2.
@Nonnull
public static ExtensionType convertFromExtensionBDXR2(@Nonnull final SMPExtensionType aExt) {
final ExtensionType ret = new ExtensionType();
ret.setExtensionID(aExt.getIDValue());
ret.setExtensionName(aExt.getNameValue());
ret.setExtensionAgencyID(aExt.getExtensionAgencyIDValue());
ret.setExtensionAgencyName(aExt.getExtensionAgencyNameValue());
ret.setExtensionAgencyURI(aExt.getExtensionAgencyURIValue());
ret.setExtensionVersionID(aExt.getExtensionVersionIDValue());
ret.setExtensionURI(aExt.getExtensionURIValue());
ret.setExtensionReasonCode(aExt.getExtensionReasonCodeValue());
ret.setExtensionReason(aExt.getExtensionReasonValue());
return ret;
}
Aggregations