Search in sources :

Example 11 with ExtensionType

use of org.geotoolkit.wcs.xml.v200.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;
}
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)5 ExtensionType (com.helger.xsds.peppol.smp1.ExtensionType)4 Test (org.junit.Test)4 Document (org.w3c.dom.Document)4 CommonsArrayList (com.helger.commons.collection.impl.CommonsArrayList)3 SMPExtensionType (com.helger.xsds.bdxr.smp2.ec.SMPExtensionType)3 Nullable (javax.annotation.Nullable)3 Nonnull (javax.annotation.Nonnull)2 IJson (com.helger.json.IJson)1 IJsonObject (com.helger.json.IJsonObject)1 IParticipantIdentifier (com.helger.peppolid.IParticipantIdentifier)1 BDXR1MarshallerServiceGroupType (com.helger.smpclient.bdxr1.marshal.BDXR1MarshallerServiceGroupType)1 ObjectFactory (com.helger.xsds.peppol.smp1.ObjectFactory)1 ServiceMetadataReferenceCollectionType (com.helger.xsds.peppol.smp1.ServiceMetadataReferenceCollectionType)1 ServiceMetadataReferenceType (com.helger.xsds.peppol.smp1.ServiceMetadataReferenceType)1 StringReader (java.io.StringReader)1 StringWriter (java.io.StringWriter)1 ArrayList (java.util.ArrayList)1 JAXBElement (javax.xml.bind.JAXBElement)1 QName (javax.xml.namespace.QName)1