putInteger

Records the given Integer value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Integer value

putDouble

public void putDouble(java.lang.String name,
java.lang.Double value)

Records the given Double value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Double value

putFloat

public void putFloat(java.lang.String name,
java.lang.Float value)

Records the given Float value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Float value

putLong

public void putLong(java.lang.String name,
java.lang.Long value)

Records the given Long value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Long value

putBoolean

Records the given Boolean value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Boolean value

putString

public void putString(java.lang.String name,
java.lang.String value)

Records the given String value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - String value

putIntegerArray

Records the given Integer Array value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Integer array value

putDoubleArray

Records the given Double Array value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Double array value

putFloatArray

Records the given Float Array value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Float array value

putLongArray

Records the given Long Array value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Long array value

putBooleanArray

Records the given Boolean Array value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - Boolean array value

putStringArray

Records the given String Array value against the given name in the
NameValuePreferenceDataObject content. If the name already exists, then
the value for that name will be overwritten with the new value given

Parameters:

name - String name against which the value is to be stored

value - String array value

getInteger

public java.lang.Integer getInteger(java.lang.String name)

Retrieves the Integer value stored against the given name from the
content of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Integer value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given name
is not an Integer.

getDouble

public java.lang.Double getDouble(java.lang.String name)

Retrieves the Double value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Double value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a Double.

getFloat

public java.lang.Float getFloat(java.lang.String name)

Retrieves the Float value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Float value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a Float.

getLong

public java.lang.Long getLong(java.lang.String name)

Retrieves the Long value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Long value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a Long.

getBoolean

public java.lang.Boolean getBoolean(java.lang.String name)

Retrieves the Boolean value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Boolean value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a Boolean.

getString

public java.lang.String getString(java.lang.String name)

Retrieves the String value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

String value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a String.

getIntegerArray

public java.lang.Integer[] getIntegerArray(java.lang.String name)

Retrieves the Integer Array value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Integer Array value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not an Integer array.

getDoubleArray

public java.lang.Double[] getDoubleArray(java.lang.String name)

Retrieves the Double Array value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Double Array value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a Double array.

getFloatArray

public java.lang.Float[] getFloatArray(java.lang.String name)

Retrieves the Float Array value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Float Array value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a Float array.

getLongArray

public java.lang.Long[] getLongArray(java.lang.String name)

Retrieves the Long Array value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Long Array value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a Long array.

getBooleanArray

public java.lang.Boolean[] getBooleanArray(java.lang.String name)

Retrieves the Boolean Array value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

Boolean Array value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a Boolean array.

getStringArray

public java.lang.String[] getStringArray(java.lang.String name)

Retrieves the String Array value stored against the given name from the content
of the NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

Returns:

String Array value stored against the given name if one exists, or
null otherwise

Throws:

java.lang.ClassCastException - if the value stored against the given
name is not a String array.

getNames

public java.util.Iterator getNames()

Retrieves an Iterator object containing all names in the content of the
NameValuePreferenceDataObject.

Returns:

Iterator object containing all names

remove

public void remove(java.lang.String name)

Removes the value stored against the given name from the content of the
NameValuePreferenceDataObject.

Parameters:

name - String name against which the value is stored

write

public void write(java.io.OutputStream os)
throws java.io.IOException

Writes the content of the PreferenceDataObject to a given OutputStream