Custom XJC plugin

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Custom XJC plugin

aldibella
Hi,

I'm trying to write a plugin to help me with versioning schema . The
idea is to add 2 attributes to the <xs;schema> element like:

<xs:schema
        xmlns:version="http://mydomain/jaxb/version"
        version:current="2.0.0"
        version:supported=">=1.0.0 &amp; <=2.0.0"

I was able to create the plugin and to have it invoked by maven but I
can't figure out how to read version:current and version:supported
from:

public boolean run(Outline outline, Options opt, ErrorHandler
errorHandler ) throws SAXException

Am I missing something obvious?

Thanks,

Alex
Loading...