diff options
Diffstat (limited to 'plugins/org.eclipse.osee.ote.rest.model/src/org/eclipse/osee/ote/rest/model/KeyValue.java')
-rw-r--r-- | plugins/org.eclipse.osee.ote.rest.model/src/org/eclipse/osee/ote/rest/model/KeyValue.java | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ote.rest.model/src/org/eclipse/osee/ote/rest/model/KeyValue.java b/plugins/org.eclipse.osee.ote.rest.model/src/org/eclipse/osee/ote/rest/model/KeyValue.java new file mode 100644 index 00000000000..9726e7d4bbe --- /dev/null +++ b/plugins/org.eclipse.osee.ote.rest.model/src/org/eclipse/osee/ote/rest/model/KeyValue.java @@ -0,0 +1,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; + } + +} |