Search in sources :

Example 11 with CodeType

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

the class AapProcessMapper method getAapProcessCodes.

protected Set<AapProcessCodeEntity> getAapProcessCodes(List<CodeType> codeTypes, AapProcessEntity aapProcessEntity) {
    if (codeTypes == null || codeTypes.isEmpty()) {
        return Collections.emptySet();
    }
    Set<AapProcessCodeEntity> aapProcessCodeEntities = new HashSet<>();
    for (CodeType codeType : codeTypes) {
        AapProcessCodeEntity entity = AapProcessMapper.INSTANCE.mapToAapProcessCodeEntity(codeType);
        entity.setAapProcess(aapProcessEntity);
        aapProcessCodeEntities.add(entity);
    }
    return aapProcessCodeEntities;
}
Also used : AapProcessCodeEntity(eu.europa.ec.fisheries.ers.fa.entities.AapProcessCodeEntity) CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType) HashSet(java.util.HashSet)

Example 12 with CodeType

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

the class ActivityEntityToModelMapper method mapReasonCode.

private void mapReasonCode(FishingActivity target, FishingActivityEntity source) {
    if (ObjectUtils.allNotNull(target, target)) {
        CodeType codeType = new CodeType();
        codeType.setValue(source.getReasonCode());
        codeType.setListID(source.getReasonCodeListId());
        target.setReasonCode(codeType);
    }
}
Also used : CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)

Example 13 with CodeType

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

the class ActivityEntityToModelMapper method mapPurposeCode.

private void mapPurposeCode(RegistrationLocation target, RegistrationLocationEntity source) {
    if (ObjectUtils.allNotNull(target, source)) {
        CodeType codeType = new CodeType();
        codeType.setValue(source.getTypeCode());
        codeType.setListID(source.getTypeCodeListId());
        target.setTypeCode(codeType);
    }
}
Also used : CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)

Example 14 with CodeType

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

the class ActivityEntityToModelMapper method mapPurposeCode.

private void mapPurposeCode(FAReportDocument target, String typeCode, String listId) {
    if (ObjectUtils.allNotNull(target)) {
        CodeType codeType = new CodeType();
        codeType.setValue(typeCode);
        codeType.setListID(listId);
        target.setTypeCode(codeType);
    }
}
Also used : CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)

Example 15 with CodeType

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

the class ActivityEntityToModelMapper method mapPurposeCode.

private void mapPurposeCode(FLUXCharacteristic target, FluxCharacteristicEntity source) {
    if (ObjectUtils.allNotNull(target, source)) {
        if (source.getTypeCode() != null) {
            CodeType codeType = new CodeType();
            codeType.setValue(source.getTypeCode());
            target.setTypeCode(codeType);
        }
    }
}
Also used : CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)

Aggregations

CodeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)45 IDType (un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)14 TextType (un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)10 DateTimeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.DateTimeType)9 QuantityType (un.unece.uncefact.data.standard.unqualifieddatatype._20.QuantityType)6 ArrayList (java.util.ArrayList)5 HashSet (java.util.HashSet)5 FLUXLocation (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXLocation)5 FLUXParty (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXParty)5 MeasureType (un.unece.uncefact.data.standard.unqualifieddatatype._20.MeasureType)5 CodeType (net.opengis.ows11.CodeType)4 DataInputsType (net.opengis.wps10.DataInputsType)4 InputDescriptionType (net.opengis.wps10.InputDescriptionType)4 ProcessDescriptionType (net.opengis.wps10.ProcessDescriptionType)4 Test (org.junit.Test)4 FLUXCharacteristic (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXCharacteristic)4 SizeDistribution (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.SizeDistribution)4 CustomProcessFunction (com.sldeditor.rendertransformation.CustomProcessFunction)3 ProcessFunctionParameterValue (com.sldeditor.rendertransformation.ProcessFunctionParameterValue)3 LiteralInputType (net.opengis.wps10.LiteralInputType)3