org.gnu.gconf
Class ConfEntry

java.lang.Object
  extended by org.gnu.glib.Struct
      extended by org.gnu.glib.MemStruct
          extended by org.gnu.gconf.ConfEntry

public class ConfEntry
extends org.gnu.glib.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(org.gnu.glib.Handle handle)
           
ConfEntry(java.lang.String key, ConfValue value)
          Construct a new ConfEntry object
 
Method Summary
 java.lang.String getKey()
          Return the key field of the entry.
 java.lang.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(java.lang.String name)
           
 void setValue(ConfValue value)
           
 ConfValue stealValue()
          Extract the value from this ConfEntry leaving the value set to null.
 
Methods inherited from class org.gnu.glib.MemStruct
getMemStructFromHandle
 
Methods inherited from class org.gnu.glib.Struct
equals, getHandle, getNullHandle, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfEntry

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

Parameters:
key -
value -

ConfEntry

public ConfEntry(org.gnu.glib.Handle handle)
Method Detail

getKey

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


getValue

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


setValue

public void setValue(ConfValue value)

stealValue

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


getSchemaName

public java.lang.String getSchemaName()

setSchemaName

public void setSchemaName(java.lang.String name)

isDefault

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


setIsDefault

public void setIsDefault(boolean isDefault)