org.nodal.util
Class BooleanSetterUtil

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

public class BooleanSetterUtil
extends AtomicSetterUtil

Utility class for defining Setters of boolean values.


Nested Class Summary
static interface BooleanSetterUtil.BooleanSetter
          Implement this interface to use BooleanSetterUtil.
 
Field Summary
 
Fields inherited from class org.nodal.util.AtomicSetterUtil
typeName
 
Fields inherited from class org.nodal.util.GetterFilter
getter
 
Constructor Summary
BooleanSetterUtil(GetterUtil g, BooleanSetterUtil.BooleanSetter s)
           
 
Method Summary
 boolean setBoolean(boolean b)
          Set the value to true/false.
protected  java.lang.Object setObject(java.lang.Object obj)
           
 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, setByte, setChar, setDouble, setFloat, setInt, setLong, setNode, setShort
 
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

BooleanSetterUtil

public BooleanSetterUtil(GetterUtil g,
                         BooleanSetterUtil.BooleanSetter s)
Method Detail

setBoolean

public boolean setBoolean(boolean b)
                   throws ConstraintFailure
Description copied from interface: Setter
Set the value to true/false.

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

setObject

protected 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