use of un.unece.uncefact.data.standard.unqualifieddatatype._18.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);
}
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._18.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);
}
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._18.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);
}
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._18.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);
}
}
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._18.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);
}
}
Aggregations