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
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
> -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
>
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
> -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
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
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
>
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
> > 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(
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
> 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
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
> 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
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
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
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
16 matches
Mail list logo