|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.compatibility.Value
public class Value
This class is one of the core classes of the Kettle framework. It contains everything you need to manipulate atomic data (Values/Fields/...) and to describe it in the form of meta-data. (name, length, precision, etc.)
Field Summary | |
---|---|
static int |
VALUE_TYPE_BIGNUMBER
Value type indicating that the value contains a floating point precision number with arbitrary precision. |
static int |
VALUE_TYPE_BINARY
Value type indicating that the value contains binary data: BLOB, CLOB, ... |
static int |
VALUE_TYPE_BOOLEAN
Value type indicating that the value contains a boolean. |
static int |
VALUE_TYPE_DATE
Value type indicating that the value contains a Date. |
static int |
VALUE_TYPE_INTEGER
Value type indicating that the value contains a long integer. |
static int |
VALUE_TYPE_NONE
Value type indicating that the value has no type set. |
static int |
VALUE_TYPE_NUMBER
Value type indicating that the value contains a floating point double precision number. |
static int |
VALUE_TYPE_SERIALIZABLE
Value type indicating that the value contains an Object. |
static int |
VALUE_TYPE_STRING
Value type indicating that the value contains a text String. |
static String |
XML_TAG
|
Constructor Summary | |
---|---|
Value()
Constructs a new Value of type EMPTY |
|
Value(InputStream is)
Read the Value, including meta-data from a DataInputStream |
|
Value(Node valnode)
Construct a new Value and read the data from XML |
|
Value(String name)
Constructs a new Value with a name. |
|
Value(String name,
BigDecimal bignum)
Constructs a new Value of Type VALUE_TYPE_BIGNUMBER, with a name, containing a BigDecimal number |
|
Value(String name,
boolean bool)
Constructs a new Value of Type VALUE_TYPE_BOOLEAN, with a name, containing a boolean value |
|
Value(String name,
byte[] b)
Constructs a new Value of Type VALUE_TYPE_BINARY, with a name, containing a bytes value |
|
Value(String name,
Date dat)
Constructs a new Value of Type VALUE_TYPE_DATE, with a name, containing a Date |
|
Value(String name,
double num)
Constructs a new Value of Type VALUE_TYPE_NUMBER, with a name, containing a number |
|
Value(String name,
int val_type)
Constructs a new Value with a name and a type. |
|
Value(String name,
int valType,
int length,
int precision)
Constructs a new Value with a name, a type, length and precision. |
|
Value(String name,
long l)
Constructs a new Value of Type VALUE_TYPE_INTEGER, with a name, containing an integer number |
|
Value(String name,
String str)
Constructs a new Value of Type VALUE_TYPE_STRING, with a name, containing a String |
|
Value(String name,
StringBuffer str)
Constructs a new Value of Type VALUE_TYPE_STRING, with a name, containing a String |
|
Value(String name,
Value v)
Constructs a new Value as a copy of another value and renames it... |
|
Value(Value v)
Constructs a new Value as a copy of another value |
|
Value(Value metaData,
DataInputStream dis)
Read the data of a Value from a DataInputStream, the meta-data of the value has to be set before calling this method! |
Method Summary | |
---|---|
Value |
abs()
|
Value |
acos()
|
Value |
add_days(long days)
Add a number of days to a Date value. |
Value |
add_months(int months)
|
Value |
and(Value v)
|
Value |
asin()
|
Value |
atan()
|
Value |
atan2(double arg0)
|
Value |
atan2(Value arg0)
|
Value |
bool_and(Value v)
|
Value |
bool_not()
|
Value |
bool_or(Value v)
|
Value |
bool_xor(Value v)
|
Value |
byteToHexEncode()
Change a string into its hexadecimal representation. |
Value |
ceil()
|
Value |
charToHexEncode()
Change a string into its hexadecimal representation. |
void |
clearValue()
Clears the content and name of a Value |
Object |
clone()
|
Value |
Clone()
Build a copy of this Value |
int |
compare(Value v)
Compare 2 values of the same or different type! The comparison of Strings is case insensitive |
int |
compare(Value v,
boolean caseInsensitive)
Compare 2 values of the same or different type! |
void |
convertString(int newtype)
Convert this Value from type String to another type |
Value |
cos()
|
Value |
dat2num()
|
Value |
dat2str()
|
Value |
dat2str(String arg0)
|
Value |
dat2str(String arg0,
String arg1)
|
Value |
different(Value v)
|
Value |
divide(BigDecimal v)
|
Value |
divide(byte v)
|
Value |
divide(double v)
|
Value |
divide(int v)
|
Value |
divide(long v)
|
Value |
divide(Value v)
|
Value |
e()
|
Value |
equal(Value v)
|
boolean |
equals(Object v)
|
boolean |
equalValueType(Value v)
|
boolean |
equalValueType(Value v,
boolean checkTypeOnly)
Returns whether "types" of the values are exactly the same: type, name, length, precision. |
Value |
exp()
|
Value |
first_day()
|
Value |
floor()
|
static String[] |
getAllTypes()
Get an array of String describing the possible types a Value can have. |
BigDecimal |
getBigNumber()
Get the BigDecimal number of this Value. |
boolean |
getBoolean()
Get the boolean value of this Value. |
byte[] |
getBytes()
|
String |
getClassName()
|
Date |
getDate()
Get the Date of this Value. |
static Value |
getInstance()
|
long |
getInteger()
Get the long integer representation of this value. |
int |
getLength()
Get the length of this Value. |
String |
getName()
Obtain the name of a Value |
double |
getNumber()
Get the double precision floating point number of this Value. |
String |
getOrigin()
Obtain the origin of the step. |
int |
getPrecision()
get the precision of this Value |
Serializable |
getSerializable()
Get the Serializable of this Value. |
String |
getString()
Get the String text representing this value. |
int |
getStringLength()
Get the length of the String representing this value. |
int |
getType()
Returns the type of this Value |
static int |
getType(String desc)
Convert the String description of a type to an integer type. |
String |
getTypeDesc()
Return the type of a value in a textual form: "String", "Number", "Integer", "Boolean", "Date", ... |
static String |
getTypeDesc(int t)
Return the type of a value in a textual form: "String", "Number", "Integer", "Boolean", "Date", ... |
static String[] |
getTypes()
get an array of String describing the possible types a Value can have. |
ValueInterface |
getValueInterface()
|
String |
getXML()
Produce the XML representation of this value. |
Value |
greater_equal(Value v)
|
Value |
greater(Value v)
|
int |
hashCode()
|
Value |
hexToByteDecode()
Change a hexadecimal string into normal ASCII representation. |
Value |
hexToCharDecode()
Change a hexadecimal string into normal ASCII representation. |
Value |
initcap()
|
boolean |
isBigNumber()
Checks whether or not the value is a Big Number |
boolean |
isBinary()
Checks whether or not this value is of type Binary |
boolean |
isBoolean()
Checks whether or not this value is a boolean |
boolean |
isDate()
Checks whether or not this value is a Date |
boolean |
isEmpty()
Checks whether or not this Value is empty. |
boolean |
isEqualTo(BigDecimal number)
Check whether this value is equal to the BigDecimal supplied. |
boolean |
isEqualTo(byte number)
Check whether this value is equal to the Integer supplied. |
boolean |
isEqualTo(Date date)
Check whether this value is equal to the Date supplied. |
boolean |
isEqualTo(double number)
Check whether this value is equal to the Number supplied. |
boolean |
isEqualTo(int number)
Check whether this value is equal to the Integer supplied. |
boolean |
isEqualTo(long number)
Check whether this value is equal to the Integer supplied. |
boolean |
isEqualTo(String string)
Check whether this value is equal to the String supplied. |
boolean |
isInteger()
Checks whether or not this value is an Integer |
boolean |
isNull()
Checks wheter or not a value is null. |
boolean |
isNumber()
Checks whether or not the value is a Number |
boolean |
isNumeric()
Checks whether or not this Value is Numeric A Value is numeric if it is either of type Number or Integer |
static boolean |
isNumeric(int t)
Checks whether or not the specified type is either Integer or Number |
boolean |
isSerializableType()
Checks whether or not this value is of type Serializable |
boolean |
isString()
Checks wheter or not the value is a String. |
void |
jsConstructor()
|
void |
jsConstructor(String name)
|
void |
jsConstructor(String name,
String value)
|
Value |
last_day()
|
Value |
leftstr(int len)
|
Value |
leftstr(Value len)
|
Value |
length()
|
Value |
like(Value v)
|
boolean |
loadXML(Node valnode)
Read the data for this Value from an XML Node |
Value |
log()
|
Value |
lower()
|
Value |
lpad(int len)
|
Value |
lpad(int len,
String padstr)
|
Value |
lpad(Value len)
|
Value |
lpad(Value len,
Value padstr)
|
Value |
ltrim()
|
void |
merge(Value other)
Merges another Value. |
Value |
minus(BigDecimal v)
|
Value |
minus(byte v)
|
Value |
minus(double v)
|
Value |
minus(int v)
|
Value |
minus(long v)
|
Value |
minus(Value v)
|
Value |
mod(BigDecimal arg)
|
Value |
mod(byte arg)
|
Value |
mod(double arg0)
|
Value |
mod(int arg)
|
Value |
mod(long arg)
|
Value |
mod(Value arg)
|
Value |
multiply(BigDecimal v)
|
Value |
multiply(byte v)
|
Value |
multiply(double v)
|
Value |
multiply(int v)
|
Value |
multiply(long v)
|
Value |
multiply(Value v)
|
Value |
num2dat()
|
Value |
num2str()
|
Value |
num2str(String format)
|
Value |
num2str(String format,
String decimalSymbol)
|
Value |
num2str(String format,
String decimalSymbol,
String groupingSymbol)
|
Value |
num2str(String format,
String decimalSymbol,
String groupingSymbol,
String currencySymbol)
|
Value |
nvl(Value alt)
|
Value |
or(Value v)
|
Value |
pi()
|
Value |
plus(BigDecimal v)
|
Value |
plus(byte v)
|
Value |
plus(double v)
|
Value |
plus(int v)
|
Value |
plus(long v)
|
Value |
plus(Value v)
|
Value |
power(BigDecimal arg)
|
Value |
power(double arg)
|
Value |
power(Value v)
|
void |
readObj(DataInputStream dis)
Read the metadata and data for this Value object from the specified data input stream |
Value |
replace(String repl,
String with)
|
Value |
replace(Value repl,
Value with)
|
Value |
rightstr(int len)
|
Value |
rightstr(Value len)
|
Value |
round()
Rounds off to the nearest integer. |
Value |
round(int decimalPlaces)
Rounds the Number value to a certain number decimal places. |
Value |
rpad(int len)
|
Value |
rpad(int len,
String padstr)
|
Value |
rpad(Value len)
|
Value |
rpad(Value len,
Value padstr)
|
Value |
rtrim()
|
void |
setLength(int l)
Sets the length of the Number, Integer or String to the specified length Note: no truncation of the value takes place, this is meta-data only! |
void |
setLength(int l,
int p)
Sets the length and the precision of the Number, Integer or String to the specified length & precision Note: no truncation of the value takes place, this is meta-data only! |
void |
setName(String name)
Sets the name of a Value |
void |
setNull()
Sets the Value to null, no type is being changed. |
void |
setNull(boolean n)
Sets or unsets a value to null, no type is being changed. |
void |
setOrigin(String step_of_origin)
This method allows you to set the origin of the Value by means of the name of the originating step. |
void |
setPrecision(int p)
Sets the precision of this Value Note: no rounding or truncation takes place, this is meta-data only! |
void |
setSerializedValue(Serializable ser)
|
void |
setType(int val_type)
Set the type of this Value |
void |
setValue(BigDecimal num)
Sets the value to a BigDecimal number value. |
void |
setValue(boolean bool)
Sets the Value to a boolean |
void |
setValue(Boolean b)
|
void |
setValue(byte b)
Sets the Value to a long integer |
void |
setValue(byte[] b)
Sets the Value to a byte array |
void |
setValue(Date dat)
Sets the Value to a Date |
void |
setValue(double num)
Sets the value to a double Number value. |
void |
setValue(int i)
Sets the Value to a long integer |
void |
setValue(long l)
Sets the Value to a long integer |
void |
setValue(String str)
Sets the Value to a String text |
void |
setValue(StringBuffer str)
Sets the Value to a String text |
void |
setValue(Value v)
Copy the Value from another Value. |
void |
setValueInterface(ValueInterface valueInterface)
|
Value |
sign()
|
Value |
sin()
|
Value |
smaller_equal(Value v)
|
Value |
smaller(Value v)
|
Value |
sqrt()
|
Value |
startsWith(String string)
|
Value |
startsWith(Value string)
|
Value |
str2dat(String arg0)
|
Value |
str2dat(String arg0,
String arg1)
|
Value |
str2num()
|
Value |
str2num(String pattern)
|
Value |
str2num(String pattern,
String decimal)
|
Value |
str2num(String pattern,
String decimal,
String grouping)
|
Value |
str2num(String pattern,
String decimal,
String grouping,
String currency)
|
Value |
substr(int from)
|
Value |
substr(int from,
int to)
|
Value |
substr(Value from)
|
Value |
substr(Value from,
Value to)
|
Value |
sysdate()
|
Value |
tan()
|
String |
toString()
Returns a padded to length String text representation of this Value |
String |
toString(boolean pad)
a String text representation of this Value, optionally padded to the specified length |
String |
toStringMeta()
a String text representation of this Value, optionally padded to the specified length |
Value |
trim()
Performs a right and left trim of spaces in the string. |
Value |
trunc()
|
Value |
trunc(double level)
|
Value |
trunc(int level)
|
Value |
upper()
|
Value |
v_decode(Value[] args)
|
Value |
v_if(Value[] args)
|
void |
write(OutputStream outputStream)
Write the value, including the meta-data to a DataOutputStream |
boolean |
writeData(DataOutputStream dos)
Write the data of this Value, without the meta-data to a DataOutputStream |
void |
writeObj(DataOutputStream dos)
|
Value |
xor(Value v)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String XML_TAG
public static final int VALUE_TYPE_NONE
public static final int VALUE_TYPE_NUMBER
public static final int VALUE_TYPE_STRING
public static final int VALUE_TYPE_DATE
public static final int VALUE_TYPE_BOOLEAN
public static final int VALUE_TYPE_INTEGER
public static final int VALUE_TYPE_BIGNUMBER
public static final int VALUE_TYPE_SERIALIZABLE
public static final int VALUE_TYPE_BINARY
Constructor Detail |
---|
public Value()
public Value(String name)
name
- Sets the name of the Valuepublic Value(String name, int val_type)
name
- Sets the name of the Valueval_type
- Sets the type of the Value (Value.VALUE_TYPE_*)public Value(String name, int valType, int length, int precision)
name
- Sets the name of the ValuevalType
- Sets the type of the Value (Value.VALUE_TYPE_*)length
- The length of the valueprecision
- The precision of the valuepublic Value(String name, BigDecimal bignum)
name
- Sets the name of the Valuebignum
- The number to store in this Valuepublic Value(String name, double num)
name
- Sets the name of the Valuenum
- The number to store in this Valuepublic Value(String name, StringBuffer str)
name
- Sets the name of the Valuestr
- The text to store in this Valuepublic Value(String name, String str)
name
- Sets the name of the Valuestr
- The text to store in this Valuepublic Value(String name, Date dat)
name
- Sets the name of the Valuedat
- The date to store in this Valuepublic Value(String name, boolean bool)
name
- Sets the name of the Valuebool
- The boolean to store in this Valuepublic Value(String name, long l)
name
- Sets the name of the Valuel
- The integer to store in this Valuepublic Value(String name, Value v)
name
- The new name of the copied Valuev
- The value to be copiedpublic Value(String name, byte[] b)
name
- Sets the name of the Valueb
- The bytes to store in this Valuepublic Value(Value v)
v
- The Value to be copiedpublic Value(InputStream is) throws KettleFileException
is
- The InputStream to read the value from
KettleFileException
- when the Value couldn't be created by reading it from the DataInputStream.public Value(Value metaData, DataInputStream dis) throws KettleFileException
dis
- the DataInputStream to read from
KettleFileException
- when the value couldn't be read from the DataInputStreampublic Value(Node valnode)
valnode
- The XML Node to read from.Method Detail |
---|
public Object clone()
clone
in class Object
public Value Clone()
public void clearValue()
public void setName(String name)
name
- The new name of the valuepublic String getName()
public void setOrigin(String step_of_origin)
step_of_origin
- The step of origin.public String getOrigin()
public void setValue(BigDecimal num)
num
- The number value to set the value topublic void setValue(double num)
num
- The number value to set the value topublic void setValue(StringBuffer str)
str
- The StringBuffer to get the text frompublic void setValue(String str)
str
- The String to get the text frompublic void setSerializedValue(Serializable ser)
public void setValue(Date dat)
dat
- The Date to set the Value topublic void setValue(boolean bool)
bool
- The boolean to set the Value topublic void setValue(Boolean b)
public void setValue(byte b)
b
- The byte to convert to a long integer to which the Value is set.public void setValue(int i)
i
- The integer to convert to a long integer to which the Value is set.public void setValue(long l)
l
- The long integer to which the Value is set.public void setValue(byte[] b)
b
- The byte array to which the Value has to be set.public void setValue(Value v)
v
- The Value to copy the settings and value frompublic BigDecimal getBigNumber()
public double getNumber()
public String getString()
public int getStringLength()
public Date getDate()
public Serializable getSerializable()
public boolean getBoolean()
Strings: "YES", "Y", "TRUE" (case insensitive) to true, the rest false
Number: 0.0 is false, the rest is true.
Integer: 0 is false, the rest is true.
Date: always false.
public long getInteger()
String: try to convert to a long value, 0L if it didn't work.
Number: round the double value and return the resulting long integer.
Date: return the number of miliseconds after 1970:01:01 00:00:00
Date: always false.
public byte[] getBytes()
public void setType(int val_type)
val_type
- The type to which the Value will be set.public int getType()
public boolean isEmpty()
public boolean isString()
public boolean isDate()
public boolean isBigNumber()
public boolean isNumber()
public boolean isBoolean()
public boolean isSerializableType()
public boolean isBinary()
public boolean isInteger()
public boolean isNumeric()
public static final boolean isNumeric(int t)
t
- the type to check
public String toString()
toString
in class Object
public String toString(boolean pad)
pad
- true if you want to pad the resulting String
public String toStringMeta()
public void setLength(int l)
l
- the length to which you want to set the Value.public void setLength(int l, int p)
l
- the length to which you want to set the Value.p
- the precision to which you want to set this Valuepublic int getLength()
public int getPrecision()
public void setPrecision(int p)
p
- the precision to which you want to set this Value.public String getTypeDesc()
public static final String getTypeDesc(int t)
t
- the type to convert to text.
public static final int getType(String desc)
desc
- The description of the type to convert
public static final String[] getTypes()
public static final String[] getAllTypes()
public void setNull()
public void setNull(boolean n)
n
- true if you want the value to be null, false if you don't want this to be the case.public boolean isNull()
public void writeObj(DataOutputStream dos) throws IOException
IOException
public void write(OutputStream outputStream) throws KettleFileException
outputStream
- the OutputStream to write to .
KettleFileException
- if something goes wrong.public void readObj(DataInputStream dis) throws IOException
dis
-
IOException
public boolean writeData(DataOutputStream dos) throws KettleFileException
dos
- The DataOutputStream to write the data to
KettleFileException
public int compare(Value v)
v
- the value to compare with.
public int compare(Value v, boolean caseInsensitive)
v
- the value to compare with.caseInsensitive
- True if you want the comparison to be case insensitive
public boolean equals(Object v)
equals
in class Object
public boolean isEqualTo(String string)
string
- The string to check for equality
public boolean isEqualTo(BigDecimal number)
number
- The BigDecimal to check for equality
public boolean isEqualTo(double number)
number
- The Number to check for equality
public boolean isEqualTo(long number)
number
- The Integer to check for equality
public boolean isEqualTo(int number)
number
- The Integer to check for equality
public boolean isEqualTo(byte number)
number
- The Integer to check for equality
public boolean isEqualTo(Date date)
date
- The Date to check for equality
public int hashCode()
hashCode
in class Object
public Value and(Value v)
public Value xor(Value v)
public Value or(Value v)
public Value bool_and(Value v)
public Value bool_or(Value v)
public Value bool_xor(Value v)
public Value bool_not()
public Value greater_equal(Value v)
public Value smaller_equal(Value v)
public Value different(Value v)
public Value equal(Value v)
public Value like(Value v)
public Value greater(Value v)
public Value smaller(Value v)
public Value minus(BigDecimal v) throws KettleValueException
KettleValueException
public Value minus(double v) throws KettleValueException
KettleValueException
public Value minus(long v) throws KettleValueException
KettleValueException
public Value minus(int v) throws KettleValueException
KettleValueException
public Value minus(byte v) throws KettleValueException
KettleValueException
public Value minus(Value v) throws KettleValueException
KettleValueException
public Value plus(BigDecimal v)
public Value plus(double v)
public Value plus(long v)
public Value plus(int v)
public Value plus(byte v)
public Value plus(Value v)
public Value divide(BigDecimal v) throws KettleValueException
KettleValueException
public Value divide(double v) throws KettleValueException
KettleValueException
public Value divide(long v) throws KettleValueException
KettleValueException
public Value divide(int v) throws KettleValueException
KettleValueException
public Value divide(byte v) throws KettleValueException
KettleValueException
public Value divide(Value v) throws KettleValueException
KettleValueException
public Value multiply(BigDecimal v) throws KettleValueException
KettleValueException
public Value multiply(double v) throws KettleValueException
KettleValueException
public Value multiply(long v) throws KettleValueException
KettleValueException
public Value multiply(int v) throws KettleValueException
KettleValueException
public Value multiply(byte v) throws KettleValueException
KettleValueException
public Value multiply(Value v) throws KettleValueException
KettleValueException
public Value abs() throws KettleValueException
KettleValueException
public Value acos() throws KettleValueException
KettleValueException
public Value asin() throws KettleValueException
KettleValueException
public Value atan() throws KettleValueException
KettleValueException
public Value atan2(Value arg0) throws KettleValueException
KettleValueException
public Value atan2(double arg0) throws KettleValueException
KettleValueException
public Value ceil() throws KettleValueException
KettleValueException
public Value cos() throws KettleValueException
KettleValueException
public Value exp() throws KettleValueException
KettleValueException
public Value floor() throws KettleValueException
KettleValueException
public Value initcap()
public Value length() throws KettleValueException
KettleValueException
public Value log() throws KettleValueException
KettleValueException
public Value lower()
public Value lpad(Value len)
public Value lpad(Value len, Value padstr)
public Value lpad(int len)
public Value lpad(int len, String padstr)
public Value ltrim()
public Value mod(Value arg) throws KettleValueException
KettleValueException
public Value mod(BigDecimal arg) throws KettleValueException
KettleValueException
public Value mod(long arg) throws KettleValueException
KettleValueException
public Value mod(int arg) throws KettleValueException
KettleValueException
public Value mod(byte arg) throws KettleValueException
KettleValueException
public Value mod(double arg0) throws KettleValueException
KettleValueException
public Value nvl(Value alt)
public Value power(BigDecimal arg) throws KettleValueException
KettleValueException
public Value power(double arg) throws KettleValueException
KettleValueException
public Value power(Value v) throws KettleValueException
KettleValueException
public Value replace(Value repl, Value with)
public Value replace(String repl, String with)
public Value round() throws KettleValueException
See also: java.lang.Math.round()
KettleValueException
public Value round(int decimalPlaces) throws KettleValueException
decimalPlaces
-
KettleValueException
- in case it's not a number (or other problem).public Value rpad(Value len)
public Value rpad(Value len, Value padstr)
public Value rpad(int len)
public Value rpad(int len, String padstr)
public Value rtrim()
public Value sign() throws KettleValueException
KettleValueException
public Value sin() throws KettleValueException
KettleValueException
public Value sqrt() throws KettleValueException
KettleValueException
public Value substr(Value from, Value to)
public Value substr(Value from)
public Value substr(int from)
public Value substr(int from, int to)
public Value rightstr(Value len)
public Value rightstr(int len)
public Value leftstr(Value len)
public Value leftstr(int len)
public Value startsWith(Value string)
public Value startsWith(String string)
public Value sysdate()
public Value tan() throws KettleValueException
KettleValueException
public Value num2str() throws KettleValueException
KettleValueException
public Value num2str(String format) throws KettleValueException
KettleValueException
public Value num2str(String format, String decimalSymbol) throws KettleValueException
KettleValueException
public Value num2str(String format, String decimalSymbol, String groupingSymbol) throws KettleValueException
KettleValueException
public Value num2str(String format, String decimalSymbol, String groupingSymbol, String currencySymbol) throws KettleValueException
KettleValueException
public Value dat2str() throws KettleValueException
KettleValueException
public Value dat2str(String arg0) throws KettleValueException
KettleValueException
public Value dat2str(String arg0, String arg1) throws KettleValueException
KettleValueException
public Value num2dat() throws KettleValueException
KettleValueException
public Value str2dat(String arg0) throws KettleValueException
KettleValueException
public Value str2dat(String arg0, String arg1) throws KettleValueException
KettleValueException
public Value str2num() throws KettleValueException
KettleValueException
public Value str2num(String pattern) throws KettleValueException
KettleValueException
public Value str2num(String pattern, String decimal) throws KettleValueException
KettleValueException
public Value str2num(String pattern, String decimal, String grouping) throws KettleValueException
KettleValueException
public Value str2num(String pattern, String decimal, String grouping, String currency) throws KettleValueException
KettleValueException
public Value dat2num() throws KettleValueException
KettleValueException
public Value trim()
public Value upper()
public Value e()
public Value pi()
public Value v_decode(Value[] args) throws KettleValueException
KettleValueException
public Value v_if(Value[] args) throws KettleValueException
KettleValueException
public Value add_months(int months) throws KettleValueException
KettleValueException
public Value add_days(long days) throws KettleValueException
days
- The number of days to add to the current date value
KettleValueException
public Value last_day() throws KettleValueException
KettleValueException
public Value first_day() throws KettleValueException
KettleValueException
public Value trunc() throws KettleValueException
KettleValueException
public Value trunc(double level) throws KettleValueException
KettleValueException
public Value trunc(int level) throws KettleValueException
KettleValueException
public Value byteToHexEncode()
KettleValueException
public Value hexToByteDecode() throws KettleValueException
KettleValueException
public Value charToHexEncode()
KettleValueException
public Value hexToCharDecode() throws KettleValueException
KettleValueException
public static final Value getInstance()
public String getClassName()
public void jsConstructor()
public void jsConstructor(String name)
public void jsConstructor(String name, String value)
public String getXML()
getXML
in interface XMLInterface
public boolean loadXML(Node valnode)
valnode
- The XML Node to read from
public void convertString(int newtype) throws KettleValueException
newtype
- The Value type to convert to.
KettleValueException
public boolean equalValueType(Value v)
public boolean equalValueType(Value v, boolean checkTypeOnly)
v
- Value to compare type against.
public ValueInterface getValueInterface()
public void setValueInterface(ValueInterface valueInterface)
public void merge(Value other)
null
or empty
other
- The other value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |