summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/LookupTableItem.java
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2016-04-06 21:25:41 -0700
committerJesse Morgan <jesse@jesterpm.net>2016-04-06 21:26:19 -0700
commit624e5d995c2fa593fb517a99e4b8b5f775afbeaf (patch)
treec6080ebbf909fb45fb055930abe64bbfb62a41f0 /src/main/java/com/p4square/ccbapi/model/LookupTableItem.java
parent7367968483e4ddfedfa47598c508b343b44fc852 (diff)
Adding getLookupTable API.
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/LookupTableItem.java')
-rw-r--r--src/main/java/com/p4square/ccbapi/model/LookupTableItem.java59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/main/java/com/p4square/ccbapi/model/LookupTableItem.java b/src/main/java/com/p4square/ccbapi/model/LookupTableItem.java
new file mode 100644
index 0000000..07b39eb
--- /dev/null
+++ b/src/main/java/com/p4square/ccbapi/model/LookupTableItem.java
@@ -0,0 +1,59 @@
+package com.p4square.ccbapi.model;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+/**
+ * LookupTableItem is the definition of an item in a pulldown list.
+ */
+@XmlRootElement(name="item")
+@XmlAccessorType(XmlAccessType.NONE)
+public class LookupTableItem {
+
+ @XmlElement
+ private int id;
+
+ @XmlElement
+ private int order;
+
+ @XmlElement
+ private String name;
+
+ public int getId() {
+ return id;
+ }
+
+ public LookupTableItem setId(final int id) {
+ this.id = id;
+ return this;
+ }
+
+ public int getOrder() {
+ return order;
+ }
+
+ public LookupTableItem setOrder(final int order) {
+ this.order = order;
+ return this;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public LookupTableItem setName(final String name) {
+ this.name = name;
+ return this;
+ }
+
+ @Override
+ public String toString() {
+ return "LookupTableItem::{" +
+ "id=" + id +
+ ", order=" + order +
+ ", name='" + name + '\'' +
+ '}';
+ }
+}