org.gnu.glib

Class Value


public class Value
extends MemStruct

Value is a polymorphic type that can hold values of any other type. This is used internally and should not be exposed outside of the library.

Constructor Summary

Value(Handle aHandle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Value(Type type)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Method Summary

Value
copy()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
protected static Handle
g_value_copy(Handle srcValue)
protected static boolean
g_value_get_boolean(Handle value)
protected static Handle
g_value_get_boxed(Handle value)
protected static byte
g_value_get_char(Handle value)
protected static double
g_value_get_double(Handle value)
protected static double
g_value_get_float(Handle value)
protected static int
g_value_get_int(Handle value)
protected static Object
g_value_get_java_object(Handle value)
protected static long
g_value_get_long(Handle value)
protected static Handle
g_value_get_pointer(Handle value)
protected static String
g_value_get_string(Handle value)
protected static Handle
g_value_init(int type)
protected static Handle
g_value_reset(Handle value)
protected static void
g_value_set_boolean(Handle value, boolean vBoolean)
protected static void
g_value_set_boxed(Handle value, Handle box)
protected static void
g_value_set_char(Handle value, byte vChar)
protected static void
g_value_set_double(Handle value, double vDouble)
protected static void
g_value_set_float(Handle value, double vFloat)
protected static void
g_value_set_int(Handle value, int vInt)
protected static void
g_value_set_java_object(Handle value, Object obj)
protected static void
g_value_set_long(Handle value, long vLong)
protected static void
g_value_set_pointer(Handle value, Handle ptr)
protected static void
g_value_set_string(Handle value, String vString)
protected static int
g_value_type(Handle value)
protected static void
g_value_unset(Handle value)
boolean
getBoolean()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Boxed
getBoxed()
double
getDouble()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
double
getFloat()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
int
getInt()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Object
getJavaObject()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
long
getLong()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
String
getString()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setBoolean(boolean value)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setBoxed(Boxed value)
void
setDouble(double value)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setFloat(float value)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setInteger(int value)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setJavaObject(Object obj)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setLong(long value)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
void
setString(String value)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Methods inherited from class org.gnu.glib.MemStruct

finalize, getMemStructFromHandle

Methods inherited from class org.gnu.glib.Struct

equals, getHandle, getNullHandle, hashCode, setHandle

Constructor Details

Value

public Value(Handle aHandle)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Construct a new Value object using a handle to a native object.
Parameters:
aHandle - The handle

Value

public Value(Type type)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Construct a new Value from a given org.gnu.glib.Type.

Method Details

copy

public Value copy()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a copy of this Value object.
Returns:
An object of type Value that contains the same data as the current object.

g_value_copy

protected static final Handle g_value_copy(Handle srcValue)

g_value_get_boolean

protected static final boolean g_value_get_boolean(Handle value)

g_value_get_boxed

protected static final Handle g_value_get_boxed(Handle value)

g_value_get_char

protected static final byte g_value_get_char(Handle value)

g_value_get_double

protected static final double g_value_get_double(Handle value)

g_value_get_float

protected static final double g_value_get_float(Handle value)

g_value_get_int

protected static final int g_value_get_int(Handle value)

g_value_get_java_object

protected static final Object g_value_get_java_object(Handle value)

g_value_get_long

protected static final long g_value_get_long(Handle value)

g_value_get_pointer

protected static final Handle g_value_get_pointer(Handle value)

g_value_get_string

protected static final String g_value_get_string(Handle value)

g_value_init

protected static final Handle g_value_init(int type)

g_value_reset

protected static final Handle g_value_reset(Handle value)

g_value_set_boolean

protected static final void g_value_set_boolean(Handle value,
                                                boolean vBoolean)

g_value_set_boxed

protected static final void g_value_set_boxed(Handle value,
                                              Handle box)

g_value_set_char

protected static final void g_value_set_char(Handle value,
                                             byte vChar)

g_value_set_double

protected static final void g_value_set_double(Handle value,
                                               double vDouble)

g_value_set_float

protected static final void g_value_set_float(Handle value,
                                              double vFloat)

g_value_set_int

protected static final void g_value_set_int(Handle value,
                                            int vInt)

g_value_set_java_object

protected static final void g_value_set_java_object(Handle value,
                                                    Object obj)

g_value_set_long

protected static final void g_value_set_long(Handle value,
                                             long vLong)

g_value_set_pointer

protected static final void g_value_set_pointer(Handle value,
                                                Handle ptr)

g_value_set_string

protected static final void g_value_set_string(Handle value,
                                               String vString)

g_value_type

protected static final int g_value_type(Handle value)

g_value_unset

protected static final void g_value_unset(Handle value)

getBoolean

public boolean getBoolean()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome

getBoxed

public Boxed getBoxed()

getDouble

public double getDouble()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome

getFloat

public double getFloat()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome

getInt

public int getInt()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome

getJavaObject

public Object getJavaObject()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Returns:
The data value held by this Value instance. If the data is held in the C GValue structure, the returned object is an instance of Handle. If the data is held locally in the Java object, that is returned, otherwise null is returned.

getLong

public long getLong()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome

getString

public String getString()

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome

setBoolean

public void setBoolean(boolean value)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome to set a boolean value

setBoxed

public void setBoxed(Boxed value)

setDouble

public void setDouble(double value)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome to set a double value

setFloat

public void setFloat(float value)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome to set a float value

setInteger

public void setInteger(int value)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome to set an integer value

setJavaObject

public void setJavaObject(Object obj)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Parameters:
obj - The object to set as the data value for this Value instance.

setLong

public void setLong(long value)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome to set a long value

setString

public void setString(String value)

Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Used internally by Java-Gnome to set a string value