UCHIDA Hitoshi wrote:
> Java Classes generated by xjc.sh compiler contain schema information
> codes for validation. Can I delete the codes by using compiler option?
Assuming that you are talking about 1.0, yes. See
http://java.sun.com/webservices/docs/1.5/jaxb/vendorCustomizations.html#lwruntime
> And, the generated Classes contain a main process of Unmarshalling and
> Marshalling.
> I think that the Unmarshalling and Marshalling processes faster than
> using refrection API for mapping XML data into member variables of
> Java Classes.
> But I think, if the refrection API is used for the processes,
> the generate codes would be smaller.
> Why the Unmarshalling and Marshalling process is contained in the
> Classes?
> For performance? I know the refrection process is heavy.
> But the heavy process is only first data mapping.
> Later, refrection would not be used.
I don't exactly understand what you are trying to say, but you might
find it worthwhile to take a look at JAXB 2.0. The generated code no
longer contains any of those.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com