23 lines
461 B
Java
23 lines
461 B
Java
package de.nth.chronicle.gedcom.type;
|
|
|
|
public enum GedcomFormType {
|
|
|
|
LINEAGE_LINKED("LINEAGE-LINKED");
|
|
|
|
private String key;
|
|
GedcomFormType(String key) { this.key = key; }
|
|
|
|
public String getKey() { return this.key; }
|
|
|
|
public static GedcomFormType forKey(String key) {
|
|
|
|
for(GedcomFormType type : values()) {
|
|
if(type.getKey().equals(key)) {
|
|
return type;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|