public interface Cast
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
castTo(PageContext pc,
short type,
java.lang.Object o)
cast a value to a value defined by type argument
|
java.lang.Object |
castTo(PageContext pc,
short type,
java.lang.String strType,
java.lang.Object o)
cast a value to a value defined by type argument
|
java.lang.Object |
castTo(PageContext pc,
java.lang.String type,
java.lang.Object o)
cast a value to a value defined by type argument
|
java.lang.Object |
castTo(PageContext pc,
java.lang.String type,
java.lang.Object o,
boolean alsoPattern)
cast a value to a value defined by type argument
|
java.lang.Object |
to(java.lang.String type,
java.lang.Object o,
boolean alsoPattern)
cast to given type
|
Array |
toArray(java.lang.Object obj)
cast a Object to a Array Object
|
Array |
toArray(java.lang.Object obj,
Array defaultValue)
cast a Object to a Array Object
|
java.lang.String |
toBase64(java.lang.Object o)
cast a Object to a Base64 value
|
java.lang.String |
toBase64(java.lang.Object o,
java.lang.String defaultValue)
cast a Object to a Base64 value
|
byte[] |
toBinary(java.lang.Object obj)
cast a Object to a Binary
|
byte[] |
toBinary(java.lang.Object obj,
byte[] defaultValue)
cast a Object to a Binary
|
java.lang.Boolean |
toBoolean(boolean b)
cast a boolean value to a Boolean Object(reference type)
|
java.lang.Boolean |
toBoolean(char c)
cast a char value to a Boolean Object(reference type)
|
java.lang.Boolean |
toBoolean(double d)
cast a double value to a Boolean Object(reference type)
|
java.lang.Boolean |
toBoolean(java.lang.Object o)
cast a Object to a Boolean Object(reference type)
|
java.lang.Boolean |
toBoolean(java.lang.Object o,
java.lang.Boolean defaultValue)
cast a Object to a boolean value (refrence type), Exception Less
|
java.lang.Boolean |
toBoolean(java.lang.String str)
cast a Object to a Boolean Object(reference type)
|
java.lang.Boolean |
toBoolean(java.lang.String str,
java.lang.Boolean defaultValue)
cast a Object to a boolean value (refrence type), Exception Less
|
boolean |
toBooleanValue(boolean b)
cast a boolean value to a boolean value (do nothing)
|
boolean |
toBooleanValue(char c)
cast a double value to a boolean value (primitive value type)
|
boolean |
toBooleanValue(double d)
cast a double value to a boolean value (primitive value type)
|
boolean |
toBooleanValue(java.lang.Object o)
cast a Object to a boolean value (primitive value type)
|
boolean |
toBooleanValue(java.lang.Object o,
boolean defaultValue)
cast a Object to a boolean value (primitive value type), Exception Less
|
boolean |
toBooleanValue(java.lang.String str)
cast a String to a boolean value (primitive value type)
|
boolean |
toBooleanValue(java.lang.String str,
boolean defaultValue)
cast a String to a boolean value (primitive value type), return 1 for true, 0 for false and -1 if can't cast to a boolean type
|
java.lang.Byte |
toByte(boolean b)
cast a boolean value to a Byte Object(reference type)
|
java.lang.Byte |
toByte(char c)
cast a char value to a Byte Object(reference type)
|
java.lang.Byte |
toByte(double d)
cast a double value to a Byte Object(reference type)
|
java.lang.Byte |
toByte(java.lang.Object o)
cast a Object to a Byte Object(reference type)
|
java.lang.Byte |
toByte(java.lang.Object o,
java.lang.Byte defaultValue)
cast a Object to a Byte Object(reference type)
|
byte |
toByteValue(boolean b)
cast a boolean value to a byte value
|
byte |
toByteValue(char c)
cast a char value to a byte value (do nothing)
|
byte |
toByteValue(double d)
cast a double value to a byte value (primitive value type)
|
byte |
toByteValue(java.lang.Object o)
cast a Object to a byte value (primitive value type)
|
byte |
toByteValue(java.lang.Object o,
byte defaultValue)
cast a Object to a byte value (primitive value type)
|
java.lang.Character |
toCharacter(boolean b)
cast a boolean value to a Character Object(reference type)
|
java.lang.Character |
toCharacter(char c)
cast a char value to a Character Object(reference type)
|
java.lang.Character |
toCharacter(double d)
cast a double value to a Character Object(reference type)
|
java.lang.Character |
toCharacter(java.lang.Object o)
cast a Object to a Character Object(reference type)
|
java.lang.Character |
toCharacter(java.lang.Object o,
java.lang.Character defaultValue)
cast a Object to a Character Object(reference type)
|
char |
toCharValue(boolean b)
cast a boolean value to a char value
|
char |
toCharValue(char c)
cast a char value to a char value (do nothing)
|
char |
toCharValue(double d)
cast a double value to a char value (primitive value type)
|
char |
toCharValue(java.lang.Object o)
cast a Object to a char value (primitive value type)
|
char |
toCharValue(java.lang.Object o,
char defaultValue)
cast a Object to a char value (primitive value type)
|
Collection |
toCollection(java.lang.Object o)
cast a Object to a Collection
|
Collection |
toCollection(java.lang.Object o,
Collection defaultValue)
cast a Object to a Collection, if not returns null
|
java.awt.Color |
toColor(java.lang.Object o)
cast to a color object
|
DateTime |
toDate(boolean b,
java.util.TimeZone tz)
cast a boolean to a DateTime Object
|
DateTime |
toDate(char c,
java.util.TimeZone tz)
cast a char to a DateTime Object
|
DateTime |
toDate(double d,
java.util.TimeZone tz)
cast a double to a DateTime Object
|
DateTime |
toDate(java.util.Locale locale,
java.lang.String str,
java.util.TimeZone tz)
parse a string to a Datetime Object
|
DateTime |
toDate(java.util.Locale locale,
java.lang.String str,
java.util.TimeZone tz,
DateTime defaultValue)
parse a string to a Datetime Object, returns null if can't convert
|
DateTime |
toDate(java.lang.Object o,
boolean alsoNumbers,
java.util.TimeZone tz,
DateTime defaultValue)
cast a Object to a DateTime Object
|
DateTime |
toDate(java.lang.Object o,
java.util.TimeZone tz)
cast a Object to a DateTime Object
|
DateTime |
toDate(java.lang.String str,
boolean alsoNumbers,
java.util.TimeZone tz,
DateTime defaultValue)
cast a Object to a DateTime Object
|
DateTime |
toDate(java.lang.String str,
java.util.TimeZone tz)
cast a Object to a DateTime Object
|
DateTime |
toDatetime(java.lang.Object o,
java.util.TimeZone tz)
cast a Object to a DateTime Object (alias for toDateTime)
|
DateTime |
toDateTime(java.lang.Object o,
java.util.TimeZone tz)
cast a Object to a DateTime Object
|
java.lang.String |
toDecimal(boolean b)
cast a boolean to a decimal value (String:xx.xx)
|
java.lang.String |
toDecimal(char c)
cast a char to a decimal value (String:xx.xx)
|
java.lang.String |
toDecimal(double d)
cast a double to a decimal value (String:xx.xx)
|
java.lang.String |
toDecimal(java.lang.Object value)
cast a double to a decimal value (String:xx.xx)
|
java.lang.String |
toDecimal(java.lang.Object value,
java.lang.String defaultValue)
cast a double to a decimal value (String:xx.xx)
|
java.lang.Double |
toDouble(boolean b)
cast a boolean value to a Double Object (reference Type)
|
java.lang.Double |
toDouble(char c)
cast a char value to a Double Object (reference Type)
|
java.lang.Double |
toDouble(double d)
cast a double value to a Double Object (reference Type)
|
java.lang.Double |
toDouble(java.lang.Object o)
cast a Object to a Double Object (reference Type)
|
java.lang.Double |
toDouble(java.lang.Object o,
java.lang.Double defaultValue)
cast a Object to a Double Object (reference Type)
|
java.lang.Double |
toDouble(java.lang.String str)
cast a String to a Double Object (reference Type)
|
java.lang.Double |
toDouble(java.lang.String str,
java.lang.Double defaultValue)
cast a String to a Double Object (reference Type)
|
double |
toDoubleValue(boolean b)
cast a boolean value to a double value (primitive value type)
|
double |
toDoubleValue(char c)
cast a char value to a double value (primitive value type)
|
double |
toDoubleValue(double d)
cast a double value to a double value (do nothing)
|
double |
toDoubleValue(java.lang.Object o)
cast a Object to a double value (primitive value Type)
|
double |
toDoubleValue(java.lang.Object o,
double defaultValue)
cast a Object to a double value (primitive value Type)
|
double |
toDoubleValue(java.lang.String str)
cast a Object to a double value (primitive value Type)
|
double |
toDoubleValue(java.lang.String str,
double defaultValue)
cast a Object to a double value (primitive value Type), if can't return Double.NaN
|
java.io.File |
toFile(java.lang.Object obj)
convert a object to a File
|
java.io.File |
toFile(java.lang.Object obj,
java.io.File defaultValue)
convert a object to a File
|
java.lang.Integer |
toInteger(boolean b)
casts a boolean to a Integer
|
java.lang.Integer |
toInteger(char c)
casts a char to a Integer
|
java.lang.Integer |
toInteger(double d)
casts a double to a Integer
|
java.lang.Integer |
toInteger(java.lang.Object o)
casts a Object to a Integer
|
java.lang.Integer |
toInteger(java.lang.Object o,
java.lang.Integer defaultValue)
casts a Object to a Integer
|
int |
toIntValue(boolean b)
cast a boolean value to a int value (primitive value type)
|
int |
toIntValue(char c)
cast a char value to a int value (primitive value type)
|
int |
toIntValue(double d)
cast a double value to a int value (primitive value type)
|
int |
toIntValue(java.lang.Object o)
cast a Object to a int value (primitive value type)
|
int |
toIntValue(java.lang.Object o,
int defaultValue)
cast a Object to a int value (primitive value type)
|
int |
toIntValue(java.lang.String str)
cast a String to a int value (primitive value type)
|
int |
toIntValue(java.lang.String str,
int defaultValue)
cast a Object to a double value (primitive value Type), if can't return Integer.MIN_VALUE
|
java.util.Iterator |
toIterator(java.lang.Object o)
cast a Object to a Iterator or get Iterator from Object
|
Collection.Key |
toKey(java.lang.Object o) |
Collection.Key |
toKey(java.lang.Object o,
Collection.Key defaultValue) |
java.util.List |
toList(java.lang.Object o)
cast a Object to a Array Object
|
java.util.List |
toList(java.lang.Object o,
boolean duplicate)
cast a Object to a Array Object
|
java.util.List |
toList(java.lang.Object o,
boolean duplicate,
java.util.List defaultValue)
cast a Object to a Array Object
|
java.util.List |
toList(java.lang.Object o,
java.util.List defaultValue)
cast a Object to a Array Object
|
java.util.Locale |
toLocale(java.lang.String strLocale)
casts a string to a Locale
|
java.util.Locale |
toLocale(java.lang.String strLocale,
java.util.Locale defaultValue)
casts a string to a Locale
|
java.lang.Long |
toLong(boolean b)
cast a boolean value to a Long Object(reference type)
|
java.lang.Long |
toLong(char c)
cast a char value to a Long Object(reference type)
|
java.lang.Long |
toLong(double d)
cast a double value to a Long Object(reference type)
|
java.lang.Long |
toLong(java.lang.Object o)
cast a Object to a Long Object(reference type)
|
java.lang.Long |
toLong(java.lang.Object o,
java.lang.Long defaultValue)
cast a Object to a Long Object(reference type)
|
long |
toLongValue(boolean b)
cast a boolean value to a long value
|
long |
toLongValue(char c)
cast a char value to a long value (do nothing)
|
long |
toLongValue(double d)
cast a double value to a long value (primitive value type)
|
long |
toLongValue(java.lang.Object o)
cast a Object to a long value (primitive value type)
|
long |
toLongValue(java.lang.Object o,
long defaultValue)
cast a Object to a long value (primitive value type)
|
java.util.Map |
toMap(java.lang.Object o)
cast a Object to a Map Object
|
java.util.Map |
toMap(java.lang.Object o,
boolean duplicate)
cast a Object to a Map Object
|
java.util.Map |
toMap(java.lang.Object o,
boolean duplicate,
java.util.Map defaultValue)
cast a Object to a Map Object
|
java.util.Map |
toMap(java.lang.Object o,
java.util.Map defaultValue)
cast a Object to a Map Object
|
org.w3c.dom.Node |
toNode(java.lang.Object o)
casts a Object to a XML Node
|
org.w3c.dom.Node |
toNode(java.lang.Object o,
org.w3c.dom.Node defaultValue)
casts a Object to a XML Node
|
org.w3c.dom.NodeList |
toNodeList(java.lang.Object o)
casts a Object to a Node List
|
org.w3c.dom.NodeList |
toNodeList(java.lang.Object o,
org.w3c.dom.NodeList defaultValue)
casts a Object to a Node List
|
java.lang.Object |
toNull(java.lang.Object value)
casts a Object to null
|
java.lang.Object |
toNull(java.lang.Object value,
java.lang.Object defaultValue)
casts a Object to null
|
PageException |
toPageException(java.lang.Throwable t)
cast a Throwable Object to a PageException Object
|
Query |
toQuery(java.lang.Object o)
cast a Object to a Query Object
|
Query |
toQuery(java.lang.Object o,
boolean duplicate)
cast a Object to a Query Object
|
Query |
toQuery(java.lang.Object o,
boolean duplicate,
Query defaultValue)
cast a Object to a Query Object
|
Query |
toQuery(java.lang.Object o,
Query defaultValue)
cast a Object to a Query Object
|
java.lang.Boolean |
toRef(boolean b)
cast a boolean value to his (CFML) reference type Boolean
|
java.lang.Byte |
toRef(byte b)
cast a byte value to his (CFML) reference type Boolean
|
java.lang.String |
toRef(char c)
cast a char value to his (CFML) reference type String
|
Collection |
toRef(Collection o)
cast a Collection to a reference type (Object), in that case this method to nothing, because a Collection is already a reference type
|
java.lang.Double |
toRef(double d)
cast a double value to his (CFML) reference type Double
|
java.lang.Float |
toRef(float f)
cast a float value to his (CFML) reference type Float
|
java.lang.Integer |
toRef(int i)
cast a int value to his (CFML) reference type Integer
|
java.lang.Long |
toRef(long l)
cast a long value to his (CFML) reference type Long
|
java.lang.Object |
toRef(java.lang.Object o)
cast a Object to a reference type (Object), in that case this method to nothing, because a Object is already a reference type
|
java.lang.Short |
toRef(short s)
cast a short value to his (CFML) reference type Integer
|
java.lang.String |
toRef(java.lang.String o)
cast a String to a reference type (Object), in that case this method to nothing, because a String is already a reference type
|
Resource |
toResource(java.lang.Object obj)
convert a object to a Resource
|
Resource |
toResource(java.lang.Object obj,
Resource defaultValue)
convert a object to a Resource
|
java.io.Serializable |
toSerializable(java.lang.Object obj)
cast Object to a Serializable Object
|
java.io.Serializable |
toSerializable(java.lang.Object object,
java.io.Serializable defaultValue)
cast Object to a Serializable Object
|
java.lang.Short |
toShort(boolean b)
cast a boolean value to a Short Object(reference type)
|
java.lang.Short |
toShort(char c)
cast a char value to a Short Object(reference type)
|
java.lang.Short |
toShort(double d)
cast a double value to a Byte Object(reference type)
|
java.lang.Short |
toShort(java.lang.Object o)
cast a Object to a Short Object(reference type)
|
java.lang.Short |
toShort(java.lang.Object o,
java.lang.Short defaultValue)
cast a Object to a Short Object(reference type)
|
short |
toShortValue(boolean b)
cast a boolean value to a short value
|
short |
toShortValue(char c)
cast a char value to a short value (do nothing)
|
short |
toShortValue(double d)
cast a double value to a short value (primitive value type)
|
short |
toShortValue(java.lang.Object o)
cast a Object to a short value (primitive value type)
|
short |
toShortValue(java.lang.Object o,
short defaultValue)
cast a Object to a short value (primitive value type)
|
java.lang.String |
toString(boolean b)
cast a boolean value to a String
|
java.lang.String |
toString(double d)
cast a double value to a String
|
java.lang.String |
toString(int i)
cast a int value to a String
|
java.lang.String |
toString(long l)
cast a long value to a String
|
java.lang.String |
toString(java.lang.Object o)
cast a Object to a String
|
java.lang.String |
toString(java.lang.Object o,
java.lang.String defaultValue)
cast a Object to a String dont throw a exception, if can't cast to a string return a empty string
|
Struct |
toStruct(java.lang.Object o)
cast a Object to a Struct Object
|
Struct |
toStruct(java.lang.Object o,
Struct defaultValue)
cast a Object to a Struct Object
|
Struct |
toStruct(java.lang.Object o,
Struct defaultValue,
boolean caseSensitive) |
TimeSpan |
toTimespan(java.lang.Object o)
cast a Object to a TimeSpan Object (alias for toTimeSpan)
|
TimeSpan |
toTimespan(java.lang.Object o,
TimeSpan defaultValue)
cast a Object to a TimeSpan Object (alias for toTimeSpan)
|
java.lang.String |
toTypeName(java.lang.Object o)
return the type name of a object (string, boolean, int aso.), type is not same like class name
|
java.lang.Object |
toUUId(java.lang.Object o)
cast a Object to a UUID
|
java.lang.Object |
toUUId(java.lang.Object o,
java.lang.Object defaultValue)
cast a Object to a UUID
|
java.lang.Object |
toVariableName(java.lang.Object o)
cast a Object to a Variable Name
|
java.lang.Object |
toVariableName(java.lang.Object obj,
java.lang.Object defaultValue)
cast a Object to a Variable Name
|
java.lang.Object |
toVoid(java.lang.Object o)
cast a value to void (Empty String)
|
java.lang.Object |
toVoid(java.lang.Object o,
java.lang.Object defaultValue)
cast a value to void (Empty String)
|
org.w3c.dom.Node |
toXML(java.lang.Object value)
cast Object to a XML Node
|
org.w3c.dom.Node |
toXML(java.lang.Object value,
org.w3c.dom.Node defaultValue)
cast Object to a XML Node
|
boolean toBooleanValue(boolean b)
b
- boolean value to castboolean toBooleanValue(double d)
d
- double value to castboolean toBooleanValue(char c)
c
- char value to castboolean toBooleanValue(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.Double toDouble(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.Double toDouble(java.lang.Object o, java.lang.Double defaultValue)
o
- Object to castdefaultValue
- java.lang.Double toDouble(java.lang.String str) throws PageException
str
- String to castPageException
java.lang.Double toDouble(java.lang.String str, java.lang.Double defaultValue)
str
- String to castdefaultValue
- java.lang.Double toDouble(double d)
d
- double value to castjava.lang.Double toDouble(boolean b)
b
- boolean value to castjava.lang.Double toDouble(char c)
c
- char value to castdouble toDoubleValue(java.lang.Object o) throws PageException
o
- Object to castPageException
double toDoubleValue(java.lang.String str) throws PageException
str
- String to castPageException
double toDoubleValue(java.lang.Object o, double defaultValue)
o
- Object to castdefaultValue
- if can't cast return this valuedouble toDoubleValue(java.lang.String str, double defaultValue)
str
- String to castdefaultValue
- if can't cast return this valuedouble toDoubleValue(double d)
d
- double value to castdouble toDoubleValue(boolean b)
b
- boolean value to castdouble toDoubleValue(char c)
c
- char value to castint toIntValue(java.lang.Object o) throws PageException
o
- Object to castPageException
int toIntValue(java.lang.Object o, int defaultValue)
o
- Object to castdefaultValue
- int toIntValue(java.lang.String str) throws PageException
str
- String to castPageException
int toIntValue(java.lang.String str, int defaultValue)
str
- String to castdefaultValue
- int toIntValue(double d)
d
- double value to castint toIntValue(boolean b)
b
- boolean value to castint toIntValue(char c)
c
- char value to castjava.lang.String toDecimal(java.lang.Object value) throws PageException
value
- Object to castPageException
java.lang.String toDecimal(java.lang.Object value, java.lang.String defaultValue)
value
- Object to castdefaultValue
- java.lang.String toDecimal(char c)
c
- char to castjava.lang.String toDecimal(boolean b)
b
- boolean to castjava.lang.String toDecimal(double d)
d
- double to castjava.lang.Boolean toBoolean(boolean b)
b
- boolean value to castjava.lang.Boolean toBoolean(char c)
c
- char value to castjava.lang.Boolean toBoolean(double d)
d
- double value to castjava.lang.Boolean toBoolean(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.Boolean toBoolean(java.lang.String str) throws PageException
str
- String to castPageException
boolean toBooleanValue(java.lang.Object o, boolean defaultValue)
o
- Object to castdefaultValue
- java.lang.Boolean toBoolean(java.lang.Object o, java.lang.Boolean defaultValue)
o
- Object to castdefaultValue
- default valuejava.lang.Boolean toBoolean(java.lang.String str, java.lang.Boolean defaultValue)
str
- String to castdefaultValue
- default valuechar toCharValue(boolean b)
b
- boolean value to castchar toCharValue(double d)
d
- double value to castchar toCharValue(char c)
c
- char value to castchar toCharValue(java.lang.Object o) throws PageException
o
- Object to castPageException
char toCharValue(java.lang.Object o, char defaultValue)
o
- Object to castdefaultValue
- java.lang.Character toCharacter(boolean b)
b
- boolean value to castjava.lang.Character toCharacter(char c)
c
- char value to castjava.lang.Character toCharacter(double d)
d
- double value to castjava.lang.Character toCharacter(java.lang.Object o, java.lang.Character defaultValue)
o
- Object to castdefaultValue
- java.lang.Character toCharacter(java.lang.Object o) throws PageException
o
- Object to castPageException
byte toByteValue(boolean b)
b
- boolean value to castbyte toByteValue(double d)
d
- double value to castbyte toByteValue(char c)
c
- char value to castbyte toByteValue(java.lang.Object o) throws PageException
o
- Object to castPageException
byte toByteValue(java.lang.Object o, byte defaultValue)
o
- Object to castdefaultValue
- java.lang.Byte toByte(boolean b)
b
- boolean value to castjava.lang.Byte toByte(char c)
c
- char value to castjava.lang.Byte toByte(double d)
d
- double value to castjava.lang.Byte toByte(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.Byte toByte(java.lang.Object o, java.lang.Byte defaultValue)
o
- Object to castdefaultValue
- long toLongValue(boolean b)
b
- boolean value to castlong toLongValue(double d)
d
- double value to castlong toLongValue(char c)
c
- char value to castlong toLongValue(java.lang.Object o) throws PageException
o
- Object to castPageException
long toLongValue(java.lang.Object o, long defaultValue)
o
- Object to castdefaultValue
- java.lang.Long toLong(boolean b)
b
- boolean value to castjava.lang.Long toLong(char c)
c
- char value to castjava.lang.Long toLong(double d)
d
- double value to castjava.lang.Long toLong(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.Long toLong(java.lang.Object o, java.lang.Long defaultValue)
o
- Object to castdefaultValue
- Collection.Key toKey(java.lang.Object o) throws PageException
PageException
Collection.Key toKey(java.lang.Object o, Collection.Key defaultValue)
short toShortValue(boolean b)
b
- boolean value to castshort toShortValue(double d)
d
- double value to castshort toShortValue(char c)
c
- char value to castshort toShortValue(java.lang.Object o) throws PageException
o
- Object to castPageException
short toShortValue(java.lang.Object o, short defaultValue)
o
- Object to castdefaultValue
- java.lang.Short toShort(boolean b)
b
- boolean value to castjava.lang.Short toShort(char c)
c
- char value to castjava.lang.Short toShort(double d)
d
- double value to castjava.lang.Short toShort(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.Short toShort(java.lang.Object o, java.lang.Short defaultValue)
o
- Object to castdefaultValue
- boolean toBooleanValue(java.lang.String str) throws PageException
str
- String to castPageException
boolean toBooleanValue(java.lang.String str, boolean defaultValue)
str
- String to castdefaultValue
- java.lang.String toString(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.String toString(java.lang.Object o, java.lang.String defaultValue)
o
- Object to castdefaultValue
- java.lang.String toString(double d)
d
- double value to castjava.lang.String toString(long l)
l
- long value to castjava.lang.String toString(int i)
i
- int value to castjava.lang.String toString(boolean b)
b
- boolean value to castjava.util.List toList(java.lang.Object o) throws PageException
o
- Object to castPageException
java.util.List toList(java.lang.Object o, java.util.List defaultValue)
o
- Object to castdefaultValue
- java.util.List toList(java.lang.Object o, boolean duplicate) throws PageException
o
- Object to castduplicate
- PageException
java.util.List toList(java.lang.Object o, boolean duplicate, java.util.List defaultValue)
o
- Object to castduplicate
- defaultValue
- Array toArray(java.lang.Object obj) throws PageException
obj
- Object to castPageException
Array toArray(java.lang.Object obj, Array defaultValue)
obj
- Object to castdefaultValue
- java.util.Map toMap(java.lang.Object o) throws PageException
o
- Object to castPageException
java.util.Map toMap(java.lang.Object o, java.util.Map defaultValue)
o
- Object to castdefaultValue
- java.util.Map toMap(java.lang.Object o, boolean duplicate) throws PageException
o
- Object to castduplicate
- PageException
java.util.Map toMap(java.lang.Object o, boolean duplicate, java.util.Map defaultValue)
o
- Object to castduplicate
- defaultValue
- Struct toStruct(java.lang.Object o) throws PageException
o
- Object to castPageException
Struct toStruct(java.lang.Object o, Struct defaultValue)
o
- Object to castdefaultValue
- byte[] toBinary(java.lang.Object obj) throws PageException
obj
- Object to castPageException
byte[] toBinary(java.lang.Object obj, byte[] defaultValue)
obj
- Object to castdefaultValue
- java.lang.String toBase64(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.String toBase64(java.lang.Object o, java.lang.String defaultValue)
o
- Object to castdefaultValue
- DateTime toDate(boolean b, java.util.TimeZone tz)
b
- boolean to casttz
- DateTime toDate(char c, java.util.TimeZone tz)
c
- char to casttz
- DateTime toDate(double d, java.util.TimeZone tz)
d
- double to casttz
- DateTime toDate(java.lang.Object o, java.util.TimeZone tz) throws PageException
o
- Object to casttz
- PageException
DateTime toDate(java.lang.String str, java.util.TimeZone tz) throws PageException
str
- String to casttz
- PageException
DateTime toDate(java.lang.Object o, boolean alsoNumbers, java.util.TimeZone tz, DateTime defaultValue)
o
- Object to castalsoNumbers
- define if also numbers will casted to a datetime valuetz
- defaultValue
- DateTime toDate(java.lang.String str, boolean alsoNumbers, java.util.TimeZone tz, DateTime defaultValue)
str
- String to castalsoNumbers
- define if also numbers will casted to a datetime valuetz
- defaultValue
- DateTime toDateTime(java.lang.Object o, java.util.TimeZone tz) throws PageException
o
- Object to casttz
- PageException
DateTime toDatetime(java.lang.Object o, java.util.TimeZone tz) throws PageException
o
- Object to casttz
- PageException
DateTime toDate(java.util.Locale locale, java.lang.String str, java.util.TimeZone tz) throws PageException
locale
- str
- String representation of a locale Datetz
- PageException
DateTime toDate(java.util.Locale locale, java.lang.String str, java.util.TimeZone tz, DateTime defaultValue)
locale
- str
- String representation of a locale Datetz
- defaultValue
- Query toQuery(java.lang.Object o) throws PageException
o
- Object to castPageException
Query toQuery(java.lang.Object o, Query defaultValue)
o
- Object to castdefaultValue
- Query toQuery(java.lang.Object o, boolean duplicate) throws PageException
o
- Object to castduplicate
- duplicate the object or notPageException
Query toQuery(java.lang.Object o, boolean duplicate, Query defaultValue)
o
- Object to castduplicate
- duplicate the object or notdefaultValue
- java.lang.Object toUUId(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.Object toUUId(java.lang.Object o, java.lang.Object defaultValue)
o
- Object to castdefaultValue
- java.lang.Object toVariableName(java.lang.Object o) throws PageException
o
- Object to castPageException
java.lang.Object toVariableName(java.lang.Object obj, java.lang.Object defaultValue)
obj
- Object to castdefaultValue
- TimeSpan toTimespan(java.lang.Object o) throws PageException
o
- Object to castPageException
TimeSpan toTimespan(java.lang.Object o, TimeSpan defaultValue)
o
- Object to castdefaultValue
- PageException toPageException(java.lang.Throwable t)
t
- Throwable to castjava.lang.String toTypeName(java.lang.Object o)
o
- Object to get type fromjava.lang.Object castTo(PageContext pc, java.lang.String type, java.lang.Object o) throws PageException
pc
- type
- type of the returning Valueo
- Object to castPageException
java.lang.Object castTo(PageContext pc, java.lang.String type, java.lang.Object o, boolean alsoPattern) throws PageException
pc
- type
- type of the returning Valueo
- Object to castalsoPattern
- mean supporting also none real types like email or creditcard ...PageException
java.lang.Object castTo(PageContext pc, short type, java.lang.String strType, java.lang.Object o) throws PageException
pc
- type
- type of the returning Value (Example: Cast.TYPE_QUERY)strType
- type as Stringo
- Object to castPageException
java.lang.Object castTo(PageContext pc, short type, java.lang.Object o) throws PageException
pc
- type
- type of the returning Value (Example: Cast.TYPE_QUERY)o
- Object to castPageException
java.lang.Object toVoid(java.lang.Object o) throws PageException
o
- PageException
java.lang.Object toVoid(java.lang.Object o, java.lang.Object defaultValue)
o
- defaultValue
- java.lang.Object toRef(java.lang.Object o)
o
- Object to castjava.lang.String toRef(java.lang.String o)
o
- Object to castCollection toRef(Collection o)
o
- Collection to castjava.lang.String toRef(char c)
c
- char to castjava.lang.Boolean toRef(boolean b)
b
- boolean to castjava.lang.Byte toRef(byte b)
b
- byte to castjava.lang.Short toRef(short s)
s
- short to castjava.lang.Integer toRef(int i)
i
- int to castjava.lang.Float toRef(float f)
f
- float to castjava.lang.Long toRef(long l)
l
- long to castjava.lang.Double toRef(double d)
d
- doble to castjava.util.Iterator toIterator(java.lang.Object o) throws PageException
o
- Object to castPageException
Collection toCollection(java.lang.Object o) throws PageException
o
- Object to castPageException
java.awt.Color toColor(java.lang.Object o) throws PageException
o
- Object to castPageException
Collection toCollection(java.lang.Object o, Collection defaultValue)
o
- Object to castdefaultValue
- Resource toResource(java.lang.Object obj) throws PageException
obj
- PageException
Resource toResource(java.lang.Object obj, Resource defaultValue)
obj
- defaultValue
- java.io.File toFile(java.lang.Object obj) throws PageException
obj
- PageException
java.io.File toFile(java.lang.Object obj, java.io.File defaultValue)
obj
- defaultValue
- java.util.Locale toLocale(java.lang.String strLocale) throws PageException
strLocale
- PageException
java.util.Locale toLocale(java.lang.String strLocale, java.util.Locale defaultValue)
strLocale
- defaultValue
- org.w3c.dom.NodeList toNodeList(java.lang.Object o) throws PageException
o
- Object to CastPageException
org.w3c.dom.NodeList toNodeList(java.lang.Object o, org.w3c.dom.NodeList defaultValue)
o
- Object to CastdefaultValue
- org.w3c.dom.Node toNode(java.lang.Object o) throws PageException
o
- Object to CastPageException
org.w3c.dom.Node toNode(java.lang.Object o, org.w3c.dom.Node defaultValue)
o
- Object to CastdefaultValue
- java.lang.Integer toInteger(boolean b)
b
- java.lang.Integer toInteger(char c)
c
- java.lang.Integer toInteger(double d)
d
- java.lang.Integer toInteger(java.lang.Object o) throws PageException
o
- Object to cast to IntegerPageException
java.lang.Integer toInteger(java.lang.Object o, java.lang.Integer defaultValue)
o
- Object to cast to IntegerdefaultValue
- java.lang.Object toNull(java.lang.Object value) throws PageException
value
- PageException
java.lang.Object toNull(java.lang.Object value, java.lang.Object defaultValue)
value
- defaultValue
- org.w3c.dom.Node toXML(java.lang.Object value) throws PageException
value
- PageException
org.w3c.dom.Node toXML(java.lang.Object value, org.w3c.dom.Node defaultValue)
value
- defaultValue
- java.lang.Object to(java.lang.String type, java.lang.Object o, boolean alsoPattern) throws PageException
type
- o
- alsoPattern
- PageException
java.io.Serializable toSerializable(java.lang.Object obj) throws PageException
obj
- PageException
java.io.Serializable toSerializable(java.lang.Object object, java.io.Serializable defaultValue)
object
- defaultValue
-