You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by ChadDavis <ch...@gmail.com> on 2010/01/21 20:24:24 UTC

node type inheritance

In the JCR 2.0 specification, one of the built in node types appears
to inherit from a mixin type.

To be specific:

[nt:hierarchyNode] > mix:created abstract

Doesn't this mean that hierachyNode, a primary node type, uses a mixin
type as a it's superclass?  In other words, it doesn't have nt:base in
it's ancestor hierarchy?  And that's fine?

Re: node type inheritance

Posted by Justin Edelson <ju...@gmail.com>.
On 1/21/10 2:24 PM, ChadDavis wrote:
> In the JCR 2.0 specification, one of the built in node types appears
> to inherit from a mixin type.
>
> To be specific:
>
> [nt:hierarchyNode]>  mix:created abstract
>
> Doesn't this mean that hierachyNode, a primary node type, uses a mixin
> type as a it's superclass?  In other words, it doesn't have nt:base in
> it's ancestor hierarchy?  And that's fine?
>    
It isn't necessary to explicitly declare nt:base. It's implicit. As Alex 
said in a different thread, it is analogous to Object in Java.

Justin