Re: Support properties on interfaces

raydwhitmer@aol.com wrote:

>Keizi@mail.co.kr wrote:
>
>  
>
>>http://www.w3.org/TR/DOM-Level-2-Core/glossary.html#dt-interface
>>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,
>>kz.
>>
>>    
>>
>It is generally up to the binding creator, not the implementor, to
>follow the rules of the binding when doing this sort of thing.
>  
>
I meant it is up to the binding creator to establish the rules of the 
binding appropriate to the environment.  He cannot follow what he is 
creating.

>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.
>
>Ray
>  
>

Received on Tuesday, 1 July 2003 10:02:05 UTC