use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.RegistrationLocation in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getRegistrationEvent.
public static RegistrationEvent getRegistrationEvent() {
List<TextType> descriptions = Arrays.asList(getTextType("This is test Text"));
DateTimeType occurrenceDateTime = getDateTimeType("2016-07-01 11:15:00");
RegistrationLocation relatedRegistrationLocation = getRegistrationLocation();
RegistrationEvent registrationEvent = new RegistrationEvent(descriptions, occurrenceDateTime, relatedRegistrationLocation);
return registrationEvent;
}
use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.RegistrationLocation 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.reusableaggregatebusinessinformationentity._20.RegistrationLocation in project UVMS-ActivityModule-APP by UnionVMS.
the class ActivityEntityToModelMapper method mapRelatedRegistrationLocation.
private void mapRelatedRegistrationLocation(RegistrationEvent target, RegistrationLocationEntity source) {
if (ObjectUtils.allNotNull(target, source)) {
RegistrationLocation registrationLocation = new RegistrationLocation();
setDescriptions(registrationLocation, source);
mapCountryID(registrationLocation, source);
setGeopoliticalRegionCode(registrationLocation, source);
mapNames(registrationLocation, source);
mapPurposeCode(registrationLocation, source);
target.setRelatedRegistrationLocation(registrationLocation);
}
}
use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.RegistrationLocation in project UVMS-ActivityModule-APP by UnionVMS.
the class ActivityEntityToModelMapper method setGeopoliticalRegionCode.
private void setGeopoliticalRegionCode(RegistrationLocation target, RegistrationLocationEntity source) {
if (ObjectUtils.allNotNull(target, source)) {
CodeType codeType = new CodeType();
codeType.setListID(source.getRegionCodeListId());
codeType.setValue(source.getRegionCode());
target.setGeopoliticalRegionCode(codeType);
}
}
use of un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.RegistrationLocation in project UVMS-ActivityModule-APP by UnionVMS.
the class ActivityEntityToModelMapper method mapNames.
private void mapNames(RegistrationLocation target, RegistrationLocationEntity source) {
if (ObjectUtils.allNotNull(target, source)) {
TextType textType = new TextType();
textType.setValue(source.getName());
textType.setLanguageID(source.getNameLanguageId());
target.setNames(singletonList(textType));
}
}
Aggregations