package org.fao.fenix.commons.msd.dto.full;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.fao.fenix.commons.annotations.Description;
import org.fao.fenix.commons.annotations.Label;
import org.fao.fenix.commons.msd.dto.JSONEntity;

import java.io.Serializable;
import java.util.Map;

public class OjMeasure extends JSONEntity implements Serializable {

    @JsonProperty
    @Label(en="")
    @Description(en="")
    private Map<String, String> extent;

    @JsonProperty
    @Label(en="")
    @Description(en="")
    private Boolean composedMU;

    @JsonProperty
    @Label(en="")
    @Description(en="")
    private Map<String, String> measurementSystem;

    @JsonProperty
    @Label(en="")
    @Description(en="")
    private String nameMU;

    @JsonProperty
    @Label(en="")
    @Description(en="")
    private Double conversionToStandard;


    public Map<String, String> getExtent() {
        return extent;
    }

    public void setExtent(Map<String, String> extent) {
        this.extent = extent;
    }

    public Boolean getComposedMU() {
        return composedMU;
    }

    public void setComposedMU(Boolean composedMU) {
        this.composedMU = composedMU;
    }

    public Map<String, String> getMeasurementSystem() {
        return measurementSystem;
    }

    public void setMeasurementSystem(Map<String, String> measurementSystem) {
        this.measurementSystem = measurementSystem;
    }

    public String getNameMU() {
        return nameMU;
    }

    public void setNameMU(String nameMU) {
        this.nameMU = nameMU;
    }

    public Double getConversionToStandard() {
        return conversionToStandard;
    }

    public void setConversionToStandard(Double conversionToStandard) {
        this.conversionToStandard = conversionToStandard;
    }
}

@@ -390,32 +390,38 @@
 %0A    @Label(en=%22
+Extent
 %22)%0A    @Descript
@@ -432,109 +432,412 @@
 en=%22
-%22)%0A    private Map%3CString, String%3E extent;%0A%0A    @JsonProperty%0A    @Label(en=%22%22)%0A    @Description(en=%22
+Description of the type of magnitude has been measured (e.g. a length, an area, a volume).%22)%0A    private Map%3CString, String%3E extent;%0A%0A    @JsonProperty%0A    @Label(en=%22Composed unit of measurement%22)%0A    @Description(en=%22Since a wide variety of phenomenon is measured combining several simple unit of measure, it is requested a Boolean element indicating whether simple or composed unit of measure is used.
 %22)%0A 
@@ -893,32 +893,50 @@
 %0A    @Label(en=%22
+Measurement system
 %22)%0A    @Descript
@@ -935,32 +935,267 @@
 Description(en=%22
+System devised to measure some physical quantity (such distance or area. . . ). Example are the English System of feet and inches or the metric system of millimetres, centimetres and meters, also the International System of Units (SI).
 %22)%0A    private M
@@ -1258,32 +1258,53 @@
 %0A    @Label(en=%22
+Measurement unit name
 %22)%0A    @Descript
@@ -1303,32 +1303,84 @@
 Description(en=%22
+Name of the simple/composed unit of measure adopted.
 %22)%0A    private S
@@ -1431,32 +1431,134 @@
 en=%22
-%22)%0A    @Description(en=%22
+Conversion to the standard%22)%0A    @Description(en=%22Allows to convert the unit of measure used in a standard measurement system.
 %22)%0A 

Update OjMeasure.java