Hi Paul,

> Yes, but I prefer to err on the side of points of use rather than  
> class definition.  By that I mean that if getDecoded*() methods are  
> not defined, then every use of get*() methods where one wants 
> decoding requires something like:
> 
>       path = Reference.decode( ref.getPath() );
> 
> which is more verbose than:
> 
>       path = ref.getDecodedPath();
> 
> The "clutter", instead of being hidden away in the source file of  
> Reference.java, is now dispersed to every use of the functions.

Ok, you convinced me! To reduce the impression of clutter, I chose to add
for each getter a new one taking a boolean parameter. For example

        getAuthority(boolean decode) : String

This is checked in SVN trunk.

Best regards,
Jerome  

Reply via email to