W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2003

Re: L3 Core -- Java Language Bindings -- DOMLocator.getUri()

From: Philippe Le Hegaret <plh@w3.org>
Date: Thu, 23 Oct 2003 12:39:48 -0400
To: Mark Goodhand <mrg@decisionsoft.com>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1066927187.6863.39.camel@jfouffa.w3.org>

On Tue, 2003-10-07 at 05:27, Mark Goodhand wrote:
> 
> The method getUri() in the interface DOMLocator (Java Language 
> Bindings: http://www.w3.org/TR/DOM-Level-3-Core/java-binding.html) is 
> inconsistently named.  Should be getURI().

It is consistent with our Java bindings rules:
- IDL attributes always starts witl lowercase.
- an IDL attribute is mapped to get and set methods (depending on
readonly or not).
- For the get, the prefix "get" is added at the beginning of the
attribute name and the first letter of the attribute name becomes
uppercase.
- ditto for the set, but with the prefix "set".

The only (new) exception to those rules is if the attribute starts with
"is" which is followed by an uppercase letter. In such case, the get
method has the same name as the attribute itself. The set method, "is"
is replaced by "set". The only exception to this rule is
HTMLImageElement.isMap.

Philippe
Received on Thursday, 23 October 2003 12:46:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT