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
16
17
18
19
20
21
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
31
32 private static final long serialVersionUID = 5432240898259571240L;
33
34
35
36
37 @XmlElement
38 @Getter
39 @XmlID
40 private String id;
41
42
43
44
45 @XmlElement
46 @Getter
47 private String iri;
48
49
50
51
52 @XmlElement(name = "label")
53 @Getter
54 @Setter
55 private List<LocalizedString> labels;
56
57
58
59
60 @XmlElement(name = "symbol")
61 @Getter
62 @Setter
63 private List<LocalizedString> symbols;
64 }