summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/Reference.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/Reference.java')
-rw-r--r--src/main/java/com/p4square/ccbapi/model/Reference.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/java/com/p4square/ccbapi/model/Reference.java b/src/main/java/com/p4square/ccbapi/model/Reference.java
new file mode 100644
index 0000000..5ac9800
--- /dev/null
+++ b/src/main/java/com/p4square/ccbapi/model/Reference.java
@@ -0,0 +1,34 @@
+package com.p4square.ccbapi.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlValue;
+
+/**
+ * Generic reference to a id and name.
+ */
+@XmlAccessorType(XmlAccessType.NONE)
+public class Reference {
+ @XmlAttribute(name="id")
+ private int id;
+
+ @XmlValue
+ private String name;
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}