You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by hsp <pi...@ibest.com.br> on 2006/08/16 20:46:49 UTC
Multiple inheritance
Hi;
If this question was already answered, my apologies, but I don't find such answer and need to know if Jackrabbit is ready for multiple inheritance.
For instance, if I have declared the following structure of node types:
nt:base
|
node:base
____|________________________
| | |
node:file node:folder node:added
|______________|
|
node:final
So, the xml for the node:final would be like:
<nodeType name="node:final" isMixin="false" hasOrderableChildNodes="false" primaryItemName="">
<supertypes>
<supertype>node:folder</supertype>
<supertype>node:added</supertype>
</supertypes>
...
</nodeType>
Will it work in Jackrabbit? I saw some declarations that use two supertypes but one of them is mixin, is the same thing putting more than one supertype of custom node type?
If it is ok for Jackrabbit, so when I query for node:base I will get node:final too?
Thanks for your Help.
Helio.
Re: Multiple inheritance
Posted by Tobias Bocanegra <to...@day.com>.
> Hi;
> If this question was already answered, my apologies, but I don't find such answer and need to know if Jackrabbit is ready for multiple inheritance.
> For instance, if I have declared the following structure of node types:
>
> nt:base
> |
> node:base
> ____|________________________
> | | |
> node:file node:folder node:added
> |______________|
> |
> node:final
>
> So, the xml for the node:final would be like:
>
> <nodeType name="node:final" isMixin="false" hasOrderableChildNodes="false" primaryItemName="">
> <supertypes>
> <supertype>node:folder</supertype>
> <supertype>node:added</supertype>
> </supertypes>
> ...
> </nodeType>
>
> Will it work in Jackrabbit? I saw some declarations that use two supertypes but one of them is mixin, is the same thing putting more than one supertype of custom node type?
yes. this should work.
> If it is ok for Jackrabbit, so when I query for node:base I will get node:final too?
yes.
regards, toby
--
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---