|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nodal.util.GetterFilter
org.nodal.util.SetterUtil
An implementation of the Setter interface that takes an Object value. It may be used directly by initializing with a GetterUtil/PlainSetter pair or may be overridden by inheritance.
Nested Class Summary | |
static interface |
SetterUtil.PlainSetter
Implement this interface to use SetterUtil. |
Field Summary | |
protected SetterUtil.PlainSetter |
plain
|
protected GetterUtil |
util
|
Fields inherited from class org.nodal.util.GetterFilter |
getter |
Constructor Summary | |
protected |
SetterUtil(GetterUtil g,
SetterUtil.PlainSetter s)
|
Method Summary | |
static SetterUtil |
create(GetterUtil g,
SetterUtil.PlainSetter s)
Create a new SetterUtil, selecting the appropriate implementation type based on the type() of the GetterUtil g . |
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.. |
java.lang.String |
setString(java.lang.String s)
Set the value to that parsed from a String. |
protected java.lang.Object |
setValue(java.lang.Object val)
Actually modify the value. |
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 |
Field Detail |
protected final SetterUtil.PlainSetter plain
protected final GetterUtil util
Constructor Detail |
protected SetterUtil(GetterUtil g, SetterUtil.PlainSetter s)
Method Detail |
public static final SetterUtil create(GetterUtil g, SetterUtil.PlainSetter s)
g
.
g
- a GetterUtil that is the accessor for this slots
- a PlainSetter that accomplished the actual modification
protected java.lang.Object setValue(java.lang.Object val) throws ConstraintFailure
ConstraintFailure
public java.lang.Object set(java.lang.Object val) throws ConstraintFailure
Setter
set
in interface Setter
val
- the new value for the slot
ConstraintFailure
public java.lang.String setString(java.lang.String s) throws ConstraintFailure
Setter
setString
in interface Setter
s
- a String representing the new value for the slot
ConstraintFailure
public Node setNode(Node n) throws ConstraintFailure
Setter
setNode
in interface Setter
n
- the new Node value for the slot
ConstraintFailure
public boolean setBoolean(boolean b) throws ConstraintFailure
Setter
setBoolean
in interface Setter
b
- the new boolean value
ConstraintFailure
public char setChar(char c) throws ConstraintFailure
Setter
setChar
in interface Setter
c
- the new character value
ConstraintFailure
public byte setByte(byte b) throws ConstraintFailure
Setter
setByte
in interface Setter
b
- the new byte value
ConstraintFailure
public short setShort(short s) throws ConstraintFailure
Setter
setShort
in interface Setter
s
- the new short value
ConstraintFailure
public int setInt(int i) throws ConstraintFailure
Setter
setInt
in interface Setter
i
- the new integer value
ConstraintFailure
public long setLong(long l) throws ConstraintFailure
ConstraintFailure
public float setFloat(float f) throws ConstraintFailure
Setter
setFloat
in interface Setter
f
- the new float value
ConstraintFailure
public double setDouble(double d) throws ConstraintFailure
Setter
setDouble
in interface Setter
d
- the new double value
ConstraintFailure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |