W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2003

Re: Support properties on interfaces

From: Ray Whitmer <raydwhitmer@aol.com>
Date: Tue, 01 Jul 2003 07:51:56 -0600
Message-ID: <3F0191FC.9010805@aol.com>
To: Keizi@mail.co.kr
CC: www-dom@w3.org

Keizi@mail.co.kr wrote:

>define the term 'interface' as a set of methods.
>But IDLs of DOM declare properties as well as methods.
>How to implement such properties on interfaces?
>What is standard de facto for implementation of that?
>As Java does, ::getXXX() and ::setXXX() is the answer?
>Or nothing special but up to each implementators?
>Best regard,
It is generally up to the binding creator, not the implementor, to
follow the rules of the binding when doing this sort of thing.

In the case of Java, this means using a getter and setter.

In the case of ECMAScript, this typically is exposed as a real attribute.

When creating other bindings, the creator should use whatever is natural
for the binding.

Received on Tuesday, 1 July 2003 09:51:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:51 UTC