On 29 Jan 2003, Martin Holz wrote:

> Stephan Michels <[EMAIL PROTECTED]> writes:
>
> > Hi,
> >
> > I want to ask for the status of TraversableSource interface. Is this
> > proposal now final?
> >
> > There were some questions open, I think?
> >
> > Now we have three kinds of returning an information of child sources:
> >
> >   Collection getChildrenURIs() throws SourceException;
> >
> >   Collection getChildrenSources() throws SourceException;
> >
> >   Collection getChildrenNames() throws SourceException;
> >
> > Do we really need these 3 methods? Couldn't we simplify these methods
> > to one method?
>
> What does name mean in this context? The uri is the "name" of a Source.
>
> For  a webdav source I would expect getName() to return
> the value of the DAV:displayname property. You can't calculate
> a uri from this. So you need really getChildrenURIs to create a directory
> listing. Must a TraversableSource always have a hierarchical URI space?

Agreed. Sometimes you have a linear space like

bla://1
bla://2
bla://3

and 3,2 are childs of 1. So in these cases getName() is equal
to getURI().

>
> > Another question, can we rename
> >   boolean isDirectory();
> > to
> >   boolean isCollection();
> >
> > This will be more coherent to
> >   Collection getChildrenSources()
>
> A TraversableSource is not a
> java.util.Collection.
> isCollection could cause confusion here.

But returns a collection of sources :-/

Stephan Michels.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to