JAXB XML Schema Enum and Java Enum : JAXB « JDK 6 « Java






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>


           
       








JAXBXMLSchemaEnumJavaEnum.zip( 1 k)

Related examples in the same category

1.simple jaxb
2.Marshal Java object to xml and output to console
3.Marshal Java object to a file
4.JAXB Demo
5.From XML Schema to Java Generic List
6.Unmarshall From XML using JAXB
7.Set Target Name Space To Be Java Package Name
8.Generate Java Source From XML Schema (XSD)