You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by "Nacho G. Mac Dowell" <ig...@informa.es> on 2005/04/11 11:04:01 UTC

JAXME-47

Hi Jochen, I was about to commit the changes for #JAXME-47 and I had a 
couple of questions:

1. I created a DataTypeConverterUtil with some methods for retreiving 
the correct default value for a type. The thing is that the "natural" 
place for this would be jaxbapi, but since this class has nothing to do 
with jaxb I need advice on where to put this class (including package name).
2. There is a test called defaultValues.xsd. Should I add my test case 
to this one or should I create a jaxme47.xsd under src/test/jaxb/jira?

Thanks!

Nacho

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: JAXME-47

Posted by Jochen Wiedmann <jo...@gmail.com>.
On Apr 11, 2005 12:53 PM, Nacho G. Mac Dowell <ig...@informa.es> wrote:

> Would this be TypedValueImpl? I've noticed this may do exactly whay I am
> trying, the thing is I don't know how to pass it to JS. :-[

No, it is use of

    SimpleTypeSG.getCastFromString(String)

In the case of the union type, you'd have to use that method for any
type in the union. The default value is invalid, if all throw an
exception.

Jochen

-- 
Outside of a dog, a book is man's best friend.
Inside of a dog, its too dark to read.
(Groucho Marx)

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: JAXME-47

Posted by "Nacho G. Mac Dowell" <ig...@informa.es>.
Jochen Wiedmann wrote:

>in that particular case, I'd beg you not to commit, but to attach your
>patch to the issue. See
>http://issues.apache.org/jira/browse/JAXME-47#action_57622 for the
>reason why: I believe that most of what you have done is already in
>place at a different point of the code.
>
>  
>
Would this be TypedValueImpl? I've noticed this may do exactly whay I am 
trying, the thing is I don't know how to pass it to JS. :-[

>>2. There is a test called defaultValues.xsd. Should I add my test case
>>to this one or should I create a jaxme47.xsd under src/test/jaxb/jira?
>>    
>>
>
>Excellent, that you have a test case! Feel free, to choose what seems
>to make sense to you.
>
>  
>
I'll go for the first option. It makes sense to have a full 
defaultValues test.





---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org


Re: JAXME-47

Posted by Jochen Wiedmann <jo...@gmail.com>.
Hi, Nacho,

On Apr 11, 2005 11:04 AM, Nacho G. Mac Dowell <ig...@informa.es> wrote:

> Hi Jochen, I was about to commit the changes for #JAXME-47 and I had a
> couple of questions:

in that particular case, I'd beg you not to commit, but to attach your
patch to the issue. See
http://issues.apache.org/jira/browse/JAXME-47#action_57622 for the
reason why: I believe that most of what you have done is already in
place at a different point of the code.


> 1. I created a DataTypeConverterUtil with some methods for retreiving
> the correct default value for a type. The thing is that the "natural"
> place for this would be jaxbapi, but since this class has nothing to do
> with jaxb I need advice on where to put this class (including package name).

As this class would be used by the generator and not at runtime, I'd
suggest org.apache.ws.jaxme.generator.util.


> 2. There is a test called defaultValues.xsd. Should I add my test case
> to this one or should I create a jaxme47.xsd under src/test/jaxb/jira?

Excellent, that you have a test case! Feel free, to choose what seems
to make sense to you.


Jochen

-- 
Outside of a dog, a book is man's best friend.
Inside of a dog, its too dark to read.
(Groucho Marx)

---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org