Java.Util.Prefs.AbstractPreferences Members

The members of Java.Util.Prefs.AbstractPreferences are listed below.

See Also: Inherited members from Java.Util.Prefs.Preferences

Protected Constructors

Constructs a new AbstractPreferences instance using the given parent node and node name.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
override
IsUserNodebool. Returns whether this is a user preference node.

Protected Properties

[read-only]
IsRemovedbool. Returns whether this node has been removed by invoking the method removeNode().
LockJava.Lang.Object. The object used to lock this node.
NewNodebool. This field is true if this node is created while it doesn't exist in the backing store.
[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

override
AbsolutePath() : string
Gets the absolute path string of this preference node.
override
AddNodeChangeListener(INodeChangeListener)
Registers a NodeChangeListener instance for this node, which will handle NodeChangeEvents.
override
AddPreferenceChangeListener(IPreferenceChangeListener)
Registers a PreferenceChangeListener instance for this node, which will handle PreferenceChangeEvents.
override
ChildrenNames() : string[]
Returns the names of all children of this node or an empty array if this node has no children.
override
Clear()
Removes all preferences of this node.
override
ExportNode(System.IO.Stream)
Exports all of the preferences of this node to a XML document using the given output stream.
override
ExportSubtree(System.IO.Stream)
Exports all of the preferences of this node and all its descendants to a XML document using the given output stream.
override
Flush()
Forces all pending updates to this node and its descendants to be persisted in the backing store.
override
Get(string, string) : string
Gets the String value mapped to the given key or its default value if no value is mapped or no backing store is available.
override
GetBoolean(string, bool) : bool
Gets the boolean value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is invalid.
override
GetByteArray(string, byte[]) : byte[]
Gets the byte array value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
override
GetDouble(string, double) : double
Gets the double value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
override
GetFloat(string, float) : float
Gets the float value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
override
GetInt(string, int) : int
Gets the int value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
override
GetLong(string, long) : long
Gets the long value mapped to the given key or its default value if no value is mapped, if the backing store is unavailable, or if the value is an invalid string.
override
Keys() : string[]
Returns all preference keys stored in this node or an empty array if no key was found.
override
Name() : string
Returns the name of this node.
override
Node(string) : Preferences
Returns the preference node with the given path name.
override
NodeExists(string) : bool
Returns whether the preference node with the given path name exists.
override
Parent() : Preferences
Returns the parent preference node of this node or null if this node is the root node.
override
Put(string, string)
Adds a new preference to this node using the given key and value or updates the value if a preference with the given key already exists.
override
PutBoolean(string, bool)
Adds a new preference with a boolean value to this node using the given key and value or updates the value if a preference with the given key already exists.
override
PutByteArray(string, byte[])
Adds a new preference to this node using the given key and the string form of the given value or updates the value if a preference with the given key already exists.
override
PutDouble(string, double)
Adds a new preference to this node using the given key and double value or updates the value if a preference with the given key already exists.
override
PutFloat(string, float)
Adds a new preference to this node using the given key and float value or updates the value if a preference with the given key already exists.
override
PutInt(string, int)
Adds a new preference to this node using the given key and int value or updates the value if a preference with the given key already exists.
override
PutLong(string, long)
Adds a new preference to this node using the given key and long value or updates the value if a preference with the given key already exists.
override
Remove(string)
Removes the preference mapped to the given key from this node.
override
RemoveNode()
Removes this preference node with all its descendants.
override
RemoveNodeChangeListener(INodeChangeListener)
Removes the given NodeChangeListener instance from this node.
override
RemovePreferenceChangeListener(IPreferenceChangeListener)
Removes the given PreferenceChangeListener instance from this node.
override
Sync()
Synchronizes the data of this preference node and its descendants with the back-end preference store.
override
ToString() : string
Returns a string representation of this node.

Protected Methods

CachedChildren() : AbstractPreferences[]
Returns an array of all cached child nodes.
abstract
ChildrenNamesSpi() : string[]
Returns the names of all of the child nodes of this node or an empty array if this node has no children.
abstract
ChildSpi(string) : AbstractPreferences
Returns the child preference node with the given name, creating it if it does not exist.
abstract
FlushSpi()
Flushes changes of this node to the backing store.
GetChild(string) : AbstractPreferences
Returns the child node with the specified name or null if it doesn't exist.
abstract
GetSpi(string) : string
Gets the preference value mapped to the given key.
abstract
KeysSpi() : string[]
Returns an array of all preference keys of this node or an empty array if no preferences have been found.
abstract
PutSpi(string, string)
Puts the given key-value pair into this node.
abstract
RemoveNodeSpi()
Removes this node from the preference hierarchy tree.
abstract
RemoveSpi(string)
Removes the preference with the specified key.
abstract
SyncSpi()
Synchronizes this node with the backing store.