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

Re: DOM level 2 StyleSheets : What means "binding-specific casting methods"

From: <keshlam@us.ibm.com>
Date: Wed, 27 Oct 1999 09:00:33 -0400
To: "Lee Hyoung Moon" <darkness@www.paichai.ac.kr>
cc: www-dom@w3.org
Message-ID: <85256817.004774D2.00@D51MTA03.pok.ibm.com>
>I don't understand this sentence.
>" binding-specific casting methods ".

This means that the mechanism for accessing (for example) an HTMLLinkElement as
a LinkStyle object will very from one programming language to another, and that
the "binding" -- the language-specific version of the DOM API -- defines this
mechanism.

In the Java bindings you would use the Java typecast operation.
     LinkStyle linkStyleView=(LinkStyle)myHTMLLinkElement;

But not all languages support that concept. Those which don't will have to
define workarounds as part of their bindings; one approach would be:
     LinkStyle linkStyleView=myHTMLLinkElement.getLinkStyleView()
Each language binding is responsible for evaluating the available alternatives
and selecting the most appropriate solution.

______________________________________
Joe Kesselman  / IBM Research
Received on Wednesday, 27 October 1999 09:00:46 GMT

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