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: CompactNodeTypeDefReader and NamespaceMapping
Date Fri, 10 Nov 2006 12:27:07 GMT
On 11/10/06, Tako Schotanus <quintesse@palacio-cristal.com> wrote:
> It's not very important, but is there a specific reason why the
> CompactNodeTypeDefReader constructor takes a NamespaceMapping instead of
> just a plain NamespaceResolver?

NamespaceResolver provides a 'read-only' view of the mappings whereas
NamespaceMapping has a setMapping() method.

the NamespaceMapping instance passed in the CompactNodeTypeDefReader
constructor will be updated with the ns declarationsencountered in the cnd file.


> As far as I can see almost all other methods dealing with namespaces
> take a NamespaceResolver, this just seems a weird exception.
> Cheers,
>  -Tako

View raw message