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

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:06 UTC