oracle.dacf.dataset
Class SingleValueImpl
java.lang.Object
|
+--oracle.dacf.dataset.DacObject
|
+--oracle.dacf.dataset.DataItemImpl
|
+--oracle.dacf.dataset.SingleValueImpl
- All Implemented Interfaces:
- java.lang.Cloneable, javax.infobus.DataItem, javax.infobus.DataItemChangeManager, DataItemValidate, javax.infobus.ImmediateAccess
- public class SingleValueImpl
- extends DataItemImpl
- implements javax.infobus.ImmediateAccess
SingleValueImpl
Method Summary |
java.lang.Object |
clone()
Copies the data item. |
java.lang.String |
getPresentationString(java.util.Locale locale)
Returns the value of this item, as a string to be displayed for a given
locale. |
java.lang.Object |
getValueAsObject()
Returns the value of this item, as an object. |
java.lang.String |
getValueAsString()
Returns the value of this item, as a string. |
void |
setValue(java.lang.Object newValue)
Sets the value of this item. |
Methods inherited from class oracle.dacf.dataset.DataItemImpl |
addDataItemChangeListener, doPostRollback, doPreRollback, findDataItem, fireItemsAvailable, fireItemsAvailable, fireItemsRevoked, getDataItemChangeSupport, getProducerObject, getProperty, getSource, isPublished, postRollback, preRollback, publish, publish, release, removeDataItemChangeListener, revoke, setProducerObject, setSource, shutdown, toString, validateItem |
Methods inherited from class oracle.dacf.dataset.DacObject |
addChild, findDescendant, genCloneName, getChild, getChildIndex, getChildren, getName, getNumOfChildren, getParent, getPrefix, insertChildAt, removeChild, removeChildren, setChildren, setName, setParent, setPrefix |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SingleValueImpl
public SingleValueImpl()
- .
- Parameters:
- - See Also:
- ,
#()
SingleValueImpl
public SingleValueImpl(java.lang.Object val)
clone
public java.lang.Object clone()
- Description copied from class:
DataItemImpl
- Copies the data item.
- Overrides:
clone
in class DataItemImpl
- Following copied from class:
oracle.dacf.dataset.DataItemImpl
- Returns:
- A copy of the data item.
getValueAsString
public java.lang.String getValueAsString()
- Returns the value of this item, as a string.
- Specified by:
getValueAsString
in interface javax.infobus.ImmediateAccess
- Returns:
- The value of this item.
getValueAsObject
public java.lang.Object getValueAsObject()
- Returns the value of this item, as an object.
- Specified by:
getValueAsObject
in interface javax.infobus.ImmediateAccess
- Returns:
- The value of this item.
getPresentationString
public java.lang.String getPresentationString(java.util.Locale locale)
- Returns the value of this item, as a string to be displayed for a given
locale.
- Specified by:
getPresentationString
in interface javax.infobus.ImmediateAccess
- Parameters:
locale
- The locale to display the value in.- Returns:
- The value of this item.
setValue
public void setValue(java.lang.Object newValue)
throws javax.infobus.InvalidDataException
- Sets the value of this item.
- Specified by:
setValue
in interface javax.infobus.ImmediateAccess
- Parameters:
newValue
- The new value for the item; should implement the
ImmediateAccess data item interface.- Throws:
javax.infobus.InvalidDataException
- If the new value was invalid.