jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Inheritance of "orderable" attribute for node types
Date Thu, 02 Aug 2007 10:11:01 GMT
hi christoph

On 7/31/07, Christoph Kiehl <christoph@sulu3000.de> wrote:
> Hi,
> we just discovered, that the "orderable" attribute of node types is not
> inherited from supertypes. NodeTypeImpl.hasOrderableChildNodes() just calls
> NodeTypeDef.hasOrderableChildNodes() instead of using the EffectiveNodeType to
> determine if a node type allows orderable child nodes.
> The specification does not define how this should be handled (6.7.8 Inheritance
> Among Node Types), but was there any reason not to use EffectiveNodeType?

the jsr 170 spec and the current public-review-draft of the jsr 283 spec (4.7.7)
leave it up to the implementation whether e.g. the orderable child nodes setting
is inherited from supertypes.

inheritance semantics, especially with multiple inhertitance, are
non-trivial at best
and up to a certain degree arbitrary.

e.g. assume the following:

  - foo (string) primary mandatory
  - bar (string) primary mandatory

[C] > A, B

now given a node of type C, which property (foo/bar) is the primary item?

jackrabbit therefore, in compliance with the spec, doesn't support inheritance
of node type attributes.


> Cheers,
> Christoph

View raw message