|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nodal.util.TxnMonitorableUtil
org.nodal.util.GetterUtil
General implementation platform for Getter interface.
An implementation of Getter derived from this class must provide an implementation of the get() method. Type-specific implementations will also override a selection of the type-specific getFoo() methods to avoid unnecessary "boxing" of primitive values.
Field Summary | |
protected Type |
getterType
|
Fields inherited from class org.nodal.util.TxnMonitorableUtil |
handlers |
Constructor Summary | |
protected |
GetterUtil(Type t)
|
Method Summary | |
protected abstract Path |
createPath()
A Path that will be bound to this Getter. |
abstract java.lang.Object |
get()
Recover the value of this Getter as an Object. |
boolean |
getBoolean()
Return the value of this Getter as a boolean if possible |
byte |
getByte()
Return the value of this Getter as a byte if possible |
char |
getChar()
Return the value of this Getter as a char if possible |
double |
getDouble()
Return the value of this Getter as a double if possible |
float |
getFloat()
Return the value of this Getter as a float if possible |
int |
getInt()
Return the value of this Getter as an int if possible |
long |
getLong()
Return the value of this Getter as a long if possible |
Node |
getNode()
Return the value of this Getter as a Node if possible |
short |
getShort()
Return the value of this Getter as a short if possible |
java.lang.String |
getString()
Return the value of this Getter as a String. |
Path |
path()
A Path to this Getter. |
Type |
type()
The NODAL Type of this object. |
boolean |
valueEquals(java.lang.Object v)
Compare this value with the argument. |
Methods inherited from class org.nodal.util.TxnMonitorableUtil |
addNotifier, addTxnHandler, notifyInsertAfter, notifyInsertBefore, notifyRemoveKey, notifyRemoveRange, notifyReplaceRange, notifySetValue, removeNotifier, removeTxnHandler |
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.TxnMonitorable |
addTxnHandler, removeTxnHandler |
Field Detail |
protected Type getterType
Constructor Detail |
protected GetterUtil(Type t)
Method Detail |
public abstract java.lang.Object get() throws PropertyConstraintFailure
Must override to implement.
get
in interface Getter
PropertyConstraintFailure
protected abstract Path createPath() throws Path.Failure
Must override to implement.
Path.Failure
public Path path()
Getter
Node.path()
extended with the
property name.
path
in interface Getter
public Type type()
type
in interface Getter
public boolean getBoolean() throws PropertyConstraintFailure
getBoolean
in interface Getter
PropertyConstraintFailure
public char getChar() throws PropertyConstraintFailure
getChar
in interface Getter
PropertyConstraintFailure
public byte getByte() throws PropertyConstraintFailure
getByte
in interface Getter
PropertyConstraintFailure
public short getShort() throws PropertyConstraintFailure
getShort
in interface Getter
PropertyConstraintFailure
public int getInt() throws PropertyConstraintFailure
getInt
in interface Getter
PropertyConstraintFailure
public long getLong() throws PropertyConstraintFailure
getLong
in interface Getter
PropertyConstraintFailure
public float getFloat() throws PropertyConstraintFailure
getFloat
in interface Getter
PropertyConstraintFailure
public double getDouble() throws PropertyConstraintFailure
getDouble
in interface Getter
PropertyConstraintFailure
public Node getNode() throws PropertyConstraintFailure
getNode
in interface Getter
PropertyConstraintFailure
public java.lang.String getString() throws PropertyConstraintFailure
Unlike the other type-specific get methods, this must always succeed.
getString
in interface Getter
PropertyConstraintFailure
public boolean valueEquals(java.lang.Object v) throws PropertyConstraintFailure
This method is provided so that comparison can be done without the overhead of a full get in some cases. This should thus be overriden with a more efficient implementation when possible.
valueEquals
in interface Getter
PropertyConstraintFailure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |