use of un.unece.uncefact.data.standard.unqualifieddatatype._100.TextType in project UVMS-ActivityModule-APP by UnionVMS.
the class ActivityEntityToModelMapper method mapNames.
private void mapNames(VesselTransportMeans target, String name) {
if (ObjectUtils.allNotNull(target)) {
TextType textType = new TextType();
textType.setValue(name);
target.setNames(singletonList(textType));
}
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._100.TextType in project UVMS-ActivityModule-APP by UnionVMS.
the class ActivityEntityToModelMapper method mapValues.
private void mapValues(FLUXCharacteristic target, FluxCharacteristicEntity source) {
if (ObjectUtils.allNotNull(target, source)) {
String valueText = source.getValueText();
if (StringUtils.isNotEmpty(valueText)) {
TextType textType = new TextType();
textType.setValue(valueText);
target.setValues(Collections.singletonList(textType));
}
}
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._100.TextType 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.unqualifieddatatype._100.TextType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getTextType.
private static TextType getTextType(String value) {
TextType textType = new TextType();
textType.setValue(value);
return textType;
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._100.TextType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getFluxCharacteristics.
public static FLUXCharacteristic getFluxCharacteristics() {
CodeType typeCode = getCodeType("Code 1", "57t3yf-ght43yrf-ght56yru-ght7565h");
List<TextType> descriptions = Arrays.asList(getTextType("This is test description"));
MeasureType valueMeasure = getMeasureType(333, "C62", "57t3yf-ght43yrf-ght56yru-ght7565h");
DateTimeType valueDateTime = getDateTimeType("2016-07-01 11:15:00");
IndicatorType valueIndicator = getIndicatorType(true, "Test value", "Test format");
CodeType valueCode = getCodeType("Code Value 1", "57tr4t3yf-ght43yrf-ght56yr5u-ght75365h");
List<TextType> values = Arrays.asList(getTextType("This is sample value"));
QuantityType valueQuantity = getQuantityType(123);
List<FLUXLocation> specifiedFLUXLocations = null;
List<FLAPDocument> relatedFLAPDocuments = Arrays.asList(getFlapDocument());
FLUXCharacteristic fluxCharacteristic = new FLUXCharacteristic(typeCode, descriptions, valueMeasure, valueDateTime, valueIndicator, valueCode, values, valueQuantity, specifiedFLUXLocations, relatedFLAPDocuments);
return fluxCharacteristic;
}
Aggregations