users@jaxb.java.net

Re: XMLEncoder and complexType elements

From: <marcos_at_softingsystems.com.br>
Date: Tue, 16 Jan 2007 21:29:18 +0000

Citando Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>:

> Marcos wrote:
> > Q1) Do you know some plugin that performs this ? or I've to write my own ?
>
> I don't know any. If you write one, please consider to host it on
> http://jaxb2-commons.dev.java.net/
Ok thanks for the directions ;-)
I'll write the plugin and host at jaxb2-commons

>
> > Q2) Is safe to put a setter method for these List based properties such
> as.:
> >
> > public List<Object> getSqlOrDefinitionIncludeOrImportDefinition() {
> > if (sqlOrDefinitionIncludeOrImportDefinition == null) {
> > sqlOrDefinitionIncludeOrImportDefinition = new
> > ArrayList<Object>();
> > }
> > return this.sqlOrDefinitionIncludeOrImportDefinition;
> > }
> >
> > /* Is this method safe ?.*/
> > public void setSqlOrDefinitionIncludeOrImportDefinition(List<Object>
> > sqlOrDefinitionIncludeOrImportDefinition){
> > this.sqlOrDefinitionIncludeOrImportDefinition =
> > sqlOrDefinitionIncludeOrImportDefinition;
> > }
>
> Looks OK to me.
Nice !

Regards
Marcos
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.