bill.util.persist
Class DoubleElement

java.lang.Object
  |
  +--bill.util.persist.ElementData
        |
        +--bill.util.persist.DoubleElement

public class DoubleElement
extends ElementData

Persistent element of double type.


Fields inherited from class bill.util.persist.ElementData
_elementData, _logicalName, _physicalName, _required, _value
 
Constructor Summary
DoubleElement()
          Default creator, does not do anything special.
DoubleElement(String logicalName, String physicalName)
          Alternate creator that sets the element's logical and physical names.
 
Method Summary
 void setValue(double value)
          Set the element's value to to specified value.
 void setValue(Object value)
          Set the element's value to the specified value.
 
Methods inherited from class bill.util.persist.ElementData
addElementData, equals, formatValue, getElementData, getLogicalName, getPhysicalName, getValue, isRequired, removeElementData, setElementData, setLogicalName, setPhysicalName, setRequired, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleElement

public DoubleElement()
Default creator, does not do anything special.

DoubleElement

public DoubleElement(String logicalName,
                     String physicalName)
Alternate creator that sets the element's logical and physical names.
Parameters:
logicalName - The new element's logical name
physicalName - The new element's physical name
Method Detail

setValue

public void setValue(Object value)
              throws PersistException
Set the element's value to the specified value. If a null or "empty" value is specified, a value of 0.0 is assigned.
Overrides:
setValue in class ElementData
Parameters:
value - The new value to assign to the element.
Throws:
PersistException - If the passed value cannot be converted into an double value.

setValue

public void setValue(double value)
              throws PersistException
Set the element's value to to specified value.
Parameters:
value - The new value to assign to the element.