users@jaxb.java.net

Re: Introspection and type in JAXB 2

From: Lucas Jordan <lucasjordan_at_softhome.net>
Date: Tue, 28 Feb 2006 10:47:47 -0500

A correction, it does not seem the namespace for the type is included at all
in the class (unless I am missing something :) the snip I took from the
javadoc actually refers to the super type of the class.

-L


On 2/28/06 10:35 AM, "Lucas Jordan" <lucasjordan_at_softhome.net> wrote:

>
> I see in the generated code for an xsd:element type information is stored in
> the class as an annotation:
>
> @XmlType(name = "EdVisitType", propOrder = {
> "visitId",
> "hospitalId",
> ...
> "homeAddress"
> })
>
> I also see that for the fields within my EdVisitType we have annotations
> like:
>
> @XmlElement(name = "HomeAddress", namespace =
> "http://aegis.chip.org/schemas/aegisEdVisit")
> protected AddressType homeAddress;
>
>
> This annotation differs a bit from the first since it specifies a namespace.
> My question is this:
>
> Given a Class is it possible through introspection to determine full URN
> that describes the type of that class? I see in the generated javadocs there
> is a line:
>
> &lt;extension
> base="{http://aegis.chip.org/schemas/aegisArtifacts}IncidentType">
>
>
> Should this be included as an annotation?
>
> Thanks for any help!
> -Lucas
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>