summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/Gender.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/p4square/ccbapi/model/Gender.java')
-rw-r--r--src/main/java/com/p4square/ccbapi/model/Gender.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/com/p4square/ccbapi/model/Gender.java b/src/main/java/com/p4square/ccbapi/model/Gender.java
new file mode 100644
index 0000000..eabaa42
--- /dev/null
+++ b/src/main/java/com/p4square/ccbapi/model/Gender.java
@@ -0,0 +1,24 @@
+package com.p4square.ccbapi.model;
+
+import javax.xml.bind.annotation.XmlEnumValue;
+
+/**
+ * Enum representing the gender of an individual in CCB.
+ */
+public enum Gender {
+ @XmlEnumValue("M") MALE("M"),
+ @XmlEnumValue("F") FEMALE("F");
+
+ private final String code;
+
+ Gender(String code) {
+ this.code = code;
+ }
+
+ /**
+ * @return A one character string representing the enum value.
+ */
+ public String getCode() {
+ return this.code;
+ }
+}