You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Peter Shipley <pe...@windj.ath.cx> on 2005/03/08 00:37:40 UTC
Question about the various sets
What is the purpose of:
- DocumentSet
- Collection
- XlinkCollection
and when might one use them ?
Regards
Pete
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Question about the various sets
Posted by Andreas Hartmann <an...@apache.org>.
Peter Shipley wrote:
> What is the purpose of:
> - DocumentSet
This is a simple set of documents, like a Java set.
You can put documents in it, duplicates are eliminated.
A main usecase is traversing the documents using a
DocumentVisitor.
More interesting is the OrderedDocumentSet. It orders the
contained documents using the site manager's depenence relation.
This way, you can for instance traverse a subtree in preorder
or postorder.
> - Collection
This is a document which contains a list to other documents.
> - XlinkCollection
This collection provides XLink attributes for all contained
documens. It is very useful in combination with the XLinkTransformer,
for instance to present a list of titles and summaries of the
contained documents.
> and when might one use them ?
Whenever you want :)
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org