use of un.unece.uncefact.data.standard.unqualifieddatatype._20.IndicatorType 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;
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._20.IndicatorType in project UVMS-ActivityModule-APP by UnionVMS.
the class ActivityEntityToModelMapper method mapValueIndicator.
private void mapValueIndicator(FLUXCharacteristic target, FluxCharacteristicEntity source) {
if (ObjectUtils.allNotNull(target, source)) {
String valueIndicator = source.getValueIndicator();
if (StringUtils.isNotEmpty(valueIndicator)) {
IndicatorType type = new IndicatorType();
IndicatorType.IndicatorString indicatorString = new IndicatorType.IndicatorString();
indicatorString.setValue(valueIndicator);
type.setIndicatorString(indicatorString);
target.setValueIndicator(type);
}
}
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._20.IndicatorType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getGearCharacteristics.
public static GearCharacteristic getGearCharacteristics() {
CodeType typeCode = getCodeType("Code 1", "57t3yf-ght43yrf-ght56yru-ght7565h");
List<TextType> descriptions = Arrays.asList(getTextType("This is sample text"));
MeasureType valueMeasure = getMeasureType(123, "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 type 1", "4fhry5-thfyr85-67thf-5htr84");
TextType value = getTextType("This is sample Text");
QuantityType valueQuantity = getQuantityType(123);
List<FLUXLocation> specifiedFluxLocations = Arrays.asList(getFluxLocation());
GearCharacteristic gearCharacteristic = new GearCharacteristic(typeCode, descriptions, valueMeasure, valueDateTime, valueIndicator, valueCode, value, valueQuantity, specifiedFluxLocations);
return gearCharacteristic;
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._20.IndicatorType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getIndicatorType.
private static IndicatorType getIndicatorType(Boolean indicator, String value, String format) {
IndicatorType indicatorType = new IndicatorType();
indicatorType.setIndicator(indicator);
indicatorType.setIndicatorString(new IndicatorType.IndicatorString(value, format));
return indicatorType;
}
Aggregations