org.nodal.util
Class DoubleSetterUtil

java.lang.Object
  extended byorg.nodal.util.GetterFilter
      extended byorg.nodal.util.AtomicSetterUtil
          extended byorg.nodal.util.DoubleSetterUtil
All Implemented Interfaces:
Getter, Setter, TxnMonitorable

public class DoubleSetterUtil
extends AtomicSetterUtil

Utility class for defining Setters of double values.


Nested Class Summary
static interface DoubleSetterUtil.DoubleSetter
          Implement this interface to use DoubleSetterUtil.
 
Field Summary
 
Fields inherited from class org.nodal.util.AtomicSetterUtil
typeName
 
Fields inherited from class org.nodal.util.GetterFilter
getter
 
Constructor Summary
DoubleSetterUtil(GetterUtil g, DoubleSetterUtil.DoubleSetter s)
           
 
Method Summary
 byte setByte(byte s)
          Set the value to a byte.
 double setDouble(double b)
          Set the value to a double precision floating point value.
 float setFloat(float s)
          Set the value to a single precision floating point value.
 int setInt(int s)
          Set the value to an integer.
 long setLong(long s)
           
protected  java.lang.Object setObject(java.lang.Object obj)
           
 short setShort(short s)
          Set the value to a short integer..
 java.lang.String setString(java.lang.String val)
          Set the value to that parsed from a String.
 
Methods inherited from class org.nodal.util.AtomicSetterUtil
path, set, setBoolean, setChar, setNode
 
Methods inherited from class org.nodal.util.GetterFilter
addTxnHandler, get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getNode, getShort, getString, removeTxnHandler, type, valueEquals
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nodal.model.Getter
get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getNode, getShort, getString, type, valueEquals
 
Methods inherited from interface org.nodal.model.TxnMonitorable
addTxnHandler, removeTxnHandler
 

Constructor Detail

DoubleSetterUtil

public DoubleSetterUtil(GetterUtil g,
                        DoubleSetterUtil.DoubleSetter s)
Method Detail

setDouble

public double setDouble(double b)
                 throws ConstraintFailure
Description copied from interface: Setter
Set the value to a double precision floating point value.

Specified by:
setDouble in interface Setter
Overrides:
setDouble in class AtomicSetterUtil
Throws:
ConstraintFailure

setObject

protected final java.lang.Object setObject(java.lang.Object obj)
                                    throws ConstraintFailure
Specified by:
setObject in class AtomicSetterUtil
Throws:
ConstraintFailure

setString

public java.lang.String setString(java.lang.String val)
                           throws ConstraintFailure
Description copied from interface: Setter
Set the value to that parsed from a String.

Specified by:
setString in interface Setter
Specified by:
setString in class AtomicSetterUtil
Throws:
ConstraintFailure

setByte

public byte setByte(byte s)
             throws ConstraintFailure
Description copied from interface: Setter
Set the value to a byte.

Specified by:
setByte in interface Setter
Overrides:
setByte in class AtomicSetterUtil
Throws:
ConstraintFailure

setShort

public short setShort(short s)
               throws ConstraintFailure
Description copied from interface: Setter
Set the value to a short integer..

Specified by:
setShort in interface Setter
Overrides:
setShort in class AtomicSetterUtil
Throws:
ConstraintFailure

setInt

public int setInt(int s)
           throws ConstraintFailure
Description copied from interface: Setter
Set the value to an integer.

Specified by:
setInt in interface Setter
Overrides:
setInt in class AtomicSetterUtil
Throws:
ConstraintFailure

setLong

public long setLong(long s)
             throws ConstraintFailure
Overrides:
setLong in class AtomicSetterUtil
Throws:
ConstraintFailure

setFloat

public float setFloat(float s)
               throws ConstraintFailure
Description copied from interface: Setter
Set the value to a single precision floating point value.

Specified by:
setFloat in interface Setter
Overrides:
setFloat in class AtomicSetterUtil
Throws:
ConstraintFailure