org.nodal.util
Class NodeSetterUtil

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

public class NodeSetterUtil
extends SetterUtil

A SetterUtil variant that properly references the bareNode() versions of Nodes that are set in this context.


Nested Class Summary
 
Nested classes inherited from class org.nodal.util.SetterUtil
SetterUtil.PlainSetter
 
Field Summary
 
Fields inherited from class org.nodal.util.SetterUtil
plain, util
 
Fields inherited from class org.nodal.util.GetterFilter
getter
 
Method Summary
 java.lang.Object set(java.lang.Object val)
          Set the value to an Object.
 boolean setBoolean(boolean b)
          Set the value to true/false.
 byte setByte(byte b)
          Set the value to a byte.
 char setChar(char c)
          Set the value to a character.
 double setDouble(double d)
          Set the value to a double precision floating point value.
 float setFloat(float f)
          Set the value to a single precision floating point value.
 int setInt(int i)
          Set the value to an integer.
 long setLong(long l)
           
 Node setNode(Node n)
          Set the value to a Node.
 short setShort(short s)
          Set the value to a short integer..
 
Methods inherited from class org.nodal.util.SetterUtil
create, setString, setValue
 
Methods inherited from class org.nodal.util.GetterFilter
addTxnHandler, get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getNode, getShort, getString, path, 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, path, type, valueEquals
 
Methods inherited from interface org.nodal.model.TxnMonitorable
addTxnHandler, removeTxnHandler
 

Method Detail

set

public java.lang.Object set(java.lang.Object val)
                     throws ConstraintFailure
Description copied from interface: Setter
Set the value to an Object. Will call setString or setNode if appropriate.

Specified by:
set in interface Setter
Overrides:
set in class SetterUtil
Throws:
ConstraintFailure

setNode

public Node setNode(Node n)
             throws ConstraintFailure
Description copied from interface: Setter
Set the value to a Node. The Node returned should have a Path that reflects its new position in the NODAL hierarchy.

Specified by:
setNode in interface Setter
Overrides:
setNode in class SetterUtil
Throws:
ConstraintFailure

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 SetterUtil
Throws:
ConstraintFailure

setChar

public char setChar(char c)
             throws ConstraintFailure
Description copied from interface: Setter
Set the value to a character.

Specified by:
setChar in interface Setter
Overrides:
setChar in class SetterUtil
Throws:
ConstraintFailure

setByte

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

Specified by:
setByte in interface Setter
Overrides:
setByte in class SetterUtil
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 SetterUtil
Throws:
ConstraintFailure

setInt

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

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

setLong

public long setLong(long l)
             throws ConstraintFailure
Overrides:
setLong in class SetterUtil
Throws:
ConstraintFailure

setFloat

public float setFloat(float f)
               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 SetterUtil
Throws:
ConstraintFailure

setDouble

public double setDouble(double d)
                 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 SetterUtil
Throws:
ConstraintFailure