Skip navigation links
oracle.stellent.ridc.model.impl
Class DataObjectImpl
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
oracle.stellent.ridc.model.impl.DataObjectImpl
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,String>, DataObject
-
public class DataObjectImpl
- extends HashMap<String,String>
- implements DataObject
A mapping of name/value pairs
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
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(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(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(String name,
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 Date getDate(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 Calendar getCalendar(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(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, 2013, Oracle and/or its affiliates. All rights reserved.