JAXB XML Schema Enum and Java Enum
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:Revealed="http://www.java2s.com" targetNamespace="http://www.yourNameSpace.com"> <simpleType name="Location"> <restriction base="string"> <enumeration value="north"></enumeration> <enumeration value="south"></enumeration> <enumeration value="east"></enumeration> <enumeration value="west"></enumeration> </restriction> </simpleType> </schema>