Skip navigation links
oracle.stellent.ridc.model.impl
Class DataObjectImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
oracle.stellent.ridc.model.impl.DataObjectImpl
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>, DataObject
-
public class DataObjectImpl
- extends java.util.HashMap<java.lang.String,java.lang.String>
- implements DataObject
A mapping of name/value pairs
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
boolean |
getBoolean(java.lang.String name, boolean defaultValue)
Retrieve the result as a boolean |
java.util.Calendar |
getCalendar(java.lang.String name)
Retrieve the date. |
java.util.Date |
getDate(java.lang.String name)
Retrieve the date. |
int |
getInteger(java.lang.String name)
Retrieve a value as an integer |
void |
setBoolean(java.lang.String name, boolean value)
Set a value as a boolean |
void |
setDate(java.lang.String name, java.util.Date date)
Set a date value. |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
DataObjectImpl
public DataObjectImpl()
getBoolean
public boolean getBoolean(java.lang.String name,
boolean defaultValue)
- Retrieve the result as a boolean
-
- Specified by:
getBoolean
in interface DataObject
-
- Parameters:
name
- the property name
defaultValue
- the default value if not found
- Returns:
- the boolean value
setBoolean
public void setBoolean(java.lang.String name,
boolean value)
- Set a value as a boolean
-
- Specified by:
setBoolean
in interface DataObject
-
- Parameters:
name
- the property name
value
- the property value
setDate
public void setDate(java.lang.String name,
java.util.Date date)
- Set a date value. Note the date should be in GMT time.
-
- Specified by:
setDate
in interface DataObject
-
- Parameters:
name
- the property name
date
- the date in GMT time
getDate
public java.util.Date getDate(java.lang.String name)
- Retrieve the date. Note the date is in GMT time.
-
- Specified by:
getDate
in interface DataObject
-
- Parameters:
name
- the property name
- Returns:
- the date value in GMT or null if not found
getCalendar
public java.util.Calendar getCalendar(java.lang.String name)
- Description copied from interface:
DataObject
- Retrieve the date.
-
- Specified by:
getCalendar
in interface DataObject
-
- Parameters:
name
- the property name
- Returns:
- the date value in GMT or null if not found
getInteger
public int getInteger(java.lang.String name)
- Retrieve a value as an integer
-
- Specified by:
getInteger
in interface DataObject
-
- Parameters:
name
- the property name
- Returns:
- the integer value or -1 if not found
Skip navigation links
Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.