org.datamixer.values
Class IntValue

java.lang.Object
  extended byorg.datamixer.values.Value
      extended byorg.datamixer.values.IntValue
All Implemented Interfaces:
java.lang.Cloneable

public class IntValue
extends Value


Field Summary
protected  java.text.DecimalFormat decimalFormat_
           
protected  java.text.FieldPosition fieldPosition_
          default FieldPosition
protected  int value_
           
 
Fields inherited from class org.datamixer.values.Value
dataType_, debugEnabled_, logger_, name_
 
Constructor Summary
IntValue()
           
IntValue(int value)
           
 
Method Summary
protected  Value doClone()
          Returns a deep copy.
 double getDouble()
          Returns the current value as a double.
 float getFloat()
          Returns the current value as a float.
 int getInt()
          Returns the current value as an int.
 long getLong()
          Returns the current value as a long.
 java.lang.Object getObject()
          Returns the current value as a Object.
 short getShort()
          Returns the current value as an short.
 java.lang.String getString()
          Returns the current value as a String.
 java.lang.StringBuffer getString(java.lang.StringBuffer buf)
          Returns the current value as a String.
 void setDouble(double value)
          Sets the current value as a double.
 void setFloat(float value)
          Sets the current value as a float.
 void setFormat(java.text.Format value)
          Sets the current format.
 void setInt(int value)
          Sets the current value as an int.
 void setLong(long value)
          Sets the current value as a long.
 void setObject(java.lang.Object value)
          Sets the current value as a Object.
 void setShort(short value)
          Sets the current value as an short.
 void setString(java.lang.String value)
          Sets the current value as a String.
 
Methods inherited from class org.datamixer.values.Value
clone, findValue, getBigDecimal, getBoolean, getByte, getBytes, getCalendar, getDataType, getDate, getFormat, getName, getTime, getTimestamp, getValueList, setBigDecimal, setBoolean, setByte, setBytes, setCalendar, setDataType, setDate, setName, setTime, setTimestamp, setValueList, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value_

protected int value_

decimalFormat_

protected java.text.DecimalFormat decimalFormat_

fieldPosition_

protected java.text.FieldPosition fieldPosition_
default FieldPosition

Constructor Detail

IntValue

public IntValue()

IntValue

public IntValue(int value)
Method Detail

doClone

protected Value doClone()
Returns a deep copy.

Specified by:
doClone in class Value

setFormat

public void setFormat(java.text.Format value)
Sets the current format.

Overrides:
setFormat in class Value

getDouble

public double getDouble()
Returns the current value as a double.

Overrides:
getDouble in class Value
Returns:
the current value as a double.

setDouble

public void setDouble(double value)
Sets the current value as a double.

Overrides:
setDouble in class Value
Parameters:
value - a double value.

getFloat

public float getFloat()
Returns the current value as a float.

Overrides:
getFloat in class Value
Returns:
the current value as a float.

setFloat

public void setFloat(float value)
Sets the current value as a float.

Overrides:
setFloat in class Value
Parameters:
value - a float value.

getInt

public int getInt()
Returns the current value as an int.

Overrides:
getInt in class Value
Returns:
the current value as an int.

setInt

public void setInt(int value)
Sets the current value as an int.

Overrides:
setInt in class Value
Parameters:
value - a int value.

getLong

public long getLong()
Returns the current value as a long.

Overrides:
getLong in class Value
Returns:
the current value as a long.

setLong

public void setLong(long value)
Sets the current value as a long.

Overrides:
setLong in class Value
Parameters:
value - a long value.

getObject

public java.lang.Object getObject()
Returns the current value as a Object.

Overrides:
getObject in class Value
Returns:
the current value as a Object.

setObject

public void setObject(java.lang.Object value)
Sets the current value as a Object.

Overrides:
setObject in class Value
Parameters:
value - a Object value.

getShort

public short getShort()
Returns the current value as an short.

Overrides:
getShort in class Value
Returns:
the current value as an short.

setShort

public void setShort(short value)
Sets the current value as an short.

Overrides:
setShort in class Value
Parameters:
value - a short value.

getString

public java.lang.String getString()
Returns the current value as a String.

Overrides:
getString in class Value
Returns:
the current value as a String.

getString

public java.lang.StringBuffer getString(java.lang.StringBuffer buf)
Returns the current value as a String.

Overrides:
getString in class Value
Returns:
the current value as a String.

setString

public void setString(java.lang.String value)
Sets the current value as a String.

Overrides:
setString in class Value
Parameters:
value - a String value.


Copyright © 2004-2006 datamixer.org. All Rights Reserved.