java - Jaxb: Generate constant value for fixed-value attribute -
i'm working on xsd uses following contruct: <xs:attribute name="listversionid" type="xs:normalizedstring" use="required" fixed="1.0"> while not problematic per se, rather annoying work with, since fixed-value of definition increases between releases of xsd spec, , need modify values in seperate constants-class keep them valid, although little if of interest in xsd has changed. xsd maintained elsewhere, changing no option. thus asking myself wether there jaxb-plugin or similar turn fixed-value attributes constants ala @xmlattribute(name = "listversionid") @xmljavatypeadapter(normalizedstringadapter.class) @xmlschematype(name = "normalizedstring") protected final string listversionid = "1.0"; instead of just @xmlattribute(name = "listversionid") @xmljavatypeadapter(normalizedstringadapter.class) @xmlschematype(name = "normalizedstring") protected string listversionid; whi...