org.nodal.util
Class IntGetterUtil

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

public abstract class IntGetterUtil
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 IntGetterUtil(Type t)
           
 
Method Summary
 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
abstract  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
 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.
 boolean valueEquals(java.lang.Object v)
          Compare this value with the argument.
 
Methods inherited from class org.nodal.util.GetterUtil
createPath, getNode, 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

IntGetterUtil

protected IntGetterUtil(Type t)
Method Detail

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

getBoolean

public boolean getBoolean()
                   throws PropertyTypeMismatch
Description copied from class: GetterUtil
Return the value of this Getter as a boolean if possible

Specified by:
getBoolean in interface Getter
Overrides:
getBoolean in class GetterUtil
Throws:
PropertyTypeMismatch

getChar

public char getChar()
             throws PropertyTypeMismatch
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
Throws:
PropertyTypeMismatch

getByte

public byte getByte()
             throws PropertyTypeMismatch
Description copied from class: GetterUtil
Return the value of this Getter as a byte if possible

Specified by:
getByte in interface Getter
Overrides:
getByte in class GetterUtil
Throws:
PropertyTypeMismatch

getShort

public short getShort()
               throws PropertyTypeMismatch
Description copied from class: GetterUtil
Return the value of this Getter as a short if possible

Specified by:
getShort in interface Getter
Overrides:
getShort in class GetterUtil
Throws:
PropertyTypeMismatch

getInt

public abstract int getInt()
Description copied from class: GetterUtil
Return the value of this Getter as an int if possible

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

getLong

public long getLong()
Description copied from class: GetterUtil
Return the value of this Getter as a long if possible

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

getFloat

public float getFloat()
Description copied from class: GetterUtil
Return the value of this Getter as a float if possible

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

getDouble

public double getDouble()
Description copied from class: GetterUtil
Return the value of this Getter as a double if possible

Specified by:
getDouble in interface Getter
Overrides:
getDouble 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