|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.datamixer.values.Value
| Field Summary | |
protected int |
dataType_
datatype |
protected boolean |
debugEnabled_
true if logging is debug enabled |
protected org.apache.log4j.Logger |
logger_
logger |
protected java.lang.String |
name_
name |
| Constructor Summary | |
Value()
|
|
| Method Summary | |
java.lang.Object |
clone()
Returns a deep copy. |
protected abstract Value |
doClone()
Returns a deep copy. |
Value |
findValue(java.lang.String[] names)
Find a nested value by path, a dot-separated list of names. |
java.math.BigDecimal |
getBigDecimal()
Returns the current value as a BigDecimal. |
boolean |
getBoolean()
Returns the current value as an boolean. |
byte |
getByte()
Returns the current value as a byte. |
byte[] |
getBytes()
Returns the current value as an array of bytes. |
java.util.Calendar |
getCalendar()
Returns the current value as a Calendar. |
int |
getDataType()
Returns the datatype of the current value. |
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. |
java.text.Format |
getFormat()
Returns the current format. |
int |
getInt()
Returns the current value as an int. |
long |
getLong()
Returns the current value as a long. |
java.lang.String |
getName()
Returns the name. |
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)
Constructs the current value as a String. |
java.sql.Time |
getTime()
Returns the current value as a Time. |
java.sql.Timestamp |
getTimestamp()
Returns the current value as a Timestamp. |
ValueList |
getValueList()
Returns the current value as a ValueList. |
void |
setBigDecimal(java.math.BigDecimal value)
Sets the current value as a BigDecimal. |
void |
setBoolean(boolean value)
Sets the current value as an boolean. |
void |
setByte(byte value)
Sets the current value as a byte. |
void |
setBytes(byte[] value)
Sets the current value as an array of bytes. |
void |
setCalendar(java.util.Calendar value)
Sets the current value as a Calendar. |
protected void |
setDataType(int value)
Returns the datatype of the current value. |
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 |
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 |
setName(java.lang.String name)
Set the name. |
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. |
void |
setTime(java.sql.Time value)
Sets the current value as a Time. |
void |
setTimestamp(java.sql.Timestamp value)
Sets the current value as a Timestamp. |
void |
setValueList(ValueList value)
Sets the current value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String name_
protected int dataType_
protected org.apache.log4j.Logger logger_
protected boolean debugEnabled_
| Constructor Detail |
public Value()
| Method Detail |
public java.lang.Object clone()
protected abstract Value doClone()
public java.lang.String toString()
public java.lang.String getName()
public void setName(java.lang.String name)
public Value findValue(java.lang.String[] names)
throws DatamixerException
path, a dot-separated list of names.
DatamixerExceptionpublic int getDataType()
protected void setDataType(int value)
public java.text.Format getFormat()
public void setFormat(java.text.Format value)
public java.math.BigDecimal getBigDecimal()
public void setBigDecimal(java.math.BigDecimal value)
value - a BigDecimal value.public boolean getBoolean()
public void setBoolean(boolean value)
value - a boolean value.public byte getByte()
public void setByte(byte value)
value - a byte value.public byte[] getBytes()
public void setBytes(byte[] value)
value - a array value of bytes.public java.util.Calendar getCalendar()
public void setCalendar(java.util.Calendar value)
value - a Calendar value.public java.util.Date getDate()
public void setDate(java.util.Date value)
value - a Date value.public double getDouble()
public void setDouble(double value)
value - a double value.public float getFloat()
public void setFloat(float value)
value - a float value.public int getInt()
public void setInt(int value)
value - a int value.public long getLong()
public void setLong(long value)
value - a long value.public java.lang.Object getObject()
public void setObject(java.lang.Object value)
value - a Object value.public short getShort()
public void setShort(short value)
value - a short value.public java.lang.String getString()
public java.lang.StringBuffer getString(java.lang.StringBuffer buf)
public void setString(java.lang.String value)
value - a String value.public java.sql.Time getTime()
public void setTime(java.sql.Time value)
value - a Time value.public java.sql.Timestamp getTimestamp()
public void setTimestamp(java.sql.Timestamp value)
value - a Timestamp value.public ValueList getValueList()
ValueList.
public void setValueList(ValueList value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||