users@jaxb.java.net

exposing the namespace --> package name mapper

From: jonathan gold <dev_at_samizdatdigital.org>
Date: Thu, 27 Oct 2005 15:11:56 -0700

i've written a custom little string parser that takes a namespace and
outputs the java package name. it works for us, because we have pretty
simple package names that follow a known convention. i was hoping i'd be
able to pick some stuff out of the xjc code to use it directly, and i
looked around in xjc, and saw that ClassSelector seems to be able to do
this, but it's also not particularly lightweight, which makes sense,
since xjc needs to be aware of all of the jaxb customizations, bindings,
and other compile time context. i'm curious to see if there's anyone
else who would benefit from having a context free, lightweight, simple
utility class that would just do the lexical conversion from a namespace
to a package name?

jon