Search in sources :

Example 6 with VesselStorageCharacteristic

use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselStorageCharacteristic in project UVMS-ActivityModule-APP by UnionVMS.

the class ActivityEntityToModelMapper method mapDestinationVesselStorageCharacteristic.

private void mapDestinationVesselStorageCharacteristic(FishingActivity target, VesselStorageCharacteristicsEntity source) {
    if (ObjectUtils.allNotNull(target, source)) {
        VesselStorageCharacteristic vesselStorageCharacteristic = new VesselStorageCharacteristic();
        mapID(vesselStorageCharacteristic, source);
        mapVesselStorageCharCodes(vesselStorageCharacteristic, source.getVesselStorageCharCode());
        target.setDestinationVesselStorageCharacteristic(vesselStorageCharacteristic);
    }
}
Also used : VesselStorageCharacteristic(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselStorageCharacteristic)

Example 7 with VesselStorageCharacteristic

use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselStorageCharacteristic in project UVMS-ActivityModule-APP by UnionVMS.

the class ActivityEntityToModelMapper method mapSourceVesselStorageCharacteristic.

private void mapSourceVesselStorageCharacteristic(FishingActivity target, VesselStorageCharacteristicsEntity source) {
    if (ObjectUtils.allNotNull(target, source)) {
        VesselStorageCharacteristic vesselStorageCharacteristic = new VesselStorageCharacteristic();
        mapID(vesselStorageCharacteristic, source);
        mapVesselStorageCharCodes(vesselStorageCharacteristic, source.getVesselStorageCharCode());
        target.setSourceVesselStorageCharacteristic(vesselStorageCharacteristic);
    }
}
Also used : VesselStorageCharacteristic(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselStorageCharacteristic)

Example 8 with VesselStorageCharacteristic

use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselStorageCharacteristic in project UVMS-ActivityModule-APP by UnionVMS.

the class MapperUtil method getVesselStorageCharacteristic.

public static VesselStorageCharacteristic getVesselStorageCharacteristic() {
    VesselStorageCharacteristic vesselStorageCharacteristic = new VesselStorageCharacteristic();
    List<CodeType> typeCodes = Arrays.asList(getCodeType("CONTAINER", "VESSEL_STORAGE_TYPE"));
    IDType id = getIdType("ID 1", "687yu5-tught6-thfyr-5yt74e");
    vesselStorageCharacteristic.setID(id);
    vesselStorageCharacteristic.setTypeCodes(typeCodes);
    return vesselStorageCharacteristic;
}
Also used : VesselStorageCharacteristic(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselStorageCharacteristic) CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType) IDType(un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)

Aggregations

VesselStorageCharacteristic (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselStorageCharacteristic)6 CodeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)3 IDType (un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)3 VesselStorageCharacteristicsEntity (eu.europa.ec.fisheries.ers.fa.entities.VesselStorageCharacteristicsEntity)2 Test (org.junit.Test)2 VesselStorageCharCodeEntity (eu.europa.ec.fisheries.ers.fa.entities.VesselStorageCharCodeEntity)1 ArrayList (java.util.ArrayList)1 DelimitedPeriod (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.DelimitedPeriod)1 FACatch (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FACatch)1 FLAPDocument (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLAPDocument)1 FLUXCharacteristic (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXCharacteristic)1 FLUXLocation (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXLocation)1 FishingActivity (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FishingActivity)1 FishingGear (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FishingGear)1 FishingTrip (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FishingTrip)1 GearProblem (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.GearProblem)1 VesselTransportMeans (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselTransportMeans)1 DateTimeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.DateTimeType)1 MeasureType (un.unece.uncefact.data.standard.unqualifieddatatype._20.MeasureType)1 QuantityType (un.unece.uncefact.data.standard.unqualifieddatatype._20.QuantityType)1