View Javadoc
1   package fr.inrae.agroclim.indicators.model;
2   
3   import java.io.Serializable;
4   import java.util.List;
5   
6   import jakarta.xml.bind.annotation.XmlAccessType;
7   import jakarta.xml.bind.annotation.XmlAccessorType;
8   import jakarta.xml.bind.annotation.XmlElement;
9   import jakarta.xml.bind.annotation.XmlID;
10  import lombok.EqualsAndHashCode;
11  import lombok.Getter;
12  import lombok.Setter;
13  
14  /**
15   * Unit of an indicator result in case of usage with climatic variables at standard unit.
16   *
17   * Last change $Date$
18   *
19   * @author omaury
20   * @author $Author$
21   * @version $Revision$
22   */
23  @XmlAccessorType(XmlAccessType.FIELD)
24  @EqualsAndHashCode(
25          callSuper = false,
26          of = {"id", "iri", "labels", "symbols"}
27          )
28  public final class Unit implements Cloneable, Serializable {
29      /**
30       * UUID for Serializable.
31       */
32      private static final long serialVersionUID = 5432240898259571240L;
33  
34      /**
35       * Id of unit.
36       */
37      @XmlElement
38      @Getter
39      @XmlID
40      private String id;
41  
42      /**
43       * Term IRI.
44       */
45      @XmlElement
46      @Getter
47      private String iri;
48  
49      /**
50       * Localized labels.
51       */
52      @XmlElement(name = "label")
53      @Getter
54      @Setter
55      private List<LocalizedString> labels;
56  
57      /**
58       * Localized symbols.
59       */
60      @XmlElement(name = "symbol")
61      @Getter
62      @Setter
63      private List<LocalizedString> symbols;
64  }