Package oracle.stellent.ridc.model.impl
Class DataObjectImpl
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,String> DataObject
A mapping of name/value pairs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String name, boolean defaultValue) Retrieve the result as a booleangetCalendar(String name) Retrieve the date.Retrieve the date.intgetInteger(String name) Retrieve a value as an integervoidsetBoolean(String name, boolean value) Set a value as a booleanvoidSet a date value.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
DataObjectImpl
public DataObjectImpl()
-
-
Method Details
-
getBoolean
Retrieve the result as a boolean- Specified by:
getBooleanin interfaceDataObject- Parameters:
name- the property namedefaultValue- the default value if not found- Returns:
- the boolean value
-
setBoolean
Set a value as a boolean- Specified by:
setBooleanin interfaceDataObject- Parameters:
name- the property namevalue- the property value
-
setDate
Set a date value. Note the date should be in GMT time.- Specified by:
setDatein interfaceDataObject- Parameters:
name- the property namedate- the date in GMT time
-
getDate
Retrieve the date. Note the date is in GMT time.- Specified by:
getDatein interfaceDataObject- Parameters:
name- the property name- Returns:
- the date value in GMT or null if not found
-
getCalendar
Description copied from interface:DataObjectRetrieve the date.- Specified by:
getCalendarin interfaceDataObject- Parameters:
name- the property name- Returns:
- the date value in GMT or null if not found
-
getInteger
Retrieve a value as an integer- Specified by:
getIntegerin interfaceDataObject- Parameters:
name- the property name- Returns:
- the integer value or -1 if not found
-