Martin Honnen:
> So for Java it is pretty clear those constants in the IDL interface
> are static members of the Java interface which means in Java you would
> access e.g.
> org.w3c.dom.Node.ELEMENT_NODE
> or, if you do
> import org.w3c.dom.*;
> shorter as
> Node.ELEMENT_NODE
> to get at that constant. In Java if you have an instance object
> implementing the Node interface then the instance does _not_ have a
> member named ELEMENT_NODE.
But you can access that constant through the instance:
jet:/tmp $ cat X.java
interface I {
static final int A = 1;
}
public class X implements I {
public static void main(String[] args) {
X x = new X();
System.out.println(x.A);
}
}
jet:/tmp $ javac X.java
jet:/tmp $ java X
1
--
e-mail : cam (at) mcc.id.au icq : 26955922
web : http://mcc.id.au/ msn : cam-msn (at) aka.mcc.id.au
office : +61399055779 jabber : heycam (at) jabber.org
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/