|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cast
This class can cast object of one type to a other by CFML rules
Method Summary | |
---|---|
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 |
Method Detail |
---|
boolean toBooleanValue(boolean b)
b
- boolean value to cast
boolean toBooleanValue(double d)
d
- double value to cast
boolean toBooleanValue(char c)
c
- char value to cast
boolean toBooleanValue(Object o) throws PageException
o
- Object to cast
PageException
Double toDouble(Object o) throws PageException
o
- Object to cast
PageException
Double toDouble(Object o, Double defaultValue)
o
- Object to castdefaultValue
-
Double toDouble(String str) throws PageException
str
- String to cast
PageException
Double toDouble(String str, Double defaultValue)
str
- String to castdefaultValue
-
Double toDouble(double d)
d
- double value to cast
Double toDouble(boolean b)
b
- boolean value to cast
Double toDouble(char c)
c
- char value to cast
double toDoubleValue(Object o) throws PageException
o
- Object to cast
PageException
double toDoubleValue(String str) throws PageException
str
- String to cast
PageException
double toDoubleValue(Object o, double defaultValue)
o
- Object to castdefaultValue
- if can't cast return this value
double toDoubleValue(String str, double defaultValue)
str
- String to castdefaultValue
- if can't cast return this value
double toDoubleValue(double d)
d
- double value to cast
double toDoubleValue(boolean b)
b
- boolean value to cast
double toDoubleValue(char c)
c
- char value to cast
int toIntValue(Object o) throws PageException
o
- Object to cast
PageException
int toIntValue(Object o, int defaultValue)
o
- Object to castdefaultValue
-
int toIntValue(String str) throws PageException
str
- String to cast
PageException
int toIntValue(String str, int defaultValue)
str
- String to castdefaultValue
-
int toIntValue(double d)
d
- double value to cast
int toIntValue(boolean b)
b
- boolean value to cast
int toIntValue(char c)
c
- char value to cast
String toDecimal(Object value) throws PageException
value
- Object to cast
PageException
String toDecimal(Object value, String defaultValue)
value
- Object to castdefaultValue
-
String toDecimal(char c)
c
- char to cast
String toDecimal(boolean b)
b
- boolean to cast
String toDecimal(double d)
d
- double to cast
Boolean toBoolean(boolean b)
b
- boolean value to cast
Boolean toBoolean(char c)
c
- char value to cast
Boolean toBoolean(double d)
d
- double value to cast
Boolean toBoolean(Object o) throws PageException
o
- Object to cast
PageException
Boolean toBoolean(String str) throws PageException
str
- String to cast
PageException
boolean toBooleanValue(Object o, boolean defaultValue)
o
- Object to castdefaultValue
-
Boolean toBoolean(Object o, Boolean defaultValue)
o
- Object to castdefaultValue
- default value
Boolean toBoolean(String str, Boolean defaultValue)
str
- String to castdefaultValue
- default value
char toCharValue(boolean b)
b
- boolean value to cast
char toCharValue(double d)
d
- double value to cast
char toCharValue(char c)
c
- char value to cast
char toCharValue(Object o) throws PageException
o
- Object to cast
PageException
char toCharValue(Object o, char defaultValue)
o
- Object to castdefaultValue
-
Character toCharacter(boolean b)
b
- boolean value to cast
Character toCharacter(char c)
c
- char value to cast
Character toCharacter(double d)
d
- double value to cast
Character toCharacter(Object o, Character defaultValue)
o
- Object to castdefaultValue
-
Character toCharacter(Object o) throws PageException
o
- Object to cast
PageException
byte toByteValue(boolean b)
b
- boolean value to cast
byte toByteValue(double d)
d
- double value to cast
byte toByteValue(char c)
c
- char value to cast
byte toByteValue(Object o) throws PageException
o
- Object to cast
PageException
byte toByteValue(Object o, byte defaultValue)
o
- Object to castdefaultValue
-
Byte toByte(boolean b)
b
- boolean value to cast
Byte toByte(char c)
c
- char value to cast
Byte toByte(double d)
d
- double value to cast
Byte toByte(Object o) throws PageException
o
- Object to cast
PageException
Byte toByte(Object o, Byte defaultValue)
o
- Object to castdefaultValue
-
long toLongValue(boolean b)
b
- boolean value to cast
long toLongValue(double d)
d
- double value to cast
long toLongValue(char c)
c
- char value to cast
long toLongValue(Object o) throws PageException
o
- Object to cast
PageException
long toLongValue(Object o, long defaultValue)
o
- Object to castdefaultValue
-
Long toLong(boolean b)
b
- boolean value to cast
Long toLong(char c)
c
- char value to cast
Long toLong(double d)
d
- double value to cast
Long toLong(Object o) throws PageException
o
- Object to cast
PageException
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 cast
short toShortValue(double d)
d
- double value to cast
short toShortValue(char c)
c
- char value to cast
short toShortValue(Object o) throws PageException
o
- Object to cast
PageException
short toShortValue(Object o, short defaultValue)
o
- Object to castdefaultValue
-
Short toShort(boolean b)
b
- boolean value to cast
Short toShort(char c)
c
- char value to cast
Short toShort(double d)
d
- double value to cast
Short toShort(Object o) throws PageException
o
- Object to cast
PageException
Short toShort(Object o, Short defaultValue)
o
- Object to castdefaultValue
-
boolean toBooleanValue(String str) throws PageException
str
- String to cast
PageException
boolean toBooleanValue(String str, boolean defaultValue)
str
- String to castdefaultValue
-
String toString(Object o) throws PageException
o
- Object to cast
PageException
String toString(Object o, String defaultValue)
o
- Object to castdefaultValue
-
String toString(double d)
d
- double value to cast
String toString(long l)
l
- long value to cast
String toString(int i)
i
- int value to cast
String toString(boolean b)
b
- boolean value to cast
List toList(Object o) throws PageException
o
- Object to cast
PageException
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 cast
PageException
Array toArray(Object obj, Array defaultValue)
obj
- Object to castdefaultValue
-
Map toMap(Object o) throws PageException
o
- Object to cast
PageException
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 cast
PageException
Struct toStruct(Object o, Struct defaultValue)
o
- Object to castdefaultValue
-
Struct toStruct(Object o, Struct defaultValue, boolean caseSensitive)
byte[] toBinary(Object obj) throws PageException
obj
- Object to cast
PageException
byte[] toBinary(Object obj, byte[] defaultValue)
obj
- Object to castdefaultValue
-
String toBase64(Object o) throws PageException
o
- Object to cast
PageException
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 cast
PageException
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 not
PageException
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 cast
PageException
Object toUUId(Object o, Object defaultValue)
o
- Object to castdefaultValue
-
Object toVariableName(Object o) throws PageException
o
- Object to cast
PageException
Object toVariableName(Object obj, Object defaultValue)
obj
- Object to castdefaultValue
-
TimeSpan toTimespan(Object o) throws PageException
o
- Object to cast
PageException
TimeSpan toTimespan(Object o, TimeSpan defaultValue)
o
- Object to castdefaultValue
-
PageException toPageException(Throwable t)
t
- Throwable to cast
String toTypeName(Object o)
o
- Object to get type from
Object castTo(PageContext pc, String type, Object o) throws PageException
pc
- type
- type of the returning Valueo
- Object to cast
PageException
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 cast
PageException
Object castTo(PageContext pc, short type, Object o) throws PageException
pc
- type
- type of the returning Value (Example: Cast.TYPE_QUERY)o
- Object to cast
PageException
Object toVoid(Object o) throws PageException
o
-
PageException
Object toVoid(Object o, Object defaultValue)
o
- defaultValue
-
Object toRef(Object o)
o
- Object to cast
String toRef(String o)
o
- Object to cast
Collection toRef(Collection o)
o
- Collection to cast
String toRef(char c)
c
- char to cast
Boolean toRef(boolean b)
b
- boolean to cast
Byte toRef(byte b)
b
- byte to cast
Short toRef(short s)
s
- short to cast
Integer toRef(int i)
i
- int to cast
Float toRef(float f)
f
- float to cast
Long toRef(long l)
l
- long to cast
Double toRef(double d)
d
- doble to cast
Iterator toIterator(Object o) throws PageException
o
- Object to cast
PageException
Collection toCollection(Object o) throws PageException
o
- Object to cast
PageException
Color toColor(Object o) throws PageException
o
- Object to cast
PageException
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 Cast
PageException
NodeList toNodeList(Object o, NodeList defaultValue)
o
- Object to CastdefaultValue
-
Node toNode(Object o) throws PageException
o
- Object to Cast
PageException
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 Integer
PageException
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |