Search in sources :

Example 1 with CodeType

use of org.geosdi.geoplatform.xml.ows.v110.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 2 with CodeType

use of org.geosdi.geoplatform.xml.ows.v110.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 3 with CodeType

use of org.geosdi.geoplatform.xml.ows.v110.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 4 with CodeType

use of org.geosdi.geoplatform.xml.ows.v110.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)

Example 5 with CodeType

use of org.geosdi.geoplatform.xml.ows.v110.CodeType in project UVMS-ActivityModule-APP by UnionVMS.

the class ActivityEntityToModelMapper method mapSpeciesTargetCode.

private void mapSpeciesTargetCode(FishingActivity target, FishingActivityEntity source) {
    if (ObjectUtils.allNotNull(target, source) && (StringUtils.isNotEmpty(source.getSpeciesTargetCode()) || StringUtils.isNotEmpty(source.getSpeciesTargetCodeListId()))) {
        CodeType codeType = new CodeType();
        if (StringUtils.isNotEmpty(source.getSpeciesTargetCode())) {
            codeType.setValue(source.getSpeciesTargetCode());
        }
        if (StringUtils.isNotEmpty(source.getSpeciesTargetCodeListId())) {
            codeType.setListID(source.getSpeciesTargetCodeListId());
        }
        target.setSpeciesTargetCode(codeType);
    }
}
Also used : CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)

Aggregations

CodeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)46 IDType (un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)15 ArrayList (java.util.ArrayList)13 TextType (un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)10 DateTimeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.DateTimeType)9 BigDecimal (java.math.BigDecimal)7 CGlobal (com.helger.commons.CGlobal)6 ValueEnforcer (com.helger.commons.ValueEnforcer)6 CollectionHelper (com.helger.commons.collection.CollectionHelper)6 EqualsHelper (com.helger.commons.equals.EqualsHelper)6 ErrorList (com.helger.commons.error.list.ErrorList)6 IErrorList (com.helger.commons.error.list.IErrorList)6 MathHelper (com.helger.commons.math.MathHelper)6 ETriState (com.helger.commons.state.ETriState)6 StringHelper (com.helger.commons.string.StringHelper)6 Serializable (java.io.Serializable)6 LocalDate (java.time.LocalDate)6 Consumer (java.util.function.Consumer)6 Nonnull (javax.annotation.Nonnull)6 Nullable (javax.annotation.Nullable)6