Skip to main content
summaryrefslogtreecommitdiffstats
blob: 9726e7d4bbed2dd4eb34d50fbbccb416d58496b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package org.eclipse.osee.ote.rest.model;

import java.util.Arrays;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class KeyValue {

   private String key;
   private String value;
   
   private List<String> values;
   
   public KeyValue(){
      
   }
   
   public KeyValue(String key, String value){
      this.key = key;
      this.value = value;
   }

   public KeyValue(String key, List<String> values) {
      this.key = key;
      this.values = values;
   }

   public String getKey() {
      return key;
   }

   public void setKey(String key) {
      this.key = key;
   }

   public String getValue() {
      return value;
   }

   public void setValue(String value) {
      this.value = value;
   }
   
   @XmlElementWrapper
   @XmlElement(name="Values")
   public List<String> getValues() {
      return values;
   }
   
   public List<String> setValues(List<String> values) {
      return this.values = values;
   }

   public void setValueArray(List<String> values) {
      this.values = values;
   }

}

Back to the top