Skip to content

Instantly share code, notes, and snippets.

@kurtraschke kurtraschke/cap.xjb
Created Nov 11, 2013

Embed
What would you like to do?
JAXB bindings file for CAP schema to produce enums from anonymous types.
<?xml version="1.0" encoding="UTF-8"?>
<jaxb:bindings xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
jaxb:version="1.0">
<jaxb:bindings schemaLocation="CAP-v1.2.xsd" node="/xsd:schema">
<jaxb:bindings node="//xsd:element[@name='status']">
<jaxb:bindings node="./xsd:simpleType">
<jaxb:typesafeEnumClass name="StatusType" />
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings node="//xsd:element[@name='msgType']">
<jaxb:bindings node="./xsd:simpleType">
<jaxb:typesafeEnumClass name="MsgTypeType" />
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings node="//xsd:element[@name='scope']">
<jaxb:bindings node="./xsd:simpleType">
<jaxb:typesafeEnumClass name="ScopeType" />
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings node="//xsd:element[@name='category']">
<jaxb:bindings node="./xsd:simpleType">
<jaxb:typesafeEnumClass name="CategoryType" />
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings node="//xsd:element[@name='responseType']">
<jaxb:bindings node="./xsd:simpleType">
<jaxb:typesafeEnumClass name="ResponseTypeType" />
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings node="//xsd:element[@name='urgency']">
<jaxb:bindings node="./xsd:simpleType">
<jaxb:typesafeEnumClass name="UrgencyType" />
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings node="//xsd:element[@name='severity']">
<jaxb:bindings node="./xsd:simpleType">
<jaxb:typesafeEnumClass name="SeverityType" />
</jaxb:bindings>
</jaxb:bindings>
<jaxb:bindings node="//xsd:element[@name='certainty']">
<jaxb:bindings node="./xsd:simpleType">
<jaxb:typesafeEnumClass name="CertaintyType" />
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.