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(Handle handle)
ConfEntry(String key, ConfValue value)
Construct a new ConfEntry object

Method Summary

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

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.