railo.runtime.op
Class CastImpl

java.lang.Object
  extended by railo.runtime.op.CastImpl
All Implemented Interfaces:
Cast

public final class CastImpl
extends Object
implements Cast

Implementation of the cast interface


Constructor Summary
CastImpl()
           
 
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
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CastImpl

public CastImpl()
Method Detail

castTo

public Object castTo(PageContext pc,
                     short type,
                     Object o)
              throws PageException
Description copied from interface: Cast
cast a value to a value defined by type argument

Specified by:
castTo in interface Cast
type - type of the returning Value (Example: Cast.TYPE_QUERY)
o - Object to cast
Returns:
casted Value
Throws:
PageException

castTo

public Object castTo(PageContext pc,
                     short type,
                     String strType,
                     Object o)
              throws PageException
Description copied from interface: Cast
cast a value to a value defined by type argument

Specified by:
castTo in interface Cast
type - type of the returning Value (Example: Cast.TYPE_QUERY)
strType - type as String
o - Object to cast
Returns:
casted Value
Throws:
PageException

castTo

public Object castTo(PageContext pc,
                     String type,
                     Object o)
              throws PageException
Description copied from interface: Cast
cast a value to a value defined by type argument

Specified by:
castTo in interface Cast
type - type of the returning Value
o - Object to cast
Returns:
casted Value
Throws:
PageException

castTo

public Object castTo(PageContext pc,
                     String type,
                     Object o,
                     boolean alsoPattern)
              throws PageException
Description copied from interface: Cast
cast a value to a value defined by type argument

Specified by:
castTo in interface Cast
type - type of the returning Value
o - Object to cast
alsoPattern - mean supporting also none real types like email or creditcard ...
Returns:
casted Value
Throws:
PageException

toArray

public Array toArray(Object obj,
                     Array defaultValue)
Description copied from interface: Cast
cast a Object to a Array Object

Specified by:
toArray in interface Cast
Parameters:
obj - Object to cast
Returns:
casted Array

toArray

public Array toArray(Object obj)
              throws PageException
Description copied from interface: Cast
cast a Object to a Array Object

Specified by:
toArray in interface Cast
Parameters:
obj - Object to cast
Returns:
casted Array
Throws:
PageException

toBase64

public String toBase64(Object o,
                       String defaultValue)
Description copied from interface: Cast
cast a Object to a Base64 value

Specified by:
toBase64 in interface Cast
Parameters:
o - Object to cast
Returns:
to Base64 String

toBase64

public String toBase64(Object o)
                throws PageException
Description copied from interface: Cast
cast a Object to a Base64 value

Specified by:
toBase64 in interface Cast
Parameters:
o - Object to cast
Returns:
to Base64 String
Throws:
PageException

toBinary

public byte[] toBinary(Object obj,
                       byte[] defaultValue)
Description copied from interface: Cast
cast a Object to a Binary

Specified by:
toBinary in interface Cast
Parameters:
obj - Object to cast
Returns:
casted Binary

toBinary

public byte[] toBinary(Object obj)
                throws PageException
Description copied from interface: Cast
cast a Object to a Binary

Specified by:
toBinary in interface Cast
Parameters:
obj - Object to cast
Returns:
casted Binary
Throws:
PageException

toBoolean

public Boolean toBoolean(boolean b)
Description copied from interface: Cast
cast a boolean value to a Boolean Object(reference type)

Specified by:
toBoolean in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted Boolean Object

toBoolean

public Boolean toBoolean(char c)
Description copied from interface: Cast
cast a char value to a Boolean Object(reference type)

Specified by:
toBoolean in interface Cast
Parameters:
c - char value to cast
Returns:
casted Boolean Object

toBoolean

public Boolean toBoolean(double d)
Description copied from interface: Cast
cast a double value to a Boolean Object(reference type)

Specified by:
toBoolean in interface Cast
Parameters:
d - double value to cast
Returns:
casted Boolean Object

toBoolean

public Boolean toBoolean(Object o,
                         Boolean defaultValue)
Description copied from interface: Cast
cast a Object to a boolean value (refrence type), Exception Less

Specified by:
toBoolean in interface Cast
Parameters:
o - Object to cast
defaultValue - default value
Returns:
casted boolean reference

toBoolean

public Boolean toBoolean(Object o)
                  throws PageException
Description copied from interface: Cast
cast a Object to a Boolean Object(reference type)

Specified by:
toBoolean in interface Cast
Parameters:
o - Object to cast
Returns:
casted Boolean Object
Throws:
PageException

toBoolean

public Boolean toBoolean(String str,
                         Boolean defaultValue)
Description copied from interface: Cast
cast a Object to a boolean value (refrence type), Exception Less

Specified by:
toBoolean in interface Cast
Parameters:
str - String to cast
defaultValue - default value
Returns:
casted boolean reference

toBoolean

public Boolean toBoolean(String str)
                  throws PageException
Description copied from interface: Cast
cast a Object to a Boolean Object(reference type)

Specified by:
toBoolean in interface Cast
Parameters:
str - String to cast
Returns:
casted Boolean Object
Throws:
PageException

toBooleanValue

public boolean toBooleanValue(boolean b)
Description copied from interface: Cast
cast a boolean value to a boolean value (do nothing)

Specified by:
toBooleanValue in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted boolean value

toBooleanValue

public boolean toBooleanValue(char c)
Description copied from interface: Cast
cast a double value to a boolean value (primitive value type)

Specified by:
toBooleanValue in interface Cast
Parameters:
c - char value to cast
Returns:
casted boolean value

toBooleanValue

public boolean toBooleanValue(double d)
Description copied from interface: Cast
cast a double value to a boolean value (primitive value type)

Specified by:
toBooleanValue in interface Cast
Parameters:
d - double value to cast
Returns:
casted boolean value

toBooleanValue

public boolean toBooleanValue(Object o,
                              boolean defaultValue)
Description copied from interface: Cast
cast a Object to a boolean value (primitive value type), Exception Less

Specified by:
toBooleanValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted boolean value

toBooleanValue

public boolean toBooleanValue(Object o)
                       throws PageException
Description copied from interface: Cast
cast a Object to a boolean value (primitive value type)

Specified by:
toBooleanValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted boolean value
Throws:
PageException

toBooleanValue

public boolean toBooleanValue(String str,
                              boolean defaultValue)
Description copied from interface: Cast
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

Specified by:
toBooleanValue in interface Cast
Parameters:
str - String to cast
Returns:
casted boolean value

toBooleanValue

public boolean toBooleanValue(String str)
                       throws PageException
Description copied from interface: Cast
cast a String to a boolean value (primitive value type)

Specified by:
toBooleanValue in interface Cast
Parameters:
str - String to cast
Returns:
casted boolean value
Throws:
PageException

toByte

public Byte toByte(boolean b)
Description copied from interface: Cast
cast a boolean value to a Byte Object(reference type)

Specified by:
toByte in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted Byte Object

toByte

public Byte toByte(char c)
Description copied from interface: Cast
cast a char value to a Byte Object(reference type)

Specified by:
toByte in interface Cast
Parameters:
c - char value to cast
Returns:
casted Byte Object

toByte

public Byte toByte(double d)
Description copied from interface: Cast
cast a double value to a Byte Object(reference type)

Specified by:
toByte in interface Cast
Parameters:
d - double value to cast
Returns:
casted Byte Object

toByte

public Byte toByte(Object o,
                   Byte defaultValue)
Description copied from interface: Cast
cast a Object to a Byte Object(reference type)

Specified by:
toByte in interface Cast
Parameters:
o - Object to cast
Returns:
casted Byte Object

toByte

public Byte toByte(Object o)
            throws PageException
Description copied from interface: Cast
cast a Object to a Byte Object(reference type)

Specified by:
toByte in interface Cast
Parameters:
o - Object to cast
Returns:
casted Byte Object
Throws:
PageException

toByteValue

public byte toByteValue(boolean b)
Description copied from interface: Cast
cast a boolean value to a byte value

Specified by:
toByteValue in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted byte value

toByteValue

public byte toByteValue(char c)
Description copied from interface: Cast
cast a char value to a byte value (do nothing)

Specified by:
toByteValue in interface Cast
Parameters:
c - char value to cast
Returns:
casted byte value

toByteValue

public byte toByteValue(double d)
Description copied from interface: Cast
cast a double value to a byte value (primitive value type)

Specified by:
toByteValue in interface Cast
Parameters:
d - double value to cast
Returns:
casted byte value

toByteValue

public byte toByteValue(Object o,
                        byte defaultValue)
Description copied from interface: Cast
cast a Object to a byte value (primitive value type)

Specified by:
toByteValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted byte value

toByteValue

public byte toByteValue(Object o)
                 throws PageException
Description copied from interface: Cast
cast a Object to a byte value (primitive value type)

Specified by:
toByteValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted byte value
Throws:
PageException

toCharacter

public Character toCharacter(boolean b)
Description copied from interface: Cast
cast a boolean value to a Character Object(reference type)

Specified by:
toCharacter in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted Character Object

toCharacter

public Character toCharacter(char c)
Description copied from interface: Cast
cast a char value to a Character Object(reference type)

Specified by:
toCharacter in interface Cast
Parameters:
c - char value to cast
Returns:
casted Character Object

toCharacter

public Character toCharacter(double d)
Description copied from interface: Cast
cast a double value to a Character Object(reference type)

Specified by:
toCharacter in interface Cast
Parameters:
d - double value to cast
Returns:
casted Character Object

toCharacter

public Character toCharacter(Object o,
                             Character defaultValue)
Description copied from interface: Cast
cast a Object to a Character Object(reference type)

Specified by:
toCharacter in interface Cast
Parameters:
o - Object to cast
Returns:
casted Character Object

toCharacter

public Character toCharacter(Object o)
                      throws PageException
Description copied from interface: Cast
cast a Object to a Character Object(reference type)

Specified by:
toCharacter in interface Cast
Parameters:
o - Object to cast
Returns:
casted Character Object
Throws:
PageException

toCharValue

public char toCharValue(boolean b)
Description copied from interface: Cast
cast a boolean value to a char value

Specified by:
toCharValue in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted char value

toCharValue

public char toCharValue(char c)
Description copied from interface: Cast
cast a char value to a char value (do nothing)

Specified by:
toCharValue in interface Cast
Parameters:
c - char value to cast
Returns:
casted char value

toCharValue

public char toCharValue(double d)
Description copied from interface: Cast
cast a double value to a char value (primitive value type)

Specified by:
toCharValue in interface Cast
Parameters:
d - double value to cast
Returns:
casted char value

toCharValue

public char toCharValue(Object o,
                        char defaultValue)
Description copied from interface: Cast
cast a Object to a char value (primitive value type)

Specified by:
toCharValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted char value

toCharValue

public char toCharValue(Object o)
                 throws PageException
Description copied from interface: Cast
cast a Object to a char value (primitive value type)

Specified by:
toCharValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted char value
Throws:
PageException

toCollection

public Collection toCollection(Object o,
                               Collection defaultValue)
Description copied from interface: Cast
cast a Object to a Collection, if not returns null

Specified by:
toCollection in interface Cast
Parameters:
o - Object to cast
Returns:
casted Collection

toCollection

public Collection toCollection(Object o)
                        throws PageException
Description copied from interface: Cast
cast a Object to a Collection

Specified by:
toCollection in interface Cast
Parameters:
o - Object to cast
Returns:
casted Collection
Throws:
PageException

toColor

public Color toColor(Object o)
              throws PageException
Description copied from interface: Cast
cast to a color object

Specified by:
toColor in interface Cast
Parameters:
o - Object to cast
Throws:
PageException

toDate

public DateTime toDate(boolean b,
                       TimeZone tz)
Description copied from interface: Cast
cast a boolean to a DateTime Object

Specified by:
toDate in interface Cast
Parameters:
b - boolean to cast
Returns:
casted DateTime Object

toDate

public DateTime toDate(char c,
                       TimeZone tz)
Description copied from interface: Cast
cast a char to a DateTime Object

Specified by:
toDate in interface Cast
Parameters:
c - char to cast
Returns:
casted DateTime Object

toDate

public DateTime toDate(double d,
                       TimeZone tz)
Description copied from interface: Cast
cast a double to a DateTime Object

Specified by:
toDate in interface Cast
Parameters:
d - double to cast
Returns:
casted DateTime Object

toDate

public DateTime toDate(Locale locale,
                       String str,
                       TimeZone tz,
                       DateTime defaultValue)
Description copied from interface: Cast
parse a string to a Datetime Object, returns null if can't convert

Specified by:
toDate in interface Cast
str - String representation of a locale Date
Returns:
datetime object

toDate

public DateTime toDate(Locale locale,
                       String str,
                       TimeZone tz)
                throws PageException
Description copied from interface: Cast
parse a string to a Datetime Object

Specified by:
toDate in interface Cast
str - String representation of a locale Date
Returns:
DateTime Object
Throws:
PageException

toDate

public DateTime toDate(Object o,
                       boolean alsoNumbers,
                       TimeZone tz,
                       DateTime defaultValue)
Description copied from interface: Cast
cast a Object to a DateTime Object

Specified by:
toDate in interface Cast
Parameters:
o - Object to cast
alsoNumbers - define if also numbers will casted to a datetime value
Returns:
casted DateTime Object

toDate

public DateTime toDate(Object o,
                       TimeZone tz)
                throws PageException
Description copied from interface: Cast
cast a Object to a DateTime Object

Specified by:
toDate in interface Cast
Parameters:
o - Object to cast
Returns:
casted DateTime Object
Throws:
PageException

toDate

public DateTime toDate(String str,
                       boolean alsoNumbers,
                       TimeZone tz,
                       DateTime defaultValue)
Description copied from interface: Cast
cast a Object to a DateTime Object

Specified by:
toDate in interface Cast
Parameters:
str - String to cast
alsoNumbers - define if also numbers will casted to a datetime value
Returns:
casted DateTime Object

toDate

public DateTime toDate(String str,
                       TimeZone tz)
                throws PageException
Description copied from interface: Cast
cast a Object to a DateTime Object

Specified by:
toDate in interface Cast
Parameters:
str - String to cast
Returns:
casted DateTime Object
Throws:
PageException

toDatetime

public DateTime toDatetime(Object o,
                           TimeZone tz)
                    throws PageException
Description copied from interface: Cast
cast a Object to a DateTime Object (alias for toDateTime)

Specified by:
toDatetime in interface Cast
Parameters:
o - Object to cast
Returns:
casted DateTime Object
Throws:
PageException

toDateTime

public DateTime toDateTime(Object o,
                           TimeZone tz)
                    throws PageException
Description copied from interface: Cast
cast a Object to a DateTime Object

Specified by:
toDateTime in interface Cast
Parameters:
o - Object to cast
Returns:
casted DateTime Object
Throws:
PageException

toDecimal

public String toDecimal(boolean b)
Description copied from interface: Cast
cast a boolean to a decimal value (String:xx.xx)

Specified by:
toDecimal in interface Cast
Parameters:
b - boolean to cast
Returns:
casted decimal value

toDecimal

public String toDecimal(char c)
Description copied from interface: Cast
cast a char to a decimal value (String:xx.xx)

Specified by:
toDecimal in interface Cast
Parameters:
c - char to cast
Returns:
casted decimal value

toDecimal

public String toDecimal(double d)
Description copied from interface: Cast
cast a double to a decimal value (String:xx.xx)

Specified by:
toDecimal in interface Cast
Parameters:
d - double to cast
Returns:
casted decimal value

toDecimal

public String toDecimal(Object value,
                        String defaultValue)
Description copied from interface: Cast
cast a double to a decimal value (String:xx.xx)

Specified by:
toDecimal in interface Cast
Parameters:
value - Object to cast
Returns:
casted decimal value

toDecimal

public String toDecimal(Object value)
                 throws PageException
Description copied from interface: Cast
cast a double to a decimal value (String:xx.xx)

Specified by:
toDecimal in interface Cast
Parameters:
value - Object to cast
Returns:
casted decimal value
Throws:
PageException

toDouble

public Double toDouble(boolean b)
Description copied from interface: Cast
cast a boolean value to a Double Object (reference Type)

Specified by:
toDouble in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted Double Object

toDouble

public Double toDouble(char c)
Description copied from interface: Cast
cast a char value to a Double Object (reference Type)

Specified by:
toDouble in interface Cast
Parameters:
c - char value to cast
Returns:
casted Double Object

toDouble

public Double toDouble(double d)
Description copied from interface: Cast
cast a double value to a Double Object (reference Type)

Specified by:
toDouble in interface Cast
Parameters:
d - double value to cast
Returns:
casted Double Object

toDouble

public Double toDouble(Object o,
                       Double defaultValue)
Description copied from interface: Cast
cast a Object to a Double Object (reference Type)

Specified by:
toDouble in interface Cast
Parameters:
o - Object to cast
Returns:
casted Double Object

toDouble

public Double toDouble(Object o)
                throws PageException
Description copied from interface: Cast
cast a Object to a Double Object (reference Type)

Specified by:
toDouble in interface Cast
Parameters:
o - Object to cast
Returns:
casted Double Object
Throws:
PageException

toDouble

public Double toDouble(String str,
                       Double defaultValue)
Description copied from interface: Cast
cast a String to a Double Object (reference Type)

Specified by:
toDouble in interface Cast
Parameters:
str - String to cast
Returns:
casted Double Object

toDouble

public Double toDouble(String str)
                throws PageException
Description copied from interface: Cast
cast a String to a Double Object (reference Type)

Specified by:
toDouble in interface Cast
Parameters:
str - String to cast
Returns:
casted Double Object
Throws:
PageException

toDoubleValue

public double toDoubleValue(boolean b)
Description copied from interface: Cast
cast a boolean value to a double value (primitive value type)

Specified by:
toDoubleValue in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted double value

toDoubleValue

public double toDoubleValue(char c)
Description copied from interface: Cast
cast a char value to a double value (primitive value type)

Specified by:
toDoubleValue in interface Cast
Parameters:
c - char value to cast
Returns:
casted double value

toDoubleValue

public double toDoubleValue(double d)
Description copied from interface: Cast
cast a double value to a double value (do nothing)

Specified by:
toDoubleValue in interface Cast
Parameters:
d - double value to cast
Returns:
casted double value

toDoubleValue

public double toDoubleValue(Object o,
                            double defaultValue)
Description copied from interface: Cast
cast a Object to a double value (primitive value Type)

Specified by:
toDoubleValue in interface Cast
Parameters:
o - Object to cast
defaultValue - if can't cast return this value
Returns:
casted double value

toDoubleValue

public double toDoubleValue(Object o)
                     throws PageException
Description copied from interface: Cast
cast a Object to a double value (primitive value Type)

Specified by:
toDoubleValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted double value
Throws:
PageException

toDoubleValue

public double toDoubleValue(String str,
                            double defaultValue)
Description copied from interface: Cast
cast a Object to a double value (primitive value Type), if can't return Double.NaN

Specified by:
toDoubleValue in interface Cast
Parameters:
str - String to cast
defaultValue - if can't cast return this value
Returns:
casted double value

toDoubleValue

public double toDoubleValue(String str)
                     throws PageException
Description copied from interface: Cast
cast a Object to a double value (primitive value Type)

Specified by:
toDoubleValue in interface Cast
Parameters:
str - String to cast
Returns:
casted double value
Throws:
PageException

toFile

public File toFile(Object obj,
                   File defaultValue)
Description copied from interface: Cast
convert a object to a File

Specified by:
toFile in interface Cast
Returns:
File

toFile

public File toFile(Object obj)
            throws PageException
Description copied from interface: Cast
convert a object to a File

Specified by:
toFile in interface Cast
Returns:
File
Throws:
PageException

toInteger

public Integer toInteger(boolean b)
Description copied from interface: Cast
casts a boolean to a Integer

Specified by:
toInteger in interface Cast
Returns:
Integer from boolean

toInteger

public Integer toInteger(char c)
Description copied from interface: Cast
casts a char to a Integer

Specified by:
toInteger in interface Cast
Returns:
Integer from char

toInteger

public Integer toInteger(double d)
Description copied from interface: Cast
casts a double to a Integer

Specified by:
toInteger in interface Cast
Returns:
Integer from double

toInteger

public Integer toInteger(Object o,
                         Integer defaultValue)
Description copied from interface: Cast
casts a Object to a Integer

Specified by:
toInteger in interface Cast
Parameters:
o - Object to cast to Integer
Returns:
Integer from Object

toInteger

public Integer toInteger(Object o)
                  throws PageException
Description copied from interface: Cast
casts a Object to a Integer

Specified by:
toInteger in interface Cast
Parameters:
o - Object to cast to Integer
Returns:
Integer from Object
Throws:
PageException

toIntValue

public int toIntValue(boolean b)
Description copied from interface: Cast
cast a boolean value to a int value (primitive value type)

Specified by:
toIntValue in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted int value

toIntValue

public int toIntValue(char c)
Description copied from interface: Cast
cast a char value to a int value (primitive value type)

Specified by:
toIntValue in interface Cast
Parameters:
c - char value to cast
Returns:
casted int value

toIntValue

public int toIntValue(double d)
Description copied from interface: Cast
cast a double value to a int value (primitive value type)

Specified by:
toIntValue in interface Cast
Parameters:
d - double value to cast
Returns:
casted int value

toIntValue

public int toIntValue(Object o,
                      int defaultValue)
Description copied from interface: Cast
cast a Object to a int value (primitive value type)

Specified by:
toIntValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted int value

toIntValue

public int toIntValue(Object o)
               throws PageException
Description copied from interface: Cast
cast a Object to a int value (primitive value type)

Specified by:
toIntValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted int value
Throws:
PageException

toIntValue

public int toIntValue(String str,
                      int defaultValue)
Description copied from interface: Cast
cast a Object to a double value (primitive value Type), if can't return Integer.MIN_VALUE

Specified by:
toIntValue in interface Cast
Parameters:
str - String to cast
Returns:
casted double value

toIntValue

public int toIntValue(String str)
               throws PageException
Description copied from interface: Cast
cast a String to a int value (primitive value type)

Specified by:
toIntValue in interface Cast
Parameters:
str - String to cast
Returns:
casted int value
Throws:
PageException

toIterator

public Iterator toIterator(Object o)
                    throws PageException
Description copied from interface: Cast
cast a Object to a Iterator or get Iterator from Object

Specified by:
toIterator in interface Cast
Parameters:
o - Object to cast
Returns:
casted Collection
Throws:
PageException

toList

public List toList(Object o,
                   boolean duplicate,
                   List defaultValue)
Description copied from interface: Cast
cast a Object to a Array Object

Specified by:
toList in interface Cast
Parameters:
o - Object to cast
Returns:
casted Array

toList

public List toList(Object o,
                   boolean duplicate)
            throws PageException
Description copied from interface: Cast
cast a Object to a Array Object

Specified by:
toList in interface Cast
Parameters:
o - Object to cast
Returns:
casted Array
Throws:
PageException

toList

public List toList(Object o,
                   List defaultValue)
Description copied from interface: Cast
cast a Object to a Array Object

Specified by:
toList in interface Cast
Parameters:
o - Object to cast
Returns:
casted Array

toList

public List toList(Object o)
            throws PageException
Description copied from interface: Cast
cast a Object to a Array Object

Specified by:
toList in interface Cast
Parameters:
o - Object to cast
Returns:
casted Array
Throws:
PageException

toLocale

public Locale toLocale(String strLocale,
                       Locale defaultValue)
Description copied from interface: Cast
casts a string to a Locale

Specified by:
toLocale in interface Cast
Returns:
Locale from String

toLocale

public Locale toLocale(String strLocale)
                throws PageException
Description copied from interface: Cast
casts a string to a Locale

Specified by:
toLocale in interface Cast
Returns:
Locale ferom String
Throws:
PageException

toLong

public Long toLong(boolean b)
Description copied from interface: Cast
cast a boolean value to a Long Object(reference type)

Specified by:
toLong in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted Long Object

toLong

public Long toLong(char c)
Description copied from interface: Cast
cast a char value to a Long Object(reference type)

Specified by:
toLong in interface Cast
Parameters:
c - char value to cast
Returns:
casted Long Object

toLong

public Long toLong(double d)
Description copied from interface: Cast
cast a double value to a Long Object(reference type)

Specified by:
toLong in interface Cast
Parameters:
d - double value to cast
Returns:
casted Long Object

toLong

public Long toLong(Object o,
                   Long defaultValue)
Description copied from interface: Cast
cast a Object to a Long Object(reference type)

Specified by:
toLong in interface Cast
Parameters:
o - Object to cast
Returns:
casted Long Object

toLong

public Long toLong(Object o)
            throws PageException
Description copied from interface: Cast
cast a Object to a Long Object(reference type)

Specified by:
toLong in interface Cast
Parameters:
o - Object to cast
Returns:
casted Long Object
Throws:
PageException

toLongValue

public long toLongValue(boolean b)
Description copied from interface: Cast
cast a boolean value to a long value

Specified by:
toLongValue in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted long value

toLongValue

public long toLongValue(char c)
Description copied from interface: Cast
cast a char value to a long value (do nothing)

Specified by:
toLongValue in interface Cast
Parameters:
c - char value to cast
Returns:
casted long value

toLongValue

public long toLongValue(double d)
Description copied from interface: Cast
cast a double value to a long value (primitive value type)

Specified by:
toLongValue in interface Cast
Parameters:
d - double value to cast
Returns:
casted long value

toLongValue

public long toLongValue(Object o,
                        long defaultValue)
Description copied from interface: Cast
cast a Object to a long value (primitive value type)

Specified by:
toLongValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted long value

toLongValue

public long toLongValue(Object o)
                 throws PageException
Description copied from interface: Cast
cast a Object to a long value (primitive value type)

Specified by:
toLongValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted long value
Throws:
PageException

toMap

public Map toMap(Object o,
                 boolean duplicate,
                 Map defaultValue)
Description copied from interface: Cast
cast a Object to a Map Object

Specified by:
toMap in interface Cast
Parameters:
o - Object to cast
Returns:
casted Struct

toMap

public Map toMap(Object o,
                 boolean duplicate)
          throws PageException
Description copied from interface: Cast
cast a Object to a Map Object

Specified by:
toMap in interface Cast
Parameters:
o - Object to cast
Returns:
casted Struct
Throws:
PageException

toMap

public Map toMap(Object o,
                 Map defaultValue)
Description copied from interface: Cast
cast a Object to a Map Object

Specified by:
toMap in interface Cast
Parameters:
o - Object to cast
Returns:
casted Struct

toMap

public Map toMap(Object o)
          throws PageException
Description copied from interface: Cast
cast a Object to a Map Object

Specified by:
toMap in interface Cast
Parameters:
o - Object to cast
Returns:
casted Struct
Throws:
PageException

toNode

public Node toNode(Object o,
                   Node defaultValue)
Description copied from interface: Cast
casts a Object to a XML Node

Specified by:
toNode in interface Cast
Parameters:
o - Object to Cast
Returns:
Node from Object

toNode

public Node toNode(Object o)
            throws PageException
Description copied from interface: Cast
casts a Object to a XML Node

Specified by:
toNode in interface Cast
Parameters:
o - Object to Cast
Returns:
Node from Object
Throws:
PageException

toNodeList

public NodeList toNodeList(Object o,
                           NodeList defaultValue)
Description copied from interface: Cast
casts a Object to a Node List

Specified by:
toNodeList in interface Cast
Parameters:
o - Object to Cast
Returns:
NodeList from Object

toNodeList

public NodeList toNodeList(Object o)
                    throws PageException
Description copied from interface: Cast
casts a Object to a Node List

Specified by:
toNodeList in interface Cast
Parameters:
o - Object to Cast
Returns:
NodeList from Object
Throws:
PageException

toNull

public Object toNull(Object value,
                     Object defaultValue)
Description copied from interface: Cast
casts a Object to null

Specified by:
toNull in interface Cast
Returns:
to null from Object

toNull

public Object toNull(Object value)
              throws PageException
Description copied from interface: Cast
casts a Object to null

Specified by:
toNull in interface Cast
Returns:
to null from Object
Throws:
PageException

toKey

public Collection.Key toKey(Object o)
                     throws PageException
Specified by:
toKey in interface Cast
Throws:
PageException

toKey

public Collection.Key toKey(Object o,
                            Collection.Key defaultValue)
Specified by:
toKey in interface Cast

toPageException

public PageException toPageException(Throwable t)
Description copied from interface: Cast
cast a Throwable Object to a PageException Object

Specified by:
toPageException in interface Cast
Parameters:
t - Throwable to cast
Returns:
casted PageException Object

toQuery

public Query toQuery(Object o,
                     boolean duplicate,
                     Query defaultValue)
Description copied from interface: Cast
cast a Object to a Query Object

Specified by:
toQuery in interface Cast
Parameters:
o - Object to cast
duplicate - duplicate the object or not
Returns:
casted Query Object

toQuery

public Query toQuery(Object o,
                     boolean duplicate)
              throws PageException
Description copied from interface: Cast
cast a Object to a Query Object

Specified by:
toQuery in interface Cast
Parameters:
o - Object to cast
duplicate - duplicate the object or not
Returns:
casted Query Object
Throws:
PageException

toQuery

public Query toQuery(Object o,
                     Query defaultValue)
Description copied from interface: Cast
cast a Object to a Query Object

Specified by:
toQuery in interface Cast
Parameters:
o - Object to cast
Returns:
casted Query Object

toQuery

public Query toQuery(Object o)
              throws PageException
Description copied from interface: Cast
cast a Object to a Query Object

Specified by:
toQuery in interface Cast
Parameters:
o - Object to cast
Returns:
casted Query Object
Throws:
PageException

toRef

public Boolean toRef(boolean b)
Description copied from interface: Cast
cast a boolean value to his (CFML) reference type Boolean

Specified by:
toRef in interface Cast
Parameters:
b - boolean to cast
Returns:
casted Boolean

toRef

public Byte toRef(byte b)
Description copied from interface: Cast
cast a byte value to his (CFML) reference type Boolean

Specified by:
toRef in interface Cast
Parameters:
b - byte to cast
Returns:
casted Boolean

toRef

public String toRef(char c)
Description copied from interface: Cast
cast a char value to his (CFML) reference type String

Specified by:
toRef in interface Cast
Parameters:
c - char to cast
Returns:
casted String

toRef

public Collection toRef(Collection o)
Description copied from interface: Cast
cast a Collection to a reference type (Object), in that case this method to nothing, because a Collection is already a reference type

Specified by:
toRef in interface Cast
Parameters:
o - Collection to cast
Returns:
casted Object

toRef

public Double toRef(double d)
Description copied from interface: Cast
cast a double value to his (CFML) reference type Double

Specified by:
toRef in interface Cast
Parameters:
d - doble to cast
Returns:
casted Double

toRef

public Float toRef(float f)
Description copied from interface: Cast
cast a float value to his (CFML) reference type Float

Specified by:
toRef in interface Cast
Parameters:
f - float to cast
Returns:
casted Float

toRef

public Integer toRef(int i)
Description copied from interface: Cast
cast a int value to his (CFML) reference type Integer

Specified by:
toRef in interface Cast
Parameters:
i - int to cast
Returns:
casted Integer

toRef

public Long toRef(long l)
Description copied from interface: Cast
cast a long value to his (CFML) reference type Long

Specified by:
toRef in interface Cast
Parameters:
l - long to cast
Returns:
casted Long

toRef

public Object toRef(Object o)
Description copied from interface: Cast
cast a Object to a reference type (Object), in that case this method to nothing, because a Object is already a reference type

Specified by:
toRef in interface Cast
Parameters:
o - Object to cast
Returns:
casted Object

toRef

public Short toRef(short s)
Description copied from interface: Cast
cast a short value to his (CFML) reference type Integer

Specified by:
toRef in interface Cast
Parameters:
s - short to cast
Returns:
casted Integer

toRef

public String toRef(String str)
Description copied from interface: Cast
cast a String to a reference type (Object), in that case this method to nothing, because a String is already a reference type

Specified by:
toRef in interface Cast
Parameters:
str - Object to cast
Returns:
casted Object

toShort

public Short toShort(boolean b)
Description copied from interface: Cast
cast a boolean value to a Short Object(reference type)

Specified by:
toShort in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted Short Object

toShort

public Short toShort(char c)
Description copied from interface: Cast
cast a char value to a Short Object(reference type)

Specified by:
toShort in interface Cast
Parameters:
c - char value to cast
Returns:
casted Short Object

toShort

public Short toShort(double d)
Description copied from interface: Cast
cast a double value to a Byte Object(reference type)

Specified by:
toShort in interface Cast
Parameters:
d - double value to cast
Returns:
casted Byte Object

toShort

public Short toShort(Object o,
                     Short defaultValue)
Description copied from interface: Cast
cast a Object to a Short Object(reference type)

Specified by:
toShort in interface Cast
Parameters:
o - Object to cast
Returns:
casted Short Object

toShort

public Short toShort(Object o)
              throws PageException
Description copied from interface: Cast
cast a Object to a Short Object(reference type)

Specified by:
toShort in interface Cast
Parameters:
o - Object to cast
Returns:
casted Short Object
Throws:
PageException

toShortValue

public short toShortValue(boolean b)
Description copied from interface: Cast
cast a boolean value to a short value

Specified by:
toShortValue in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted short value

toShortValue

public short toShortValue(char c)
Description copied from interface: Cast
cast a char value to a short value (do nothing)

Specified by:
toShortValue in interface Cast
Parameters:
c - char value to cast
Returns:
casted short value

toShortValue

public short toShortValue(double d)
Description copied from interface: Cast
cast a double value to a short value (primitive value type)

Specified by:
toShortValue in interface Cast
Parameters:
d - double value to cast
Returns:
casted short value

toShortValue

public short toShortValue(Object o,
                          short defaultValue)
Description copied from interface: Cast
cast a Object to a short value (primitive value type)

Specified by:
toShortValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted short value

toShortValue

public short toShortValue(Object o)
                   throws PageException
Description copied from interface: Cast
cast a Object to a short value (primitive value type)

Specified by:
toShortValue in interface Cast
Parameters:
o - Object to cast
Returns:
casted short value
Throws:
PageException

toString

public String toString(boolean b)
Description copied from interface: Cast
cast a boolean value to a String

Specified by:
toString in interface Cast
Parameters:
b - boolean value to cast
Returns:
casted String

toString

public String toString(double d)
Description copied from interface: Cast
cast a double value to a String

Specified by:
toString in interface Cast
Parameters:
d - double value to cast
Returns:
casted String

toString

public String toString(int i)
Description copied from interface: Cast
cast a int value to a String

Specified by:
toString in interface Cast
Parameters:
i - int value to cast
Returns:
casted String

toString

public String toString(long l)
Description copied from interface: Cast
cast a long value to a String

Specified by:
toString in interface Cast
Parameters:
l - long value to cast
Returns:
casted String

toString

public String toString(Object o,
                       String defaultValue)
Description copied from interface: Cast
cast a Object to a String dont throw a exception, if can't cast to a string return a empty string

Specified by:
toString in interface Cast
Parameters:
o - Object to cast
Returns:
casted String

toString

public String toString(Object o)
                throws PageException
Description copied from interface: Cast
cast a Object to a String

Specified by:
toString in interface Cast
Parameters:
o - Object to cast
Returns:
casted String
Throws:
PageException

toStruct

public Struct toStruct(Object o,
                       Struct defaultValue,
                       boolean caseSensitive)
Specified by:
toStruct in interface Cast

toStruct

public Struct toStruct(Object o,
                       Struct defaultValue)
Description copied from interface: Cast
cast a Object to a Struct Object

Specified by:
toStruct in interface Cast
Parameters:
o - Object to cast
Returns:
casted Struct

toStruct

public Struct toStruct(Object o)
                throws PageException
Description copied from interface: Cast
cast a Object to a Struct Object

Specified by:
toStruct in interface Cast
Parameters:
o - Object to cast
Returns:
casted Struct
Throws:
PageException

toTimespan

public TimeSpan toTimespan(Object o,
                           TimeSpan defaultValue)
Description copied from interface: Cast
cast a Object to a TimeSpan Object (alias for toTimeSpan)

Specified by:
toTimespan in interface Cast
Parameters:
o - Object to cast
Returns:
casted TimeSpan Object

toTimespan

public TimeSpan toTimespan(Object o)
                    throws PageException
Description copied from interface: Cast
cast a Object to a TimeSpan Object (alias for toTimeSpan)

Specified by:
toTimespan in interface Cast
Parameters:
o - Object to cast
Returns:
casted TimeSpan Object
Throws:
PageException

toTypeName

public String toTypeName(Object o)
Description copied from interface: Cast
return the type name of a object (string, boolean, int aso.), type is not same like class name

Specified by:
toTypeName in interface Cast
Parameters:
o - Object to get type from
Returns:
type of the object

toUUId

public Object toUUId(Object o,
                     Object defaultValue)
Description copied from interface: Cast
cast a Object to a UUID

Specified by:
toUUId in interface Cast
Parameters:
o - Object to cast
Returns:
casted Query Object

toUUId

public Object toUUId(Object o)
              throws PageException
Description copied from interface: Cast
cast a Object to a UUID

Specified by:
toUUId in interface Cast
Parameters:
o - Object to cast
Returns:
casted Query Object
Throws:
PageException

toVariableName

public Object toVariableName(Object obj,
                             Object defaultValue)
Description copied from interface: Cast
cast a Object to a Variable Name

Specified by:
toVariableName in interface Cast
Parameters:
obj - Object to cast
Returns:
casted Variable Name

toVariableName

public Object toVariableName(Object o)
                      throws PageException
Description copied from interface: Cast
cast a Object to a Variable Name

Specified by:
toVariableName in interface Cast
Parameters:
o - Object to cast
Returns:
casted Variable Name
Throws:
PageException

toVoid

public Object toVoid(Object o,
                     Object defaultValue)
Description copied from interface: Cast
cast a value to void (Empty String)

Specified by:
toVoid in interface Cast
Returns:
void value

toVoid

public Object toVoid(Object o)
              throws PageException
Description copied from interface: Cast
cast a value to void (Empty String)

Specified by:
toVoid in interface Cast
Returns:
void value
Throws:
PageException

toXML

public Node toXML(Object value,
                  Node defaultValue)
Description copied from interface: Cast
cast Object to a XML Node

Specified by:
toXML in interface Cast
Returns:
XML Node

toXML

public Node toXML(Object value)
           throws PageException
Description copied from interface: Cast
cast Object to a XML Node

Specified by:
toXML in interface Cast
Returns:
XML Node
Throws:
PageException

getInstance

public static Cast getInstance()

toResource

public Resource toResource(Object obj)
                    throws PageException
Description copied from interface: Cast
convert a object to a Resource

Specified by:
toResource in interface Cast
Returns:
File
Throws:
PageException

toResource

public Resource toResource(Object obj,
                           Resource defaultValue)
Description copied from interface: Cast
convert a object to a Resource

Specified by:
toResource in interface Cast
Returns:
Resource

to

public Object to(String type,
                 Object o,
                 boolean alsoPattern)
          throws PageException
Description copied from interface: Cast
cast to given type

Specified by:
to in interface Cast
Throws:
PageException

toSerializable

public Serializable toSerializable(Object obj)
                            throws PageException
Description copied from interface: Cast
cast Object to a Serializable Object

Specified by:
toSerializable in interface Cast
Throws:
PageException

toSerializable

public Serializable toSerializable(Object object,
                                   Serializable defaultValue)
Description copied from interface: Cast
cast Object to a Serializable Object

Specified by:
toSerializable in interface Cast
Returns:


Copyright © 2012 Railo