Search in sources :

Example 1 with FluxCharacteristicsDto

use of eu.europa.ec.fisheries.ers.service.dto.FluxCharacteristicsDto in project UVMS-ActivityModule-APP by UnionVMS.

the class ActivityDetailsDto method getCharacteristics.

@JsonProperty("characteristics")
@JsonView({ CommonView.class })
public Map<String, Set<Object>> getCharacteristics() {
    Map<String, Set<Object>> characMap = null;
    if (fluxCharacteristics != null) {
        characMap = Maps.newHashMap();
        for (FluxCharacteristicsDto fluxCharacteristicsDto : fluxCharacteristics) {
            Double calculatedValueMeasure = fluxCharacteristicsDto.getCalculatedValueMeasure();
            add("calculatedValueMeasure", calculatedValueMeasure, characMap);
            Double calculatedValueQuantity = fluxCharacteristicsDto.getCalculatedValueQuantity();
            add("calculatedValueQuantity", calculatedValueQuantity, characMap);
            String description = fluxCharacteristicsDto.getDescription();
            add("description", description, characMap);
            String descriptionLanguageId = fluxCharacteristicsDto.getDescriptionLanguageId();
            add("descriptionLanguageId", descriptionLanguageId, characMap);
            String typeCode = fluxCharacteristicsDto.getTypeCode();
            add("typeCode", typeCode, characMap);
            String typeCodeListId = fluxCharacteristicsDto.getTypeCodeListId();
            add("typeCodeListId", typeCodeListId, characMap);
            Date valueDateTime = fluxCharacteristicsDto.getValueDateTime();
            add("valueDateTime", valueDateTime, characMap);
            String valueIndicator = fluxCharacteristicsDto.getValueIndicator();
            add("valueIndicator", valueIndicator, characMap);
            Double valueMeasure = fluxCharacteristicsDto.getValueMeasure();
            add("valueMeasure", valueMeasure, characMap);
            String valueMeasureUnitCode = fluxCharacteristicsDto.getValueMeasureUnitCode();
            add("valueMeasureUnitCode", valueMeasureUnitCode, characMap);
            Double valueQuantity = fluxCharacteristicsDto.getValueQuantity();
            add("valueQuantity", valueQuantity, characMap);
            String valueQuantityCode = fluxCharacteristicsDto.getValueQuantityCode();
            add("valueQuantityCode", valueQuantityCode, characMap);
            String valueLanguageId = fluxCharacteristicsDto.getValueLanguageId();
            add("valueLanguageId", valueLanguageId, characMap);
            String valueCode = fluxCharacteristicsDto.getValueCode();
            add("valueCode", valueCode, characMap);
        }
    }
    return characMap;
}
Also used : Set(java.util.Set) ToString(lombok.ToString) FluxCharacteristicsDto(eu.europa.ec.fisheries.ers.service.dto.FluxCharacteristicsDto) Date(java.util.Date) JsonProperty(com.fasterxml.jackson.annotation.JsonProperty) JsonView(com.fasterxml.jackson.annotation.JsonView)

Aggregations

JsonProperty (com.fasterxml.jackson.annotation.JsonProperty)1 JsonView (com.fasterxml.jackson.annotation.JsonView)1 FluxCharacteristicsDto (eu.europa.ec.fisheries.ers.service.dto.FluxCharacteristicsDto)1 Date (java.util.Date)1 Set (java.util.Set)1 ToString (lombok.ToString)1