RE: XMLResource

2001-06-18 Thread Per Nyfelt
Ok great! I understand what you're saying now. Thanks for your help Lars. Regards, Per > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Lars Martin > Sent: den 15 juni 2001 17:40 > To: [EMAIL PROTECTED] > Subject: Re: XMLResour

Re: XMLResource

2001-06-15 Thread Lars Martin
On Thu, 14 Jun 2001 14:27:07 +0200 "Per Nyfelt" <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Behalf Of Lars Martin > > Sent: den 14 juni 2001 10:57 > > To: [EMAIL P

RE: XMLResource

2001-06-14 Thread Per Nyfelt
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Lars Martin > Sent: den 14 juni 2001 10:57 > To: [EMAIL PROTECTED] > Subject: Re: XMLResource > > I'm not sure how to do XMLResource.setContentAsSAX(). What should the >

Re: XMLResource

2001-06-14 Thread Lars Martin
On Thu, 14 Jun 2001 10:49:26 +0200 "Per Nyfelt" <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Behalf Of Kimbro Staken > > Sent: den 13 juni 2001 21:43 > > To: [EMAIL PROTECTED

RE: XMLResource

2001-06-14 Thread Per Nyfelt
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Kimbro Staken > Sent: den 13 juni 2001 21:43 > To: [EMAIL PROTECTED] > Subject: Re: XMLResource > > > Per Nyfelt wrote: > > > > OK, I understand how you are reasonin

Re: XMLResource

2001-06-14 Thread Kimbro Staken
Per Nyfelt wrote: > > OK, I understand how you are reasoning now. Thanks for your help and sorry > for being such a pain. I do not think there would be need to add > getResourceAsText() to XMLResource then. How is the Ozone impl coming along then? > > B

RE: XMLResource

2001-06-13 Thread Per Nyfelt
things > > like: > > > > if (resource instanceof XMLResource) > > String bla = (String)getObject(); > > > > If not then I think get and setContent should be moved down a level from > > Resource to XMLResource and Binary Resource and have the return and >

Re: XMLResource

2001-06-13 Thread Kimbro Staken
Per Nyfelt wrote: > > > > I think that getContent() and setContent() should be > > > removed from Resource all together and have > > > String getContentAsString() (or getContentAsText() if that name is > > > preferred) in XMLResource and > > &g

RE: XMLResource

2001-06-12 Thread Per Nyfelt
> > I think that getContent() and setContent() should be > > removed from Resource all together and have > > String getContentAsString() (or getContentAsText() if that name is > > preferred) in XMLResource and > > byte[] getContent() (or getContentAsByteArray(

Re: XMLResource

2001-06-12 Thread Kimbro Staken
Per Nyfelt wrote: > > > Sorry default was a bad choice of term. That is the behaviour of that > > method it doesn't change. XMLResource ALWAYS returns String from > > getContent and accepts String in setContent. If you're storing the value > > internal

RE: XMLResource

2001-06-10 Thread Per Nyfelt
> Sorry default was a bad choice of term. That is the behaviour of that > method it doesn't change. XMLResource ALWAYS returns String from > getContent and accepts String in setContent. If you're storing the value > internally in some other format then you must ser

Re: XMLResource

2001-06-08 Thread Kimbro Staken
Per Nyfelt wrote: > > > The idea with getContent was to make it possible to work with the > > default representation of multiple resource types without calling a > > special method. For XMLResource the default behaviour for getContent is > > to always return a str

RE: XMLResource

2001-06-08 Thread Per Nyfelt
> The idea with getContent was to make it possible to work with the > default representation of multiple resource types without calling a > special method. For XMLResource the default behaviour for getContent is > to always return a string. If it is the default behaviour how would you

Re: XMLResource

2001-06-07 Thread Lars Martin
far so good. > > > > In org.xmldb.api.modules.XMLResource there is getContent, getContentAsDOM > > and getContentAsSAX but there seem to be the expectation that getContent > > here should in fact return a String. > > > > I went with storing Node's in the implementation of XMLRe

Re: XMLResource

2001-06-07 Thread Kimbro Staken
t, getContentAsDOM > and getContentAsSAX but there seem to be the expectation that getContent > here should in fact return a String. > > I went with storing Node's in the implementation of XMLResource so my > "native format" is Node and not String as in the reference

XMLResource

2001-06-07 Thread Per Nyfelt
the expectation that getContent here should in fact return a String. I went with storing Node's in the implementation of XMLResource so my "native format" is Node and not String as in the reference implementation, hence it would be natural for me to return the Node object for getCon