org.datamixer.values
Class StringValue

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

public class StringValue
extends Value


Field Summary
protected  java.lang.String value_
           
 
Fields inherited from class org.datamixer.values.Value
dataType_, debugEnabled_, logger_, name_
 
Constructor Summary
StringValue()
           
StringValue(java.lang.String value)
           
 
Method Summary
protected  Value doClone()
          Returns a deep copy.
 java.util.Date getDate()
          Returns the current value as a Date.
 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 setDate(java.util.Date value)
          Sets the current value as a Date.
 void setDouble(double value)
          Sets the current value as a double.
 void setFloat(float value)
          Sets the current value as a float.
 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, getFormat, getName, getTime, getTimestamp, getValueList, setBigDecimal, setBoolean, setByte, setBytes, setCalendar, setDataType, setFormat, 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 java.lang.String value_
Constructor Detail

StringValue

public StringValue()

StringValue

public StringValue(java.lang.String value)
Method Detail

doClone

protected Value doClone()
Returns a deep copy.

Specified by:
doClone in class Value

getDate

public java.util.Date getDate()
Returns the current value as a Date.

Overrides:
getDate in class Value
Returns:
the current value as a Date.

setDate

public void setDate(java.util.Date value)
Sets the current value as a Date.

Overrides:
setDate in class Value
Parameters:
value - a Date 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.