Search in sources :

Example 1 with SMPExtensionType

use of com.helger.xsds.bdxr.smp2.ec.SMPExtensionType 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;
}
Also used : SMPExtensionType(com.helger.xsds.bdxr.smp2.ec.SMPExtensionType) ExtensionType(com.helger.xsds.bdxr.smp1.ExtensionType) Nonnull(javax.annotation.Nonnull)

Aggregations

ExtensionType (com.helger.xsds.bdxr.smp1.ExtensionType)1 SMPExtensionType (com.helger.xsds.bdxr.smp2.ec.SMPExtensionType)1 Nonnull (javax.annotation.Nonnull)1