org.jibx.schema.org.hr_xml.ns._2_4.HR_XML_2_4.StandAlone.PositionOpening.RelationshipType Maven / Gradle / Ivy
package org.jibx.schema.org.hr_xml.ns._2_4.HR_XML_2_4.StandAlone.PositionOpening;
/**
* Schema fragment(s) for this class:
*
* <xs:simpleType xmlns:ns="http://ns.hr-xml.org/2006-02-28" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="RelationshipType">
* <xs:restriction base="xs:string">
* <xs:enumeration value="agent"/>
* <xs:enumeration value="broker"/>
* <xs:enumeration value="self"/>
* <xs:enumeration value="referrer"/>
* </xs:restriction>
* </xs:simpleType>
*
*/
public enum RelationshipType {
AGENT("agent"), BROKER("broker"), SELF("self"), REFERRER("referrer");
private final String value;
private RelationshipType(String value) {
this.value = value;
}
public String xmlValue() {
return value;
}
public static RelationshipType convert(String value) {
for (RelationshipType inst : values()) {
if (inst.xmlValue().equals(value)) {
return inst;
}
}
return null;
}
}