Modifier and Type | Method and Description |
---|---|
Object |
castTo(PageContext pc,
short type,
Object o)
cast a value to a value defined by type argument
|
Object |
castTo(PageContext pc,
short type,
String strType,
Object o)
cast a value to a value defined by type argument
|
Object |
castTo(PageContext pc,
String type,
Object o)
cast a value to a value defined by type argument
|
Object |
castTo(PageContext pc,
String type,
Object o,
boolean alsoPattern)
cast a value to a value defined by type argument
|
Object |
to(String type,
Object o,
boolean alsoPattern)
cast to given type
|
Array |
toArray(Object obj)
cast a Object to a Array Object
|
Array |
toArray(Object obj,
Array defaultValue)
cast a Object to a Array Object
|
String |
toBase64(Object o)
cast a Object to a Base64 value
|
String |
toBase64(Object o,
String defaultValue)
cast a Object to a Base64 value
|
byte[] |
toBinary(Object obj)
cast a Object to a Binary
|
byte[] |
toBinary(Object obj,
byte[] defaultValue)
cast a Object to a Binary
|
Boolean |
toBoolean(boolean b)
cast a boolean value to a Boolean Object(reference type)
|
Boolean |
toBoolean(char c)
cast a char value to a Boolean Object(reference type)
|
Boolean |
toBoolean(double d)
cast a double value to a Boolean Object(reference type)
|
Boolean |
toBoolean(Object o)
cast a Object to a Boolean Object(reference type)
|
Boolean |
toBoolean(Object o,
Boolean defaultValue)
cast a Object to a boolean value (refrence type), Exception Less
|
Boolean |
toBoolean(String str)
cast a Object to a Boolean Object(reference type)
|
Boolean |
toBoolean(String str,
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(Object o)
cast a Object to a boolean value (primitive value type)
|
boolean |
toBooleanValue(Object o,
boolean defaultValue)
cast a Object to a boolean value (primitive value type), Exception Less
|
boolean |
toBooleanValue(String str)
cast a String to a boolean value (primitive value type)
|
boolean |
toBooleanValue(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
|
Byte |
toByte(boolean b)
cast a boolean value to a Byte Object(reference type)
|
Byte |
toByte(char c)
cast a char value to a Byte Object(reference type)
|
Byte |
toByte(double d)
cast a double value to a Byte Object(reference type)
|
Byte |
toByte(Object o)
cast a Object to a Byte Object(reference type)
|
Byte |
toByte(Object o,
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(Object o)
cast a Object to a byte value (primitive value type)
|
byte |
toByteValue(Object o,
byte defaultValue)
cast a Object to a byte value (primitive value type)
|
Character |
toCharacter(boolean b)
cast a boolean value to a Character Object(reference type)
|
Character |
toCharacter(char c)
cast a char value to a Character Object(reference type)
|
Character |
toCharacter(double d)
cast a double value to a Character Object(reference type)
|
Character |
toCharacter(Object o)
cast a Object to a Character Object(reference type)
|
Character |
toCharacter(Object o,
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(Object o)
cast a Object to a char value (primitive value type)
|
char |
toCharValue(Object o,
char defaultValue)
cast a Object to a char value (primitive value type)
|
Collection |
toCollection(Object o)
cast a Object to a Collection
|
Collection |
toCollection(Object o,
Collection defaultValue)
cast a Object to a Collection, if not returns null
|
Color |
toColor(Object o)
cast to a color object
|
DateTime |
toDate(boolean b,
TimeZone tz)
cast a boolean to a DateTime Object
|
DateTime |
toDate(char c,
TimeZone tz)
cast a char to a DateTime Object
|
DateTime |
toDate(double d,
TimeZone tz)
cast a double to a DateTime Object
|
DateTime |
toDate(Locale locale,
String str,
TimeZone tz)
parse a string to a Datetime Object
|
DateTime |
toDate(Locale locale,
String str,
TimeZone tz,
DateTime defaultValue)
parse a string to a Datetime Object, returns null if can't convert
|
DateTime |
toDate(Object o,
boolean alsoNumbers,
TimeZone tz,
DateTime defaultValue)
cast a Object to a DateTime Object
|
DateTime |
toDate(Object o,
TimeZone tz)
cast a Object to a DateTime Object
|
DateTime |
toDate(String str,
boolean alsoNumbers,
TimeZone tz,
DateTime defaultValue)
cast a Object to a DateTime Object
|
DateTime |
toDate(String str,
TimeZone tz)
cast a Object to a DateTime Object
|
DateTime |
toDatetime(Object o,
TimeZone tz)
cast a Object to a DateTime Object (alias for toDateTime)
|
DateTime |
toDateTime(Object o,
TimeZone tz)
cast a Object to a DateTime Object
|
String |
toDecimal(boolean b)
cast a boolean to a decimal value (String:xx.xx)
|
String |
toDecimal(char c)
cast a char to a decimal value (String:xx.xx)
|
String |
toDecimal(double d)
cast a double to a decimal value (String:xx.xx)
|
String |
toDecimal(Object value)
cast a double to a decimal value (String:xx.xx)
|
String |
toDecimal(Object value,
String defaultValue)
cast a double to a decimal value (String:xx.xx)
|
Double |
toDouble(boolean b)
cast a boolean value to a Double Object (reference Type)
|
Double |
toDouble(char c)
cast a char value to a Double Object (reference Type)
|
Double |
toDouble(double d)
cast a double value to a Double Object (reference Type)
|
Double |
toDouble(Object o)
cast a Object to a Double Object (reference Type)
|
Double |
toDouble(Object o,
Double defaultValue)
cast a Object to a Double Object (reference Type)
|
Double |
toDouble(String str)
cast a String to a Double Object (reference Type)
|
Double |
toDouble(String str,
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(Object o)
cast a Object to a double value (primitive value Type)
|
double |
toDoubleValue(Object o,
double defaultValue)
cast a Object to a double value (primitive value Type)
|
double |
toDoubleValue(String str)
cast a Object to a double value (primitive value Type)
|
double |
toDoubleValue(String str,
double defaultValue)
cast a Object to a double value (primitive value Type), if can't return Double.NaN
|
File |
toFile(Object obj)
convert a object to a File
|
File |
toFile(Object obj,
File defaultValue)
convert a object to a File
|
Integer |
toInteger(boolean b)
casts a boolean to a Integer
|
Integer |
toInteger(char c)
casts a char to a Integer
|
Integer |
toInteger(double d)
casts a double to a Integer
|
Integer |
toInteger(Object o)
casts a Object to a Integer
|
Integer |
toInteger(Object o,
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(Object o)
cast a Object to a int value (primitive value type)
|
int |
toIntValue(Object o,
int defaultValue)
cast a Object to a int value (primitive value type)
|
int |
toIntValue(String str)
cast a String to a int value (primitive value type)
|
int |
toIntValue(String str,
int defaultValue)
cast a Object to a double value (primitive value Type), if can't return Integer.MIN_VALUE
|
Iterator |
toIterator(Object o)
cast a Object to a Iterator or get Iterator from Object
|
Collection.Key |
toKey(Object o) |
Collection.Key |
toKey(Object o,
Collection.Key defaultValue) |
List |
toList(Object o)
cast a Object to a Array Object
|
List |
toList(Object o,
boolean duplicate)
cast a Object to a Array Object
|
List |
toList(Object o,
boolean duplicate,
List defaultValue)
cast a Object to a Array Object
|
List |
toList(Object o,
List defaultValue)
cast a Object to a Array Object
|
Locale |
toLocale(String strLocale)
casts a string to a Locale
|
Locale |
toLocale(String strLocale,
Locale defaultValue)
casts a string to a Locale
|
Long |
toLong(boolean b)
cast a boolean value to a Long Object(reference type)
|
Long |
toLong(char c)
cast a char value to a Long Object(reference type)
|
Long |
toLong(double d)
cast a double value to a Long Object(reference type)
|
Long |
toLong(Object o)
cast a Object to a Long Object(reference type)
|
Long |
toLong(Object o,
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(Object o)
cast a Object to a long value (primitive value type)
|
long |
toLongValue(Object o,
long defaultValue)
cast a Object to a long value (primitive value type)
|
Map |
toMap(Object o)
cast a Object to a Map Object
|
Map |
toMap(Object o,
boolean duplicate)
cast a Object to a Map Object
|
Map |
toMap(Object o,
boolean duplicate,
Map defaultValue)
cast a Object to a Map Object
|
Map |
toMap(Object o,
Map defaultValue)
cast a Object to a Map Object
|
Node |
toNode(Object o)
casts a Object to a XML Node
|
Node |
toNode(Object o,
Node defaultValue)
casts a Object to a XML Node
|
NodeList |
toNodeList(Object o)
casts a Object to a Node List
|
NodeList |
toNodeList(Object o,
NodeList defaultValue)
casts a Object to a Node List
|
Object |
toNull(Object value)
casts a Object to null
|
Object |
toNull(Object value,
Object defaultValue)
casts a Object to null
|
PageException |
toPageException(Throwable t)
cast a Throwable Object to a PageException Object
|
Query |
toQuery(Object o)
cast a Object to a Query Object
|
Query |
toQuery(Object o,
boolean duplicate)
cast a Object to a Query Object
|
Query |
toQuery(Object o,
boolean duplicate,
Query defaultValue)
cast a Object to a Query Object
|
Query |
toQuery(Object o,
Query defaultValue)
cast a Object to a Query Object
|
Boolean |
toRef(boolean b)
cast a boolean value to his (CFML) reference type Boolean
|
Byte |
toRef(byte b)
cast a byte value to his (CFML) reference type Boolean
|
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
|
Double |
toRef(double d)
cast a double value to his (CFML) reference type Double
|
Float |
toRef(float f)
cast a float value to his (CFML) reference type Float
|
Integer |
toRef(int i)
cast a int value to his (CFML) reference type Integer
|
Long |
toRef(long l)
cast a long value to his (CFML) reference type Long
|
Object |
toRef(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
|
Short |
toRef(short s)
cast a short value to his (CFML) reference type Integer
|
String |
toRef(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(Object obj)
convert a object to a Resource
|
Resource |
toResource(Object obj,
Resource defaultValue)
convert a object to a Resource
|
Serializable |
toSerializable(Object obj)
cast Object to a Serializable Object
|
Serializable |
toSerializable(Object object,
Serializable defaultValue)
cast Object to a Serializable Object
|
Short |
toShort(boolean b)
cast a boolean value to a Short Object(reference type)
|
Short |
toShort(char c)
cast a char value to a Short Object(reference type)
|
Short |
toShort(double d)
cast a double value to a Byte Object(reference type)
|
Short |
toShort(Object o)
cast a Object to a Short Object(reference type)
|
Short |
toShort(Object o,
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(Object o)
cast a Object to a short value (primitive value type)
|
short |
toShortValue(Object o,
short defaultValue)
cast a Object to a short value (primitive value type)
|
String |
toString(boolean b)
cast a boolean value to a String
|
String |
toString(double d)
cast a double value to a String
|
String |
toString(int i)
cast a int value to a String
|
String |
toString(long l)
cast a long value to a String
|
String |
toString(Object o)
cast a Object to a String
|
String |
toString(Object o,
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(Object o)
cast a Object to a Struct Object
|
Struct |
toStruct(Object o,
Struct defaultValue)
cast a Object to a Struct Object
|
Struct |
toStruct(Object o,
Struct defaultValue,
boolean caseSensitive) |
TimeSpan |
toTimespan(Object o)
cast a Object to a TimeSpan Object (alias for toTimeSpan)
|
TimeSpan |
toTimespan(Object o,
TimeSpan defaultValue)
cast a Object to a TimeSpan Object (alias for toTimeSpan)
|
String |
toTypeName(Object o)
return the type name of a object (string, boolean, int aso.), type is not same like class name
|
Object |
toUUId(Object o)
cast a Object to a UUID
|
Object |
toUUId(Object o,
Object defaultValue)
cast a Object to a UUID
|
Object |
toVariableName(Object o)
cast a Object to a Variable Name
|
Object |
toVariableName(Object obj,
Object defaultValue)
cast a Object to a Variable Name
|
Object |
toVoid(Object o)
cast a value to void (Empty String)
|
Object |
toVoid(Object o,
Object defaultValue)
cast a value to void (Empty String)
|
Node |
toXML(Object value)
cast Object to a XML Node
|
Node |
toXML(Object value,
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(Object o) throws PageException
o
- Object to castPageException
Double toDouble(Object o) throws PageException
o
- Object to castPageException
Double toDouble(Object o, Double defaultValue)
o
- Object to castdefaultValue
- Double toDouble(String str) throws PageException
str
- String to castPageException
Double toDouble(String str, Double defaultValue)
str
- String to castdefaultValue
- Double toDouble(double d)
d
- double value to castDouble toDouble(boolean b)
b
- boolean value to castDouble toDouble(char c)
c
- char value to castdouble toDoubleValue(Object o) throws PageException
o
- Object to castPageException
double toDoubleValue(String str) throws PageException
str
- String to castPageException
double toDoubleValue(Object o, double defaultValue)
o
- Object to castdefaultValue
- if can't cast return this valuedouble toDoubleValue(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(Object o) throws PageException
o
- Object to castPageException
int toIntValue(Object o, int defaultValue)
o
- Object to castdefaultValue
- int toIntValue(String str) throws PageException
str
- String to castPageException
int toIntValue(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 castString toDecimal(Object value) throws PageException
value
- Object to castPageException
String toDecimal(Object value, String defaultValue)
value
- Object to castdefaultValue
- String toDecimal(char c)
c
- char to castString toDecimal(boolean b)
b
- boolean to castString toDecimal(double d)
d
- double to castBoolean toBoolean(boolean b)
b
- boolean value to castBoolean toBoolean(char c)
c
- char value to castBoolean toBoolean(double d)
d
- double value to castBoolean toBoolean(Object o) throws PageException
o
- Object to castPageException
Boolean toBoolean(String str) throws PageException
str
- String to castPageException
boolean toBooleanValue(Object o, boolean defaultValue)
o
- Object to castdefaultValue
- Boolean toBoolean(Object o, Boolean defaultValue)
o
- Object to castdefaultValue
- default valueBoolean toBoolean(String str, 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(Object o) throws PageException
o
- Object to castPageException
char toCharValue(Object o, char defaultValue)
o
- Object to castdefaultValue
- Character toCharacter(boolean b)
b
- boolean value to castCharacter toCharacter(char c)
c
- char value to castCharacter toCharacter(double d)
d
- double value to castCharacter toCharacter(Object o, Character defaultValue)
o
- Object to castdefaultValue
- Character toCharacter(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(Object o) throws PageException
o
- Object to castPageException
byte toByteValue(Object o, byte defaultValue)
o
- Object to castdefaultValue
- Byte toByte(boolean b)
b
- boolean value to castByte toByte(char c)
c
- char value to castByte toByte(double d)
d
- double value to castByte toByte(Object o) throws PageException
o
- Object to castPageException
Byte toByte(Object o, 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(Object o) throws PageException
o
- Object to castPageException
long toLongValue(Object o, long defaultValue)
o
- Object to castdefaultValue
- Long toLong(boolean b)
b
- boolean value to castLong toLong(char c)
c
- char value to castLong toLong(double d)
d
- double value to castLong toLong(Object o) throws PageException
o
- Object to castPageException
Long toLong(Object o, Long defaultValue)
o
- Object to castdefaultValue
- Collection.Key toKey(Object o) throws PageException
PageException
Collection.Key toKey(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(Object o) throws PageException
o
- Object to castPageException
short toShortValue(Object o, short defaultValue)
o
- Object to castdefaultValue
- Short toShort(boolean b)
b
- boolean value to castShort toShort(char c)
c
- char value to castShort toShort(double d)
d
- double value to castShort toShort(Object o) throws PageException
o
- Object to castPageException
Short toShort(Object o, Short defaultValue)
o
- Object to castdefaultValue
- boolean toBooleanValue(String str) throws PageException
str
- String to castPageException
boolean toBooleanValue(String str, boolean defaultValue)
str
- String to castdefaultValue
- String toString(Object o) throws PageException
o
- Object to castPageException
String toString(Object o, String defaultValue)
o
- Object to castdefaultValue
- String toString(double d)
d
- double value to castString toString(long l)
l
- long value to castString toString(int i)
i
- int value to castString toString(boolean b)
b
- boolean value to castList toList(Object o) throws PageException
o
- Object to castPageException
List toList(Object o, List defaultValue)
o
- Object to castdefaultValue
- List toList(Object o, boolean duplicate) throws PageException
o
- Object to castduplicate
- PageException
List toList(Object o, boolean duplicate, List defaultValue)
o
- Object to castduplicate
- defaultValue
- Array toArray(Object obj) throws PageException
obj
- Object to castPageException
Array toArray(Object obj, Array defaultValue)
obj
- Object to castdefaultValue
- Map toMap(Object o) throws PageException
o
- Object to castPageException
Map toMap(Object o, Map defaultValue)
o
- Object to castdefaultValue
- Map toMap(Object o, boolean duplicate) throws PageException
o
- Object to castduplicate
- PageException
Map toMap(Object o, boolean duplicate, Map defaultValue)
o
- Object to castduplicate
- defaultValue
- Struct toStruct(Object o) throws PageException
o
- Object to castPageException
Struct toStruct(Object o, Struct defaultValue)
o
- Object to castdefaultValue
- byte[] toBinary(Object obj) throws PageException
obj
- Object to castPageException
byte[] toBinary(Object obj, byte[] defaultValue)
obj
- Object to castdefaultValue
- String toBase64(Object o) throws PageException
o
- Object to castPageException
String toBase64(Object o, String defaultValue)
o
- Object to castdefaultValue
- DateTime toDate(boolean b, TimeZone tz)
b
- boolean to casttz
- DateTime toDate(char c, TimeZone tz)
c
- char to casttz
- DateTime toDate(double d, TimeZone tz)
d
- double to casttz
- DateTime toDate(Object o, TimeZone tz) throws PageException
o
- Object to casttz
- PageException
DateTime toDate(String str, TimeZone tz) throws PageException
str
- String to casttz
- PageException
DateTime toDate(Object o, boolean alsoNumbers, TimeZone tz, DateTime defaultValue)
o
- Object to castalsoNumbers
- define if also numbers will casted to a datetime valuetz
- defaultValue
- DateTime toDate(String str, boolean alsoNumbers, TimeZone tz, DateTime defaultValue)
str
- String to castalsoNumbers
- define if also numbers will casted to a datetime valuetz
- defaultValue
- DateTime toDateTime(Object o, TimeZone tz) throws PageException
o
- Object to casttz
- PageException
DateTime toDatetime(Object o, TimeZone tz) throws PageException
o
- Object to casttz
- PageException
DateTime toDate(Locale locale, String str, TimeZone tz) throws PageException
locale
- str
- String representation of a locale Datetz
- PageException
DateTime toDate(Locale locale, String str, TimeZone tz, DateTime defaultValue)
locale
- str
- String representation of a locale Datetz
- defaultValue
- Query toQuery(Object o) throws PageException
o
- Object to castPageException
Query toQuery(Object o, Query defaultValue)
o
- Object to castdefaultValue
- Query toQuery(Object o, boolean duplicate) throws PageException
o
- Object to castduplicate
- duplicate the object or notPageException
Query toQuery(Object o, boolean duplicate, Query defaultValue)
o
- Object to castduplicate
- duplicate the object or notdefaultValue
- Object toUUId(Object o) throws PageException
o
- Object to castPageException
Object toUUId(Object o, Object defaultValue)
o
- Object to castdefaultValue
- Object toVariableName(Object o) throws PageException
o
- Object to castPageException
Object toVariableName(Object obj, Object defaultValue)
obj
- Object to castdefaultValue
- TimeSpan toTimespan(Object o) throws PageException
o
- Object to castPageException
TimeSpan toTimespan(Object o, TimeSpan defaultValue)
o
- Object to castdefaultValue
- PageException toPageException(Throwable t)
t
- Throwable to castString toTypeName(Object o)
o
- Object to get type fromObject castTo(PageContext pc, String type, Object o) throws PageException
pc
- type
- type of the returning Valueo
- Object to castPageException
Object castTo(PageContext pc, String type, 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
Object castTo(PageContext pc, short type, String strType, Object o) throws PageException
pc
- type
- type of the returning Value (Example: Cast.TYPE_QUERY)strType
- type as Stringo
- Object to castPageException
Object castTo(PageContext pc, short type, Object o) throws PageException
pc
- type
- type of the returning Value (Example: Cast.TYPE_QUERY)o
- Object to castPageException
Object toVoid(Object o) throws PageException
o
- PageException
Object toVoid(Object o, Object defaultValue)
o
- defaultValue
- Object toRef(Object o)
o
- Object to castString toRef(String o)
o
- Object to castCollection toRef(Collection o)
o
- Collection to castString toRef(char c)
c
- char to castBoolean toRef(boolean b)
b
- boolean to castByte toRef(byte b)
b
- byte to castShort toRef(short s)
s
- short to castInteger toRef(int i)
i
- int to castFloat toRef(float f)
f
- float to castLong toRef(long l)
l
- long to castDouble toRef(double d)
d
- doble to castIterator toIterator(Object o) throws PageException
o
- Object to castPageException
Collection toCollection(Object o) throws PageException
o
- Object to castPageException
Color toColor(Object o) throws PageException
o
- Object to castPageException
Collection toCollection(Object o, Collection defaultValue)
o
- Object to castdefaultValue
- Resource toResource(Object obj) throws PageException
obj
- PageException
Resource toResource(Object obj, Resource defaultValue)
obj
- defaultValue
- File toFile(Object obj) throws PageException
obj
- PageException
File toFile(Object obj, File defaultValue)
obj
- defaultValue
- Locale toLocale(String strLocale) throws PageException
strLocale
- PageException
Locale toLocale(String strLocale, Locale defaultValue)
strLocale
- defaultValue
- NodeList toNodeList(Object o) throws PageException
o
- Object to CastPageException
NodeList toNodeList(Object o, NodeList defaultValue)
o
- Object to CastdefaultValue
- Node toNode(Object o) throws PageException
o
- Object to CastPageException
Node toNode(Object o, Node defaultValue)
o
- Object to CastdefaultValue
- Integer toInteger(boolean b)
b
- Integer toInteger(char c)
c
- Integer toInteger(double d)
d
- Integer toInteger(Object o) throws PageException
o
- Object to cast to IntegerPageException
Integer toInteger(Object o, Integer defaultValue)
o
- Object to cast to IntegerdefaultValue
- Object toNull(Object value) throws PageException
value
- PageException
Object toNull(Object value, Object defaultValue)
value
- defaultValue
- Node toXML(Object value) throws PageException
value
- PageException
Node toXML(Object value, Node defaultValue)
value
- defaultValue
- Object to(String type, Object o, boolean alsoPattern) throws PageException
type
- o
- alsoPattern
- PageException
Serializable toSerializable(Object obj) throws PageException
obj
- PageException
Serializable toSerializable(Object object, Serializable defaultValue)
object
- defaultValue
- Copyright © 2015 Lucee