org.gnu.gconf

Class ConfEntry

public class ConfEntry extends MemStruct

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(String key, ConfValue value)
Construct a new ConfEntry object
ConfEntry(Handle handle)
Method Summary
protected static booleangconf_entry_get_is_default(Handle entry)
protected static Stringgconf_entry_get_key(Handle entry)
protected static Stringgconf_entry_get_schema_name(Handle entry)
protected static Handlegconf_entry_get_value(Handle entry)
protected static Handlegconf_entry_new_nocopy(String key, Handle value)
protected static voidgconf_entry_set_is_default(Handle entry, boolean isDefault)
protected static voidgconf_entry_set_schema_name(Handle entry, String schemaName)
protected static voidgconf_entry_set_value_nocopy(Handle entry, Handle value)
protected static Handlegconf_entry_steal_value(Handle entry)
StringgetKey()
Return the key field of the entry.
StringgetSchemaName()
ConfValuegetValue()
Return the value field of the entry.
booleanisDefault()
Returns if the value in this entry is a default value.
voidsetIsDefault(boolean isDefault)
voidsetSchemaName(String name)
voidsetValue(ConfValue value)
ConfValuestealValue()
Extract the value from this ConfEntry leaving the value set to null.

Constructor Detail

ConfEntry

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

Parameters: key value

ConfEntry

public ConfEntry(Handle handle)

Method Detail

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.