On Jan 28, 2009, at 4:28 AM, Wilfred Springer wrote:
>
> What do you all think about having an API for accessing the data
> encoded in a WADL file?
>
> I started to wonder about that when I was thinking about a compact
> syntax for WADL documents, a while ago . However, having another
> representation of WADL would currently basically require you to
> rewrite all of the tools. It seems that having an API that abstracts
> from the encoded or internal representation would make things a lot
> easier.
>
> This is what I came up with back then: http://agilejava.com/wadl-api/apidocs/
> . (Sorry, no real documentation yet. Just interfaces and method
> signatures. Hopefully you will get the picture. Maybe reading the
> blog entry mentioned above will help.)
>
> Let me know how think about it.
>
There's already a fairly primitive set of abstract classes in the
org.jvnet.ws.wadl2java.ast package of wadl-core. The code generator is
based on this AST rather than the JAXB-generated classes. I'm sure
what's there could be much improved though.
Marc.
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.