|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.portal.provider.v2.preference.NameValuePreferenceDataObject
public class NameValuePreferenceDataObject
Base preference data class. Uses proprietary data format rather than native Java serialization so that data classes may be extended and renamed without breaking their existing data.
Constructor Summary | |
---|---|
NameValuePreferenceDataObject()
Null Constructor. |
Method Summary | |
---|---|
java.lang.Boolean |
getBoolean(java.lang.String name)
Retrieves the Boolean value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.Boolean[] |
getBooleanArray(java.lang.String name)
Retrieves the Boolean Array value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.String |
getContentVersion()
Gets the version String associated with the content of the PreferenceDataObject |
java.lang.Double |
getDouble(java.lang.String name)
Retrieves the Double value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.Double[] |
getDoubleArray(java.lang.String name)
Retrieves the Double Array value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.Float |
getFloat(java.lang.String name)
Retrieves the Float value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.Float[] |
getFloatArray(java.lang.String name)
Retrieves the Float Array value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.Integer |
getInteger(java.lang.String name)
Retrieves the Integer value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.Integer[] |
getIntegerArray(java.lang.String name)
Retrieves the Integer Array value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.Long |
getLong(java.lang.String name)
Retrieves the Long value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.Long[] |
getLongArray(java.lang.String name)
Retrieves the Long Array value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.util.Iterator |
getNames()
Retrieves an Iterator object containing all names in the content of the NameValuePreferenceDataObject . |
java.lang.String |
getString(java.lang.String name)
Retrieves the String value stored against the given name from the content of the NameValuePreferenceDataObject . |
java.lang.String[] |
getStringArray(java.lang.String name)
Retrieves the String Array value stored against the given name from the content of the NameValuePreferenceDataObject . |
void |
putBoolean(java.lang.String name,
java.lang.Boolean value)
Records the given Boolean value against the given name in the NameValuePreferenceDataObject content. |
void |
putBooleanArray(java.lang.String name,
java.lang.Boolean[] value)
Records the given Boolean Array value against the given name in the NameValuePreferenceDataObject content. |
void |
putDouble(java.lang.String name,
java.lang.Double value)
Records the given Double value against the given name in the NameValuePreferenceDataObject content. |
void |
putDoubleArray(java.lang.String name,
java.lang.Double[] value)
Records the given Double Array value against the given name in the NameValuePreferenceDataObject content. |
void |
putFloat(java.lang.String name,
java.lang.Float value)
Records the given Float value against the given name in the NameValuePreferenceDataObject content. |
void |
putFloatArray(java.lang.String name,
java.lang.Float[] value)
Records the given Float Array value against the given name in the NameValuePreferenceDataObject content. |
void |
putInteger(java.lang.String name,
java.lang.Integer value)
Records the given Integer value against the given name in the NameValuePreferenceDataObject content. |
void |
putIntegerArray(java.lang.String name,
java.lang.Integer[] value)
Records the given Integer Array value against the given name in the NameValuePreferenceDataObject content. |
void |
putLong(java.lang.String name,
java.lang.Long value)
Records the given Long value against the given name in the NameValuePreferenceDataObject content. |
void |
putLongArray(java.lang.String name,
java.lang.Long[] value)
Records the given Long Array value against the given name in the NameValuePreferenceDataObject content. |
void |
putString(java.lang.String name,
java.lang.String value)
Records the given String value against the given name in the NameValuePreferenceDataObject content. |
void |
putStringArray(java.lang.String name,
java.lang.String[] value)
Records the given String Array value against the given name in the NameValuePreferenceDataObject content. |
void |
read(java.io.InputStream is)
Populates the PreferenceDataObject with content read from a
given InputStream |
void |
remove(java.lang.String name)
Removes the value stored against the given name from the content of the NameValuePreferenceDataObject . |
void |
setContentVersion(java.lang.String version)
Sets the version associated with the content of the NameValuePreferenceDataObject . |
void |
write(java.io.OutputStream os)
Writes the content of the PreferenceDataObject to a given OutputStream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NameValuePreferenceDataObject()
Method Detail |
---|
public void setContentVersion(java.lang.String version)
NameValuePreferenceDataObject
. The version number is a String to allow
you to define the structure of your version numbers.
setContentVersion
in interface PreferenceDataObject
version
- version string to be associated with the content of the
NameValuePreferenceDataObject
public java.lang.String getContentVersion()
PreferenceDataObject
getContentVersion
in interface PreferenceDataObject
NameValuePreferenceDataObject
public void putInteger(java.lang.String name, java.lang.Integer value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Integer valuepublic void putDouble(java.lang.String name, java.lang.Double value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Double valuepublic void putFloat(java.lang.String name, java.lang.Float value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Float valuepublic void putLong(java.lang.String name, java.lang.Long value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Long valuepublic void putBoolean(java.lang.String name, java.lang.Boolean value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Boolean valuepublic void putString(java.lang.String name, java.lang.String value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- String valuepublic void putIntegerArray(java.lang.String name, java.lang.Integer[] value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Integer array valuepublic void putDoubleArray(java.lang.String name, java.lang.Double[] value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Double array valuepublic void putFloatArray(java.lang.String name, java.lang.Float[] value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Float array valuepublic void putLongArray(java.lang.String name, java.lang.Long[] value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Long array valuepublic void putBooleanArray(java.lang.String name, java.lang.Boolean[] value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- Boolean array valuepublic void putStringArray(java.lang.String name, java.lang.String[] value)
NameValuePreferenceDataObject
content. If the name already exists, then
the value for that name will be overwritten with the new value given
name
- String name against which the value is to be storedvalue
- String array valuepublic java.lang.Integer getInteger(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given name
is not an Integer.public java.lang.Double getDouble(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a Double.public java.lang.Float getFloat(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a Float.public java.lang.Long getLong(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a Long.public java.lang.Boolean getBoolean(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a Boolean.public java.lang.String getString(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a String.public java.lang.Integer[] getIntegerArray(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not an Integer array.public java.lang.Double[] getDoubleArray(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a Double array.public java.lang.Float[] getFloatArray(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a Float array.public java.lang.Long[] getLongArray(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a Long array.public java.lang.Boolean[] getBooleanArray(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a Boolean array.public java.lang.String[] getStringArray(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is stored
java.lang.ClassCastException
- if the value stored against the given
name is not a String array.public java.util.Iterator getNames()
NameValuePreferenceDataObject
.
public void remove(java.lang.String name)
NameValuePreferenceDataObject
.
name
- String name against which the value is storedpublic void write(java.io.OutputStream os) throws java.io.IOException
PreferenceDataObject
to a given OutputStream
write
in interface PreferenceDataObject
os
- OutputStream to which content should be written
java.io.IOException
public void read(java.io.InputStream is) throws java.io.IOException
PreferenceDataObject
with content read from a
given InputStream
read
in interface PreferenceDataObject
is
- InputStream from which content should be read
java.io.IOException
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |