Constructor and Description |
---|
CastImpl() |
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
|
static Cast |
getInstance() |
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 str)
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
|
public CastImpl()
public Object castTo(PageContext pc, short type, Object o) throws PageException
Cast
castTo
in interface Cast
type
- type of the returning Value (Example: Cast.TYPE_QUERY)o
- Object to castPageException
public Object castTo(PageContext pc, short type, String strType, Object o) throws PageException
Cast
castTo
in interface Cast
type
- type of the returning Value (Example: Cast.TYPE_QUERY)strType
- type as Stringo
- Object to castPageException
public Object castTo(PageContext pc, String type, Object o) throws PageException
Cast
castTo
in interface Cast
type
- type of the returning Valueo
- Object to castPageException
public Object castTo(PageContext pc, String type, Object o, boolean alsoPattern) throws PageException
Cast
castTo
in interface Cast
type
- type of the returning Valueo
- Object to castalsoPattern
- mean supporting also none real types like email or creditcard ...PageException
public Array toArray(Object obj, Array defaultValue)
Cast
public Array toArray(Object obj) throws PageException
Cast
toArray
in interface Cast
obj
- Object to castPageException
public String toBase64(Object o, String defaultValue)
Cast
public String toBase64(Object o) throws PageException
Cast
toBase64
in interface Cast
o
- Object to castPageException
public byte[] toBinary(Object obj, byte[] defaultValue)
Cast
public byte[] toBinary(Object obj) throws PageException
Cast
toBinary
in interface Cast
obj
- Object to castPageException
public Boolean toBoolean(boolean b)
Cast
public Boolean toBoolean(char c)
Cast
public Boolean toBoolean(double d)
Cast
public Boolean toBoolean(Object o, Boolean defaultValue)
Cast
public Boolean toBoolean(Object o) throws PageException
Cast
toBoolean
in interface Cast
o
- Object to castPageException
public Boolean toBoolean(String str, Boolean defaultValue)
Cast
public Boolean toBoolean(String str) throws PageException
Cast
toBoolean
in interface Cast
str
- String to castPageException
public boolean toBooleanValue(boolean b)
Cast
toBooleanValue
in interface Cast
b
- boolean value to castpublic boolean toBooleanValue(char c)
Cast
toBooleanValue
in interface Cast
c
- char value to castpublic boolean toBooleanValue(double d)
Cast
toBooleanValue
in interface Cast
d
- double value to castpublic boolean toBooleanValue(Object o, boolean defaultValue)
Cast
toBooleanValue
in interface Cast
o
- Object to castpublic boolean toBooleanValue(Object o) throws PageException
Cast
toBooleanValue
in interface Cast
o
- Object to castPageException
public boolean toBooleanValue(String str, boolean defaultValue)
Cast
toBooleanValue
in interface Cast
str
- String to castpublic boolean toBooleanValue(String str) throws PageException
Cast
toBooleanValue
in interface Cast
str
- String to castPageException
public Byte toByte(boolean b)
Cast
public Byte toByte(char c)
Cast
public Byte toByte(double d)
Cast
public Byte toByte(Object o, Byte defaultValue)
Cast
public Byte toByte(Object o) throws PageException
Cast
toByte
in interface Cast
o
- Object to castPageException
public byte toByteValue(boolean b)
Cast
toByteValue
in interface Cast
b
- boolean value to castpublic byte toByteValue(char c)
Cast
toByteValue
in interface Cast
c
- char value to castpublic byte toByteValue(double d)
Cast
toByteValue
in interface Cast
d
- double value to castpublic byte toByteValue(Object o, byte defaultValue)
Cast
toByteValue
in interface Cast
o
- Object to castpublic byte toByteValue(Object o) throws PageException
Cast
toByteValue
in interface Cast
o
- Object to castPageException
public Character toCharacter(boolean b)
Cast
toCharacter
in interface Cast
b
- boolean value to castpublic Character toCharacter(char c)
Cast
toCharacter
in interface Cast
c
- char value to castpublic Character toCharacter(double d)
Cast
toCharacter
in interface Cast
d
- double value to castpublic Character toCharacter(Object o, Character defaultValue)
Cast
toCharacter
in interface Cast
o
- Object to castpublic Character toCharacter(Object o) throws PageException
Cast
toCharacter
in interface Cast
o
- Object to castPageException
public char toCharValue(boolean b)
Cast
toCharValue
in interface Cast
b
- boolean value to castpublic char toCharValue(char c)
Cast
toCharValue
in interface Cast
c
- char value to castpublic char toCharValue(double d)
Cast
toCharValue
in interface Cast
d
- double value to castpublic char toCharValue(Object o, char defaultValue)
Cast
toCharValue
in interface Cast
o
- Object to castpublic char toCharValue(Object o) throws PageException
Cast
toCharValue
in interface Cast
o
- Object to castPageException
public Collection toCollection(Object o, Collection defaultValue)
Cast
toCollection
in interface Cast
o
- Object to castpublic Collection toCollection(Object o) throws PageException
Cast
toCollection
in interface Cast
o
- Object to castPageException
public Color toColor(Object o) throws PageException
Cast
toColor
in interface Cast
o
- Object to castPageException
public DateTime toDate(boolean b, TimeZone tz)
Cast
public DateTime toDate(char c, TimeZone tz)
Cast
public DateTime toDate(double d, TimeZone tz)
Cast
public DateTime toDate(Locale locale, String str, TimeZone tz, DateTime defaultValue)
Cast
public DateTime toDate(Locale locale, String str, TimeZone tz) throws PageException
Cast
toDate
in interface Cast
str
- String representation of a locale DatePageException
public DateTime toDate(Object o, boolean alsoNumbers, TimeZone tz, DateTime defaultValue)
Cast
public DateTime toDate(Object o, TimeZone tz) throws PageException
Cast
toDate
in interface Cast
o
- Object to castPageException
public DateTime toDate(String str, boolean alsoNumbers, TimeZone tz, DateTime defaultValue)
Cast
public DateTime toDate(String str, TimeZone tz) throws PageException
Cast
toDate
in interface Cast
str
- String to castPageException
public DateTime toDatetime(Object o, TimeZone tz) throws PageException
Cast
toDatetime
in interface Cast
o
- Object to castPageException
public DateTime toDateTime(Object o, TimeZone tz) throws PageException
Cast
toDateTime
in interface Cast
o
- Object to castPageException
public String toDecimal(boolean b)
Cast
public String toDecimal(char c)
Cast
public String toDecimal(double d)
Cast
public String toDecimal(Object value, String defaultValue)
Cast
public String toDecimal(Object value) throws PageException
Cast
toDecimal
in interface Cast
value
- Object to castPageException
public Double toDouble(boolean b)
Cast
public Double toDouble(char c)
Cast
public Double toDouble(double d)
Cast
public Double toDouble(Object o, Double defaultValue)
Cast
public Double toDouble(Object o) throws PageException
Cast
toDouble
in interface Cast
o
- Object to castPageException
public Double toDouble(String str, Double defaultValue)
Cast
public Double toDouble(String str) throws PageException
Cast
toDouble
in interface Cast
str
- String to castPageException
public double toDoubleValue(boolean b)
Cast
toDoubleValue
in interface Cast
b
- boolean value to castpublic double toDoubleValue(char c)
Cast
toDoubleValue
in interface Cast
c
- char value to castpublic double toDoubleValue(double d)
Cast
toDoubleValue
in interface Cast
d
- double value to castpublic double toDoubleValue(Object o, double defaultValue)
Cast
toDoubleValue
in interface Cast
o
- Object to castdefaultValue
- if can't cast return this valuepublic double toDoubleValue(Object o) throws PageException
Cast
toDoubleValue
in interface Cast
o
- Object to castPageException
public double toDoubleValue(String str, double defaultValue)
Cast
toDoubleValue
in interface Cast
str
- String to castdefaultValue
- if can't cast return this valuepublic double toDoubleValue(String str) throws PageException
Cast
toDoubleValue
in interface Cast
str
- String to castPageException
public File toFile(Object obj, File defaultValue)
Cast
public File toFile(Object obj) throws PageException
Cast
toFile
in interface Cast
PageException
public Integer toInteger(boolean b)
Cast
public Integer toInteger(char c)
Cast
public Integer toInteger(double d)
Cast
public Integer toInteger(Object o, Integer defaultValue)
Cast
public Integer toInteger(Object o) throws PageException
Cast
toInteger
in interface Cast
o
- Object to cast to IntegerPageException
public int toIntValue(boolean b)
Cast
toIntValue
in interface Cast
b
- boolean value to castpublic int toIntValue(char c)
Cast
toIntValue
in interface Cast
c
- char value to castpublic int toIntValue(double d)
Cast
toIntValue
in interface Cast
d
- double value to castpublic int toIntValue(Object o, int defaultValue)
Cast
toIntValue
in interface Cast
o
- Object to castpublic int toIntValue(Object o) throws PageException
Cast
toIntValue
in interface Cast
o
- Object to castPageException
public int toIntValue(String str, int defaultValue)
Cast
toIntValue
in interface Cast
str
- String to castpublic int toIntValue(String str) throws PageException
Cast
toIntValue
in interface Cast
str
- String to castPageException
public Iterator toIterator(Object o) throws PageException
Cast
toIterator
in interface Cast
o
- Object to castPageException
public List toList(Object o, boolean duplicate, List defaultValue)
Cast
public List toList(Object o, boolean duplicate) throws PageException
Cast
toList
in interface Cast
o
- Object to castPageException
public List toList(Object o, List defaultValue)
Cast
public List toList(Object o) throws PageException
Cast
toList
in interface Cast
o
- Object to castPageException
public Locale toLocale(String strLocale, Locale defaultValue)
Cast
public Locale toLocale(String strLocale) throws PageException
Cast
toLocale
in interface Cast
PageException
public Long toLong(boolean b)
Cast
public Long toLong(char c)
Cast
public Long toLong(double d)
Cast
public Long toLong(Object o, Long defaultValue)
Cast
public Long toLong(Object o) throws PageException
Cast
toLong
in interface Cast
o
- Object to castPageException
public long toLongValue(boolean b)
Cast
toLongValue
in interface Cast
b
- boolean value to castpublic long toLongValue(char c)
Cast
toLongValue
in interface Cast
c
- char value to castpublic long toLongValue(double d)
Cast
toLongValue
in interface Cast
d
- double value to castpublic long toLongValue(Object o, long defaultValue)
Cast
toLongValue
in interface Cast
o
- Object to castpublic long toLongValue(Object o) throws PageException
Cast
toLongValue
in interface Cast
o
- Object to castPageException
public Map toMap(Object o, boolean duplicate, Map defaultValue)
Cast
public Map toMap(Object o, boolean duplicate) throws PageException
Cast
toMap
in interface Cast
o
- Object to castPageException
public Map toMap(Object o, Map defaultValue)
Cast
public Map toMap(Object o) throws PageException
Cast
toMap
in interface Cast
o
- Object to castPageException
public Node toNode(Object o, Node defaultValue)
Cast
public Node toNode(Object o) throws PageException
Cast
toNode
in interface Cast
o
- Object to CastPageException
public NodeList toNodeList(Object o, NodeList defaultValue)
Cast
toNodeList
in interface Cast
o
- Object to Castpublic NodeList toNodeList(Object o) throws PageException
Cast
toNodeList
in interface Cast
o
- Object to CastPageException
public Object toNull(Object value, Object defaultValue)
Cast
public Object toNull(Object value) throws PageException
Cast
toNull
in interface Cast
PageException
public Collection.Key toKey(Object o) throws PageException
toKey
in interface Cast
PageException
public Collection.Key toKey(Object o, Collection.Key defaultValue)
public PageException toPageException(Throwable t)
Cast
toPageException
in interface Cast
t
- Throwable to castpublic Query toQuery(Object o, boolean duplicate, Query defaultValue)
Cast
public Query toQuery(Object o, boolean duplicate) throws PageException
Cast
toQuery
in interface Cast
o
- Object to castduplicate
- duplicate the object or notPageException
public Query toQuery(Object o, Query defaultValue)
Cast
public Query toQuery(Object o) throws PageException
Cast
toQuery
in interface Cast
o
- Object to castPageException
public Boolean toRef(boolean b)
Cast
public Byte toRef(byte b)
Cast
public String toRef(char c)
Cast
public Collection toRef(Collection o)
Cast
public Double toRef(double d)
Cast
public Float toRef(float f)
Cast
public Integer toRef(int i)
Cast
public Long toRef(long l)
Cast
public Object toRef(Object o)
Cast
public Short toRef(short s)
Cast
public String toRef(String str)
Cast
public Short toShort(boolean b)
Cast
public Short toShort(char c)
Cast
public Short toShort(double d)
Cast
public Short toShort(Object o, Short defaultValue)
Cast
public Short toShort(Object o) throws PageException
Cast
toShort
in interface Cast
o
- Object to castPageException
public short toShortValue(boolean b)
Cast
toShortValue
in interface Cast
b
- boolean value to castpublic short toShortValue(char c)
Cast
toShortValue
in interface Cast
c
- char value to castpublic short toShortValue(double d)
Cast
toShortValue
in interface Cast
d
- double value to castpublic short toShortValue(Object o, short defaultValue)
Cast
toShortValue
in interface Cast
o
- Object to castpublic short toShortValue(Object o) throws PageException
Cast
toShortValue
in interface Cast
o
- Object to castPageException
public String toString(boolean b)
Cast
public String toString(double d)
Cast
public String toString(int i)
Cast
public String toString(long l)
Cast
public String toString(Object o, String defaultValue)
Cast
public String toString(Object o) throws PageException
Cast
toString
in interface Cast
o
- Object to castPageException
public Struct toStruct(Object o, Struct defaultValue)
Cast
public Struct toStruct(Object o) throws PageException
Cast
toStruct
in interface Cast
o
- Object to castPageException
public TimeSpan toTimespan(Object o, TimeSpan defaultValue)
Cast
toTimespan
in interface Cast
o
- Object to castpublic TimeSpan toTimespan(Object o) throws PageException
Cast
toTimespan
in interface Cast
o
- Object to castPageException
public String toTypeName(Object o)
Cast
toTypeName
in interface Cast
o
- Object to get type frompublic Object toUUId(Object o, Object defaultValue)
Cast
public Object toUUId(Object o) throws PageException
Cast
toUUId
in interface Cast
o
- Object to castPageException
public Object toVariableName(Object obj, Object defaultValue)
Cast
toVariableName
in interface Cast
obj
- Object to castpublic Object toVariableName(Object o) throws PageException
Cast
toVariableName
in interface Cast
o
- Object to castPageException
public Object toVoid(Object o, Object defaultValue)
Cast
public Object toVoid(Object o) throws PageException
Cast
toVoid
in interface Cast
PageException
public Node toXML(Object value, Node defaultValue)
Cast
public Node toXML(Object value) throws PageException
Cast
toXML
in interface Cast
PageException
public static Cast getInstance()
public Resource toResource(Object obj) throws PageException
Cast
toResource
in interface Cast
PageException
public Resource toResource(Object obj, Resource defaultValue)
Cast
toResource
in interface Cast
public Object to(String type, Object o, boolean alsoPattern) throws PageException
Cast
to
in interface Cast
PageException
public Serializable toSerializable(Object obj) throws PageException
Cast
toSerializable
in interface Cast
PageException
public Serializable toSerializable(Object object, Serializable defaultValue)
Cast
toSerializable
in interface Cast
Copyright © 2015 Lucee