|
java-gnome version 4.0.15 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.gnome.glib.Value
public class Value
A generic value that can be passed as a parameter to or returned from a method or function on an underlying entity in the GLib library and those built on it. Value is only used in setting or getting Object properties, and in the TreeModel system.
For use by bindings hackers only.
As with other classes in org.gnome.glib
, this is
implementation machinery and should not be needed by anyone developing
applications with java-gnome.
Ironically, Values are not actually type safe; if you happen to create one to hold Strings, and then call the getEnum() method on it, your program will explode (this is somewhat to the contrary of the spirit of java-gnome). These are therefore only for use from within strongly typed methods exposing a safe and sane public API. You've been warned.
Complementing the object oriented system supplied by the GLib library is
a set of foundation elements, GType
and GValue
,
the latter being defined as "a polymorphic type that can hold values of any
other type", which isn't much help, really.
Since instances of Java classes are their own identity, we do not need
to directly represent GType
and GValue
as
separate classes. We implement GType
as a characteristic that
any Value
or Object
has.
Method Summary |
---|
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |