JAXBバインディングでは、要素のタイプをintからstringなどに変更できます。
しかし、データ型変換だけではありません。整数 ID を同等の文字列に置き換えたい。
これは、すべてのフィールドに write メソッドが必要であることを意味します。
とにかくパースメソッドからフィールド名を取得するのですか?
<!-- Resolve ID's -->
<jaxb:bindings node="/xs:schema/xs:element/xs:complexType/xs:sequence/xs:element[@name='Classification']/xs:complexType/xs:attribute[@name='id']">
<jaxb:property>
<jaxb:baseType>
<jaxb:javaType name="java.lang.String" parseMethod="com.company.lookup.Resolver.resolve" />
</jaxb:baseType>
</jaxb:property>
</jaxb:bindings>