|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nodal.util.GetterFilter
Field Summary | |
protected Getter |
getter
|
Constructor Summary | |
protected |
GetterFilter(Getter g)
|
Method Summary | |
void |
addTxnHandler(TxnHandler handler)
Add a TxnHandler to be invoked when this object changes. |
java.lang.Object |
get()
Obtain the current value of the resource as an Object. |
boolean |
getBoolean()
Obtain a boolean depiction of the current value of the resource if possible. |
byte |
getByte()
Obtain a byte depiction of the current value of the resource if possible. |
char |
getChar()
Obtain a char depiction of the current value of the resource if possible. |
double |
getDouble()
Obtain a double depiction of the current value of the resource if possible. |
float |
getFloat()
Obtain a float depiction of the current value of the resource if possible. |
int |
getInt()
Obtain an int depiction of the current value of the resource if possible. |
long |
getLong()
Obtain a long depiction of the current value of the resource if possible. |
Node |
getNode()
Obtain a Node interface for the current value of the resource. |
short |
getShort()
Obtain a short depiction of the current value of the resource if possible. |
java.lang.String |
getString()
Obtain a String depiction of the current value of the resource. |
Path |
path()
A Path to this Getter. |
void |
removeTxnHandler(TxnHandler handler)
Remove a previously added TxnHandler. |
Type |
type()
The type of the value returned by this Getter. |
boolean |
valueEquals(java.lang.Object v)
Check equality of the value that would be returned against the argument. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Getter getter
Constructor Detail |
protected GetterFilter(Getter g)
Method Detail |
public Path path()
Getter
Node.path()
extended with the
property name.
path
in interface Getter
public Type type()
Getter
type
in interface Getter
public java.lang.Object get() throws PropertyConstraintFailure
Getter
get
in interface Getter
PropertyConstraintFailure
public java.lang.String getString() throws PropertyConstraintFailure
Getter
getString
in interface Getter
PropertyConstraintFailure
public Node getNode() throws PropertyConstraintFailure
Getter
getNode
in interface Getter
PropertyConstraintFailure
public boolean getBoolean() throws PropertyConstraintFailure
Getter
getBoolean
in interface Getter
PropertyConstraintFailure
public char getChar() throws PropertyConstraintFailure
Getter
getChar
in interface Getter
PropertyConstraintFailure
public byte getByte() throws PropertyConstraintFailure
Getter
getByte
in interface Getter
PropertyConstraintFailure
public short getShort() throws PropertyConstraintFailure
Getter
getShort
in interface Getter
PropertyConstraintFailure
public int getInt() throws PropertyConstraintFailure
Getter
getInt
in interface Getter
PropertyConstraintFailure
public long getLong() throws PropertyConstraintFailure
Getter
getLong
in interface Getter
PropertyConstraintFailure
public float getFloat() throws PropertyConstraintFailure
Getter
getFloat
in interface Getter
PropertyConstraintFailure
public double getDouble() throws PropertyConstraintFailure
Getter
getDouble
in interface Getter
PropertyConstraintFailure
public boolean valueEquals(java.lang.Object v) throws PropertyConstraintFailure
Getter
Check equality of the value that would be returned against the argument.
This is especially useful to avoid extraneous copies when we only need to test equality.
valueEquals
in interface Getter
PropertyConstraintFailure
public void addTxnHandler(TxnHandler handler)
TxnMonitorable
addTxnHandler
in interface TxnMonitorable
handler
- a TxnHandler whose notify methods will be invoked
when this object changes.public void removeTxnHandler(TxnHandler handler)
TxnMonitorable
removeTxnHandler
in interface TxnMonitorable
handler
- a TxnHandler that has previously been added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |