org.gnu.gconf

Class ConfEntry


public class ConfEntry
extends Boxed

Stores an entry for a GConf "directory", including a key-value pair, the name of the schema applicable to this entry, whether the value is a default value, and whether GConf can write a new value at this time.

Constructor Summary

ConfEntry(Handle handle)
ConfEntry(String key, ConfValue value)
Construct a new ConfEntry object

Method Summary

protected static boolean
gconf_entry_get_is_default(Handle entry)
protected static String
gconf_entry_get_key(Handle entry)
protected static String
gconf_entry_get_schema_name(Handle entry)
protected static Handle
gconf_entry_get_value(Handle entry)
protected static Handle
gconf_entry_new_nocopy(String key, Handle value)
protected static void
gconf_entry_set_is_default(Handle entry, boolean isDefault)
protected static void
gconf_entry_set_schema_name(Handle entry, String schemaName)
protected static void
gconf_entry_set_value_nocopy(Handle entry, Handle value)
protected static Handle
gconf_entry_steal_value(Handle entry)
String
getKey()
Return the key field of the entry.
String
getSchemaName()
ConfValue
getValue()
Return the value field of the entry.
boolean
isDefault()
Returns if the value in this entry is a default value.
void
setIsDefault(boolean isDefault)
void
setSchemaName(String name)
void
setValue(ConfValue value)
ConfValue
stealValue()
Extract the value from this ConfEntry leaving the value set to null.

Constructor Details

ConfEntry

public ConfEntry(Handle handle)


ConfEntry

public ConfEntry(String key,
                 ConfValue value)
Construct a new ConfEntry object

Parameters:
key -
value -

Method Details

gconf_entry_get_is_default

protected static final boolean gconf_entry_get_is_default(Handle entry)


gconf_entry_get_key

protected static final String gconf_entry_get_key(Handle entry)


gconf_entry_get_schema_name

protected static final String gconf_entry_get_schema_name(Handle entry)


gconf_entry_get_value

protected static final Handle gconf_entry_get_value(Handle entry)


gconf_entry_new_nocopy

protected static final Handle gconf_entry_new_nocopy(String key,
                                                     Handle value)


gconf_entry_set_is_default

protected static final void gconf_entry_set_is_default(Handle entry,
                                                       boolean isDefault)


gconf_entry_set_schema_name

protected static final void gconf_entry_set_schema_name(Handle entry,
                                                        String schemaName)


gconf_entry_set_value_nocopy

protected static final void gconf_entry_set_value_nocopy(Handle entry,
                                                         Handle value)


gconf_entry_steal_value

protected static final Handle gconf_entry_steal_value(Handle entry)


getKey

public String getKey()
Return the key field of the entry.


getSchemaName

public String getSchemaName()


getValue

public ConfValue getValue()
Return the value field of the entry.


isDefault

public boolean isDefault()
Returns if the value in this entry is a default value.


setIsDefault

public void setIsDefault(boolean isDefault)


setSchemaName

public void setSchemaName(String name)


setValue

public void setValue(ConfValue value)


stealValue

public ConfValue stealValue()
Extract the value from this ConfEntry leaving the value set to null.