org.nodal.util
Class CharGetterUtil

java.lang.Object
  extended byorg.nodal.util.TxnMonitorableUtil
      extended byorg.nodal.util.GetterUtil
          extended byorg.nodal.util.CharGetterUtil
All Implemented Interfaces:
Getter, TxnHandler, TxnMonitorable

public abstract class CharGetterUtil
extends GetterUtil


Field Summary
 
Fields inherited from class org.nodal.util.GetterUtil
getterType
 
Fields inherited from class org.nodal.util.TxnMonitorableUtil
handlers
 
Constructor Summary
protected CharGetterUtil(Type t)
           
 
Method Summary
 java.lang.Object get()
          Recover the value of this Getter as an Object.
abstract  char getChar()
          Return the value of this Getter as a char if possible
 java.lang.String getString()
          Return the value of this Getter as a String.
 boolean valueEquals(java.lang.Object v)
          Compare this value with the argument.
 
Methods inherited from class org.nodal.util.GetterUtil
createPath, getBoolean, getByte, getDouble, getFloat, getInt, getLong, getNode, getShort, path, type
 
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
 

Constructor Detail

CharGetterUtil

protected CharGetterUtil(Type t)
Method Detail

getChar

public abstract char getChar()
Description copied from class: GetterUtil
Return the value of this Getter as a char if possible

Specified by:
getChar in interface Getter
Overrides:
getChar in class GetterUtil

get

public java.lang.Object get()
Description copied from class: GetterUtil
Recover the value of this Getter as an Object.

Must override to implement.

Specified by:
get in interface Getter
Specified by:
get in class GetterUtil

getString

public java.lang.String getString()
Description copied from class: GetterUtil
Return the value of this Getter as a String.

Unlike the other type-specific get methods, this must always succeed.

Specified by:
getString in interface Getter
Overrides:
getString in class GetterUtil

valueEquals

public boolean valueEquals(java.lang.Object v)
Description copied from class: GetterUtil
Compare this value with the argument.

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.

Specified by:
valueEquals in interface Getter
Overrides:
valueEquals in class GetterUtil