users@jaxb.java.net

RE: Working on a plugin - need to add a method that returns an array...

From: Schaefer, Don <dschaefer1_at_paychex.com>
Date: Wed, 11 May 2011 15:31:18 -0400

Can a user get read only access to the svn repository? Browsing through the code is painful. I found this url but an account is needed.

https://svn.java.net/svn/jaxb2-commons~svn

Or is the "basics" source in a jar?

Thanks,
Don.

-----Original Message-----
From: aleksei.valikov_at_gmail.com [mailto:aleksei.valikov_at_gmail.com] On Behalf Of Aleksei Valikov
Sent: Tuesday, May 10, 2011 4:37 PM
To: Schaefer, Don
Cc: users_at_jaxb.java.net
Subject: Re: Working on a plugin - need to add a method that returns an array...

Hi,

> Thanks for your response.  (The footer is obviously not of my generation...)

Yes, I understand, was not a reproach. :)

> .array() seems serviceable enough but here is another likely obvious question:
>
> How do I get a JClass (or JDefinedClass) representation for String to invoke array() upon?

JCodeModel.ref(String.class)

If you're interested in usage examples of CodeModel, check JAXB2
Basics, for instance. There's a lot of relevant code:

http://java.net/projects/jaxb2-commons/sources/svn/show/basics/trunk

Or Hyperjaxb3.

Bye,
/lexi




The information contained in this message may be privileged, confidential, and protected from disclosure. If the reader of this message is not the intended recipient, or any employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.