blob: cf6736ad57e81c3c9f8d4590f81d2b8768b8aadb (
plain)
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
|
package com.p4square.ccbapi.model;
import javax.xml.bind.annotation.XmlEnumValue;
/**
* Enum representing the gender of an individual in CCB.
*/
public enum Gender {
/**
* The documentation currently provides conflicting examples for the gender code.
* The documentation says it must be 'M' or 'F', but the example given uses 'm'.
* According to an API Village posting, it should actually be lower case.
*
* https://village.ccbchurch.com/message_comment_list.php?message_id=3308
*/
@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;
}
}
|