railo.runtime.util
Interface Cast


public interface Cast

This class can cast object of one type to a other by cold fusion rules


Method Summary
 java.lang.Object castTo(PageContext pc, short type, java.lang.Object o)
          cast a value to a value defined by type argument
 java.lang.Object castTo(PageContext pc, short type, java.lang.String strType, java.lang.Object o)
          cast a value to a value defined by type argument
 java.lang.Object castTo(PageContext pc, java.lang.String type, java.lang.Object o)
          cast a value to a value defined by type argument
 java.lang.Object castTo(PageContext pc, java.lang.String type, java.lang.Object o, boolean alsoPattern)
          cast a value to a value defined by type argument
 java.lang.Object to(java.lang.String type, java.lang.Object o, boolean alsoPattern)
          cast to given type
 Array toArray(java.lang.Object obj)
          cast a Object to a Array Object
 Array toArray(java.lang.Object obj, Array defaultValue)
          cast a Object to a Array Object
 java.lang.String toBase64(java.lang.Object o)
          cast a Object to a Base64 value
 java.lang.String toBase64(java.lang.Object o, java.lang.String defaultValue)
          cast a Object to a Base64 value
 byte[] toBinary(java.lang.Object obj)
          cast a Object to a Binary
 byte[] toBinary(java.lang.Object obj, byte[] defaultValue)
          cast a Object to a Binary
 java.lang.Boolean toBoolean(boolean b)
          cast a boolean value to a Boolean Object(reference type)
 java.lang.Boolean toBoolean(char c)
          cast a char value to a Boolean Object(reference type)
 java.lang.Boolean toBoolean(double d)
          cast a double value to a Boolean Object(reference type)
 java.lang.Boolean toBoolean(java.lang.Object o)
          cast a Object to a Boolean Object(reference type)
 java.lang.Boolean toBoolean(java.lang.Object o, java.lang.Boolean defaultValue)
          cast a Object to a boolean value (refrence type), Exception Less
 java.lang.Boolean toBoolean(java.lang.String str)
          cast a Object to a Boolean Object(reference type)
 java.lang.Boolean toBoolean(java.lang.String str, java.lang.Boolean defaultValue)
          cast a Object to a boolean value (refrence type), Exception Less
 boolean toBooleanValue(boolean b)
          cast a boolean value to a boolean value (do nothing)
 boolean toBooleanValue(char c)
          cast a double value to a boolean value (primitive value type)
 boolean toBooleanValue(double d)
          cast a double value to a boolean value (primitive value type)
 boolean toBooleanValue(java.lang.Object o)
          cast a Object to a boolean value (primitive value type)
 boolean toBooleanValue(java.lang.Object o, boolean defaultValue)
          cast a Object to a boolean value (primitive value type), Exception Less
 boolean toBooleanValue(java.lang.String str)
          cast a String to a boolean value (primitive value type)
 boolean toBooleanValue(java.lang.String str, boolean defaultValue)
          cast a String to a boolean value (primitive value type), return 1 for true, 0 for false and -1 if can't cast to a boolean type
 java.lang.Byte toByte(boolean b)
          cast a boolean value to a Byte Object(reference type)
 java.lang.Byte toByte(char c)
          cast a char value to a Byte Object(reference type)
 java.lang.Byte toByte(double d)
          cast a double value to a Byte Object(reference type)
 java.lang.Byte toByte(java.lang.Object o)
          cast a Object to a Byte Object(reference type)
 java.lang.Byte toByte(java.lang.Object o, java.lang.Byte defaultValue)
          cast a Object to a Byte Object(reference type)
 byte toByteValue(boolean b)
          cast a boolean value to a byte value
 byte toByteValue(char c)
          cast a char value to a byte value (do nothing)
 byte toByteValue(double d)
          cast a double value to a byte value (primitive value type)
 byte toByteValue(java.lang.Object o)
          cast a Object to a byte value (primitive value type)
 byte toByteValue(java.lang.Object o, byte defaultValue)
          cast a Object to a byte value (primitive value type)
 java.lang.Character toCharacter(boolean b)
          cast a boolean value to a Character Object(reference type)
 java.lang.Character toCharacter(char c)
          cast a char value to a Character Object(reference type)
 java.lang.Character toCharacter(double d)
          cast a double value to a Character Object(reference type)
 java.lang.Character toCharacter(java.lang.Object o)
          cast a Object to a Character Object(reference type)
 java.lang.Character toCharacter(java.lang.Object o, java.lang.Character defaultValue)
          cast a Object to a Character Object(reference type)
 char toCharValue(boolean b)
          cast a boolean value to a char value
 char toCharValue(char c)
          cast a char value to a char value (do nothing)
 char toCharValue(double d)
          cast a double value to a char value (primitive value type)
 char toCharValue(java.lang.Object o)
          cast a Object to a char value (primitive value type)
 char toCharValue(java.lang.Object o, char defaultValue)
          cast a Object to a char value (primitive value type)
 Collection toCollection(java.lang.Object o)
          cast a Object to a Collection
 Collection toCollection(java.lang.Object o, Collection defaultValue)
          cast a Object to a Collection, if not returns null
 java.awt.Color toColor(java.lang.Object o)
          cast to a color object
 DateTime toDate(boolean b, java.util.TimeZone tz)
          cast a boolean to a DateTime Object
 DateTime toDate(char c, java.util.TimeZone tz)
          cast a char to a DateTime Object
 DateTime toDate(double d, java.util.TimeZone tz)
          cast a double to a DateTime Object
 DateTime toDate(java.util.Locale locale, java.lang.String str, java.util.TimeZone tz)
          parse a string to a Datetime Object
 DateTime toDate(java.util.Locale locale, java.lang.String str, java.util.TimeZone tz, DateTime defaultValue)
          parse a string to a Datetime Object, returns null if can't convert
 DateTime toDate(java.lang.Object o, boolean alsoNumbers, java.util.TimeZone tz, DateTime defaultValue)
          cast a Object to a DateTime Object
 DateTime toDate(java.lang.Object o, java.util.TimeZone tz)
          cast a Object to a DateTime Object
 DateTime toDate(java.lang.String str, boolean alsoNumbers, java.util.TimeZone tz, DateTime defaultValue)
          cast a Object to a DateTime Object
 DateTime toDate(java.lang.String str, java.util.TimeZone tz)
          cast a Object to a DateTime Object
 DateTime toDatetime(java.lang.Object o, java.util.TimeZone tz)
          cast a Object to a DateTime Object (alias for toDateTime)
 DateTime toDateTime(java.lang.Object o, java.util.TimeZone tz)
          cast a Object to a DateTime Object
 java.lang.String toDecimal(boolean b)
          cast a boolean to a decimal value (String:xx.xx)
 java.lang.String toDecimal(char c)
          cast a char to a decimal value (String:xx.xx)
 java.lang.String toDecimal(double d)
          cast a double to a decimal value (String:xx.xx)
 java.lang.String toDecimal(java.lang.Object value)
          cast a double to a decimal value (String:xx.xx)
 java.lang.String toDecimal(java.lang.Object value, java.lang.String defaultValue)
          cast a double to a decimal value (String:xx.xx)
 java.lang.Double toDouble(boolean b)
          cast a boolean value to a Double Object (reference Type)
 java.lang.Double toDouble(char c)
          cast a char value to a Double Object (reference Type)
 java.lang.Double toDouble(double d)
          cast a double value to a Double Object (reference Type)
 java.lang.Double toDouble(java.lang.Object o)
          cast a Object to a Double Object (reference Type)
 java.lang.Double toDouble(java.lang.Object o, java.lang.Double defaultValue)
          cast a Object to a Double Object (reference Type)
 java.lang.Double toDouble(java.lang.String str)
          cast a String to a Double Object (reference Type)
 java.lang.Double toDouble(java.lang.String str, java.lang.Double defaultValue)
          cast a String to a Double Object (reference Type)
 double toDoubleValue(boolean b)
          cast a boolean value to a double value (primitive value type)
 double toDoubleValue(char c)
          cast a char value to a double value (primitive value type)
 double toDoubleValue(double d)
          cast a double value to a double value (do nothing)
 double toDoubleValue(java.lang.Object o)
          cast a Object to a double value (primitive value Type)
 double toDoubleValue(java.lang.Object o, double defaultValue)
          cast a Object to a double value (primitive value Type)
 double toDoubleValue(java.lang.String str)
          cast a Object to a double value (primitive value Type)
 double toDoubleValue(java.lang.String str, double defaultValue)
          cast a Object to a double value (primitive value Type), if can't return Double.NaN
 java.io.File toFile(java.lang.Object obj)
          convert a object to a File
 java.io.File toFile(java.lang.Object obj, java.io.File defaultValue)
          convert a object to a File
 java.lang.Integer toInteger(boolean b)
          casts a boolean to a Integer
 java.lang.Integer toInteger(char c)
          casts a char to a Integer
 java.lang.Integer toInteger(double d)
          casts a double to a Integer
 java.lang.Integer toInteger(java.lang.Object o)
          casts a Object to a Integer
 java.lang.Integer toInteger(java.lang.Object o, java.lang.Integer defaultValue)
          casts a Object to a Integer
 int toIntValue(boolean b)
          cast a boolean value to a int value (primitive value type)
 int toIntValue(char c)
          cast a char value to a int value (primitive value type)
 int toIntValue(double d)
          cast a double value to a int value (primitive value type)
 int toIntValue(java.lang.Object o)
          cast a Object to a int value (primitive value type)
 int toIntValue(java.lang.Object o, int defaultValue)
          cast a Object to a int value (primitive value type)
 int toIntValue(java.lang.String str)
          cast a String to a int value (primitive value type)
 int toIntValue(java.lang.String str, int defaultValue)
          cast a Object to a double value (primitive value Type), if can't return Integer.MIN_VALUE
 java.util.Iterator toIterator(java.lang.Object o)
          cast a Object to a Iterator or get Iterator from Object
 java.util.List toList(java.lang.Object o)
          cast a Object to a Array Object
 java.util.List toList(java.lang.Object o, boolean duplicate)
          cast a Object to a Array Object
 java.util.List toList(java.lang.Object o, boolean duplicate, java.util.List defaultValue)
          cast a Object to a Array Object
 java.util.List toList(java.lang.Object o, java.util.List defaultValue)
          cast a Object to a Array Object
 java.util.Locale toLocale(java.lang.String strLocale)
          casts a string to a Locale
 java.util.Locale toLocale(java.lang.String strLocale, java.util.Locale defaultValue)
          casts a string to a Locale
 java.lang.Long toLong(boolean b)
          cast a boolean value to a Long Object(reference type)
 java.lang.Long toLong(char c)
          cast a char value to a Long Object(reference type)
 java.lang.Long toLong(double d)
          cast a double value to a Long Object(reference type)
 java.lang.Long toLong(java.lang.Object o)
          cast a Object to a Long Object(reference type)
 java.lang.Long toLong(java.lang.Object o, java.lang.Long defaultValue)
          cast a Object to a Long Object(reference type)
 long toLongValue(boolean b)
          cast a boolean value to a long value
 long toLongValue(char c)
          cast a char value to a long value (do nothing)
 long toLongValue(double d)
          cast a double value to a long value (primitive value type)
 long toLongValue(java.lang.Object o)
          cast a Object to a long value (primitive value type)
 long toLongValue(java.lang.Object o, long defaultValue)
          cast a Object to a long value (primitive value type)
 java.util.Map toMap(java.lang.Object o)
          cast a Object to a Map Object
 java.util.Map toMap(java.lang.Object o, boolean duplicate)
          cast a Object to a Map Object
 java.util.Map toMap(java.lang.Object o, boolean duplicate, java.util.Map defaultValue)
          cast a Object to a Map Object
 java.util.Map toMap(java.lang.Object o, java.util.Map defaultValue)
          cast a Object to a Map Object
 org.w3c.dom.Node toNode(java.lang.Object o)
          casts a Object to a XML Node
 org.w3c.dom.Node toNode(java.lang.Object o, org.w3c.dom.Node defaultValue)
          casts a Object to a XML Node
 org.w3c.dom.NodeList toNodeList(java.lang.Object o)
          casts a Object to a Node List
 org.w3c.dom.NodeList toNodeList(java.lang.Object o, org.w3c.dom.NodeList defaultValue)
          casts a Object to a Node List
 java.lang.Object toNull(java.lang.Object value)
          casts a Object to null
 java.lang.Object toNull(java.lang.Object value, java.lang.Object defaultValue)
          casts a Object to null
 PageException toPageException(java.lang.Throwable t)
          cast a Throwable Object to a PageException Object
 Query toQuery(java.lang.Object o)
          cast a Object to a Query Object
 Query toQuery(java.lang.Object o, boolean duplicate)
          cast a Object to a Query Object
 Query toQuery(java.lang.Object o, boolean duplicate, Query defaultValue)
          cast a Object to a Query Object
 Query toQuery(java.lang.Object o, Query defaultValue)
          cast a Object to a Query Object
 java.lang.Boolean toRef(boolean b)
          cast a boolean value to his (CFML) reference type Boolean
 java.lang.Byte toRef(byte b)
          cast a byte value to his (CFML) reference type Boolean
 java.lang.String toRef(char c)
          cast a char value to his (CFML) reference type String
 Collection toRef(Collection o)
          cast a Collection to a reference type (Object), in that case this method to nothing, because a Collection is already a reference type
 java.lang.Double toRef(double d)
          cast a double value to his (CFML) reference type Double
 java.lang.Float toRef(float f)
          cast a float value to his (CFML) reference type Float
 java.lang.Integer toRef(int i)
          cast a int value to his (CFML) reference type Integer
 java.lang.Long toRef(long l)
          cast a long value to his (CFML) reference type Long
 java.lang.Object toRef(java.lang.Object o)
          cast a Object to a reference type (Object), in that case this method to nothing, because a Object is already a reference type
 java.lang.Short toRef(short s)
          cast a short value to his (CFML) reference type Integer
 java.lang.String toRef(java.lang.String o)
          cast a String to a reference type (Object), in that case this method to nothing, because a String is already a reference type
 Resource toResource(java.lang.Object obj)
          convert a object to a Resource
 Resource toResource(java.lang.Object obj, Resource defaultValue)
          convert a object to a Resource
 java.io.Serializable toSerializable(java.lang.Object obj)
          cast Object to a Serializable Object
 java.io.Serializable toSerializable(java.lang.Object object, java.io.Serializable defaultValue)
          cast Object to a Serializable Object
 java.lang.Short toShort(boolean b)
          cast a boolean value to a Short Object(reference type)
 java.lang.Short toShort(char c)
          cast a char value to a Short Object(reference type)
 java.lang.Short toShort(double d)
          cast a double value to a Byte Object(reference type)
 java.lang.Short toShort(java.lang.Object o)
          cast a Object to a Short Object(reference type)
 java.lang.Short toShort(java.lang.Object o, java.lang.Short defaultValue)
          cast a Object to a Short Object(reference type)
 short toShortValue(boolean b)
          cast a boolean value to a short value
 short toShortValue(char c)
          cast a char value to a short value (do nothing)
 short toShortValue(double d)
          cast a double value to a short value (primitive value type)
 short toShortValue(java.lang.Object o)
          cast a Object to a short value (primitive value type)
 short toShortValue(java.lang.Object o, short defaultValue)
          cast a Object to a short value (primitive value type)
 java.lang.String toString(boolean b)
          cast a boolean value to a String
 java.lang.String toString(double d)
          cast a double value to a String
 java.lang.String toString(int i)
          cast a int value to a String
 java.lang.String toString(long l)
          cast a long value to a String
 java.lang.String toString(java.lang.Object o)
          cast a Object to a String
 java.lang.String toString(java.lang.Object o, java.lang.String defaultValue)
          cast a Object to a String dont throw a exception, if can't cast to a string return a empty string
 Struct toStruct(java.lang.Object o)
          cast a Object to a Struct Object
 Struct toStruct(java.lang.Object o, Struct defaultValue)
          cast a Object to a Struct Object
 Struct toStruct(java.lang.Object o, Struct defaultValue, boolean caseSensitive)
           
 TimeSpan toTimespan(java.lang.Object o)
          cast a Object to a TimeSpan Object (alias for toTimeSpan)
 TimeSpan toTimespan(java.lang.Object o, TimeSpan defaultValue)
          cast a Object to a TimeSpan Object (alias for toTimeSpan)
 java.lang.String toTypeName(java.lang.Object o)
          return the type name of a object (string, boolean, int aso.), type is not same like class name
 java.lang.Object toUUId(java.lang.Object o)
          cast a Object to a UUID
 java.lang.Object toUUId(java.lang.Object o, java.lang.Object defaultValue)
          cast a Object to a UUID
 java.lang.Object toVariableName(java.lang.Object o)
          cast a Object to a Variable Name
 java.lang.Object toVariableName(java.lang.Object obj, java.lang.Object defaultValue)
          cast a Object to a Variable Name
 java.lang.Object toVoid(java.lang.Object o)
          cast a value to void (Empty String)
 java.lang.Object toVoid(java.lang.Object o, java.lang.Object defaultValue)
          cast a value to void (Empty String)
 org.w3c.dom.Node toXML(java.lang.Object value)
          cast Object to a XML Node
 org.w3c.dom.Node toXML(java.lang.Object value, org.w3c.dom.Node defaultValue)
          cast Object to a XML Node
 

Method Detail

toBooleanValue

public boolean toBooleanValue(boolean b)
cast a boolean value to a boolean value (do nothing)

Parameters:
b - boolean value to cast
Returns:
casted boolean value

toBooleanValue

public boolean toBooleanValue(double d)
cast a double value to a boolean value (primitive value type)

Parameters:
d - double value to cast
Returns:
casted boolean value

toBooleanValue

public boolean toBooleanValue(char c)
cast a double value to a boolean value (primitive value type)

Parameters:
c - char value to cast
Returns:
casted boolean value

toBooleanValue

public boolean toBooleanValue(java.lang.Object o)
                       throws PageException
cast a Object to a boolean value (primitive value type)

Parameters:
o - Object to cast
Returns:
casted boolean value
Throws:
PageException

toDouble

public java.lang.Double toDouble(java.lang.Object o)
                          throws PageException
cast a Object to a Double Object (reference Type)

Parameters:
o - Object to cast
Returns:
casted Double Object
Throws:
PageException

toDouble

public java.lang.Double toDouble(java.lang.Object o,
                                 java.lang.Double defaultValue)
cast a Object to a Double Object (reference Type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Double Object

toDouble

public java.lang.Double toDouble(java.lang.String str)
                          throws PageException
cast a String to a Double Object (reference Type)

Parameters:
str - String to cast
Returns:
casted Double Object
Throws:
PageException

toDouble

public java.lang.Double toDouble(java.lang.String str,
                                 java.lang.Double defaultValue)
cast a String to a Double Object (reference Type)

Parameters:
str - String to cast
defaultValue -
Returns:
casted Double Object

toDouble

public java.lang.Double toDouble(double d)
cast a double value to a Double Object (reference Type)

Parameters:
d - double value to cast
Returns:
casted Double Object

toDouble

public java.lang.Double toDouble(boolean b)
cast a boolean value to a Double Object (reference Type)

Parameters:
b - boolean value to cast
Returns:
casted Double Object

toDouble

public java.lang.Double toDouble(char c)
cast a char value to a Double Object (reference Type)

Parameters:
c - char value to cast
Returns:
casted Double Object

toDoubleValue

public double toDoubleValue(java.lang.Object o)
                     throws PageException
cast a Object to a double value (primitive value Type)

Parameters:
o - Object to cast
Returns:
casted double value
Throws:
PageException

toDoubleValue

public double toDoubleValue(java.lang.String str)
                     throws PageException
cast a Object to a double value (primitive value Type)

Parameters:
str - String to cast
Returns:
casted double value
Throws:
PageException

toDoubleValue

public double toDoubleValue(java.lang.Object o,
                            double defaultValue)
cast a Object to a double value (primitive value Type)

Parameters:
o - Object to cast
defaultValue - if can't cast return this value
Returns:
casted double value

toDoubleValue

public double toDoubleValue(java.lang.String str,
                            double defaultValue)
cast a Object to a double value (primitive value Type), if can't return Double.NaN

Parameters:
str - String to cast
defaultValue - if can't cast return this value
Returns:
casted double value

toDoubleValue

public double toDoubleValue(double d)
cast a double value to a double value (do nothing)

Parameters:
d - double value to cast
Returns:
casted double value

toDoubleValue

public double toDoubleValue(boolean b)
cast a boolean value to a double value (primitive value type)

Parameters:
b - boolean value to cast
Returns:
casted double value

toDoubleValue

public double toDoubleValue(char c)
cast a char value to a double value (primitive value type)

Parameters:
c - char value to cast
Returns:
casted double value

toIntValue

public int toIntValue(java.lang.Object o)
               throws PageException
cast a Object to a int value (primitive value type)

Parameters:
o - Object to cast
Returns:
casted int value
Throws:
PageException

toIntValue

public int toIntValue(java.lang.Object o,
                      int defaultValue)
cast a Object to a int value (primitive value type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted int value

toIntValue

public int toIntValue(java.lang.String str)
               throws PageException
cast a String to a int value (primitive value type)

Parameters:
str - String to cast
Returns:
casted int value
Throws:
PageException

toIntValue

public int toIntValue(java.lang.String str,
                      int defaultValue)
cast a Object to a double value (primitive value Type), if can't return Integer.MIN_VALUE

Parameters:
str - String to cast
defaultValue -
Returns:
casted double value

toIntValue

public int toIntValue(double d)
cast a double value to a int value (primitive value type)

Parameters:
d - double value to cast
Returns:
casted int value

toIntValue

public int toIntValue(boolean b)
cast a boolean value to a int value (primitive value type)

Parameters:
b - boolean value to cast
Returns:
casted int value

toIntValue

public int toIntValue(char c)
cast a char value to a int value (primitive value type)

Parameters:
c - char value to cast
Returns:
casted int value

toDecimal

public java.lang.String toDecimal(java.lang.Object value)
                           throws PageException
cast a double to a decimal value (String:xx.xx)

Parameters:
value - Object to cast
Returns:
casted decimal value
Throws:
PageException

toDecimal

public java.lang.String toDecimal(java.lang.Object value,
                                  java.lang.String defaultValue)
cast a double to a decimal value (String:xx.xx)

Parameters:
value - Object to cast
defaultValue -
Returns:
casted decimal value

toDecimal

public java.lang.String toDecimal(char c)
cast a char to a decimal value (String:xx.xx)

Parameters:
c - char to cast
Returns:
casted decimal value

toDecimal

public java.lang.String toDecimal(boolean b)
cast a boolean to a decimal value (String:xx.xx)

Parameters:
b - boolean to cast
Returns:
casted decimal value

toDecimal

public java.lang.String toDecimal(double d)
cast a double to a decimal value (String:xx.xx)

Parameters:
d - double to cast
Returns:
casted decimal value

toBoolean

public java.lang.Boolean toBoolean(boolean b)
cast a boolean value to a Boolean Object(reference type)

Parameters:
b - boolean value to cast
Returns:
casted Boolean Object

toBoolean

public java.lang.Boolean toBoolean(char c)
cast a char value to a Boolean Object(reference type)

Parameters:
c - char value to cast
Returns:
casted Boolean Object

toBoolean

public java.lang.Boolean toBoolean(double d)
cast a double value to a Boolean Object(reference type)

Parameters:
d - double value to cast
Returns:
casted Boolean Object

toBoolean

public java.lang.Boolean toBoolean(java.lang.Object o)
                            throws PageException
cast a Object to a Boolean Object(reference type)

Parameters:
o - Object to cast
Returns:
casted Boolean Object
Throws:
PageException

toBoolean

public java.lang.Boolean toBoolean(java.lang.String str)
                            throws PageException
cast a Object to a Boolean Object(reference type)

Parameters:
str - String to cast
Returns:
casted Boolean Object
Throws:
PageException

toBooleanValue

public boolean toBooleanValue(java.lang.Object o,
                              boolean defaultValue)
cast a Object to a boolean value (primitive value type), Exception Less

Parameters:
o - Object to cast
defaultValue -
Returns:
casted boolean value

toBoolean

public java.lang.Boolean toBoolean(java.lang.Object o,
                                   java.lang.Boolean defaultValue)
cast a Object to a boolean value (refrence type), Exception Less

Parameters:
o - Object to cast
defaultValue - default value
Returns:
casted boolean reference

toBoolean

public java.lang.Boolean toBoolean(java.lang.String str,
                                   java.lang.Boolean defaultValue)
cast a Object to a boolean value (refrence type), Exception Less

Parameters:
str - String to cast
defaultValue - default value
Returns:
casted boolean reference

toCharValue

public char toCharValue(boolean b)
cast a boolean value to a char value

Parameters:
b - boolean value to cast
Returns:
casted char value

toCharValue

public char toCharValue(double d)
cast a double value to a char value (primitive value type)

Parameters:
d - double value to cast
Returns:
casted char value

toCharValue

public char toCharValue(char c)
cast a char value to a char value (do nothing)

Parameters:
c - char value to cast
Returns:
casted char value

toCharValue

public char toCharValue(java.lang.Object o)
                 throws PageException
cast a Object to a char value (primitive value type)

Parameters:
o - Object to cast
Returns:
casted char value
Throws:
PageException

toCharValue

public char toCharValue(java.lang.Object o,
                        char defaultValue)
cast a Object to a char value (primitive value type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted char value

toCharacter

public java.lang.Character toCharacter(boolean b)
cast a boolean value to a Character Object(reference type)

Parameters:
b - boolean value to cast
Returns:
casted Character Object

toCharacter

public java.lang.Character toCharacter(char c)
cast a char value to a Character Object(reference type)

Parameters:
c - char value to cast
Returns:
casted Character Object

toCharacter

public java.lang.Character toCharacter(double d)
cast a double value to a Character Object(reference type)

Parameters:
d - double value to cast
Returns:
casted Character Object

toCharacter

public java.lang.Character toCharacter(java.lang.Object o,
                                       java.lang.Character defaultValue)
cast a Object to a Character Object(reference type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Character Object

toCharacter

public java.lang.Character toCharacter(java.lang.Object o)
                                throws PageException
cast a Object to a Character Object(reference type)

Parameters:
o - Object to cast
Returns:
casted Character Object
Throws:
PageException

toByteValue

public byte toByteValue(boolean b)
cast a boolean value to a byte value

Parameters:
b - boolean value to cast
Returns:
casted byte value

toByteValue

public byte toByteValue(double d)
cast a double value to a byte value (primitive value type)

Parameters:
d - double value to cast
Returns:
casted byte value

toByteValue

public byte toByteValue(char c)
cast a char value to a byte value (do nothing)

Parameters:
c - char value to cast
Returns:
casted byte value

toByteValue

public byte toByteValue(java.lang.Object o)
                 throws PageException
cast a Object to a byte value (primitive value type)

Parameters:
o - Object to cast
Returns:
casted byte value
Throws:
PageException

toByteValue

public byte toByteValue(java.lang.Object o,
                        byte defaultValue)
cast a Object to a byte value (primitive value type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted byte value

toByte

public java.lang.Byte toByte(boolean b)
cast a boolean value to a Byte Object(reference type)

Parameters:
b - boolean value to cast
Returns:
casted Byte Object

toByte

public java.lang.Byte toByte(char c)
cast a char value to a Byte Object(reference type)

Parameters:
c - char value to cast
Returns:
casted Byte Object

toByte

public java.lang.Byte toByte(double d)
cast a double value to a Byte Object(reference type)

Parameters:
d - double value to cast
Returns:
casted Byte Object

toByte

public java.lang.Byte toByte(java.lang.Object o)
                      throws PageException
cast a Object to a Byte Object(reference type)

Parameters:
o - Object to cast
Returns:
casted Byte Object
Throws:
PageException

toByte

public java.lang.Byte toByte(java.lang.Object o,
                             java.lang.Byte defaultValue)
cast a Object to a Byte Object(reference type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Byte Object

toLongValue

public long toLongValue(boolean b)
cast a boolean value to a long value

Parameters:
b - boolean value to cast
Returns:
casted long value

toLongValue

public long toLongValue(double d)
cast a double value to a long value (primitive value type)

Parameters:
d - double value to cast
Returns:
casted long value

toLongValue

public long toLongValue(char c)
cast a char value to a long value (do nothing)

Parameters:
c - char value to cast
Returns:
casted long value

toLongValue

public long toLongValue(java.lang.Object o)
                 throws PageException
cast a Object to a long value (primitive value type)

Parameters:
o - Object to cast
Returns:
casted long value
Throws:
PageException

toLongValue

public long toLongValue(java.lang.Object o,
                        long defaultValue)
cast a Object to a long value (primitive value type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted long value

toLong

public java.lang.Long toLong(boolean b)
cast a boolean value to a Long Object(reference type)

Parameters:
b - boolean value to cast
Returns:
casted Long Object

toLong

public java.lang.Long toLong(char c)
cast a char value to a Long Object(reference type)

Parameters:
c - char value to cast
Returns:
casted Long Object

toLong

public java.lang.Long toLong(double d)
cast a double value to a Long Object(reference type)

Parameters:
d - double value to cast
Returns:
casted Long Object

toLong

public java.lang.Long toLong(java.lang.Object o)
                      throws PageException
cast a Object to a Long Object(reference type)

Parameters:
o - Object to cast
Returns:
casted Long Object
Throws:
PageException

toLong

public java.lang.Long toLong(java.lang.Object o,
                             java.lang.Long defaultValue)
cast a Object to a Long Object(reference type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Long Object

toShortValue

public short toShortValue(boolean b)
cast a boolean value to a short value

Parameters:
b - boolean value to cast
Returns:
casted short value

toShortValue

public short toShortValue(double d)
cast a double value to a short value (primitive value type)

Parameters:
d - double value to cast
Returns:
casted short value

toShortValue

public short toShortValue(char c)
cast a char value to a short value (do nothing)

Parameters:
c - char value to cast
Returns:
casted short value

toShortValue

public short toShortValue(java.lang.Object o)
                   throws PageException
cast a Object to a short value (primitive value type)

Parameters:
o - Object to cast
Returns:
casted short value
Throws:
PageException

toShortValue

public short toShortValue(java.lang.Object o,
                          short defaultValue)
cast a Object to a short value (primitive value type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted short value

toShort

public java.lang.Short toShort(boolean b)
cast a boolean value to a Short Object(reference type)

Parameters:
b - boolean value to cast
Returns:
casted Short Object

toShort

public java.lang.Short toShort(char c)
cast a char value to a Short Object(reference type)

Parameters:
c - char value to cast
Returns:
casted Short Object

toShort

public java.lang.Short toShort(double d)
cast a double value to a Byte Object(reference type)

Parameters:
d - double value to cast
Returns:
casted Byte Object

toShort

public java.lang.Short toShort(java.lang.Object o)
                        throws PageException
cast a Object to a Short Object(reference type)

Parameters:
o - Object to cast
Returns:
casted Short Object
Throws:
PageException

toShort

public java.lang.Short toShort(java.lang.Object o,
                               java.lang.Short defaultValue)
cast a Object to a Short Object(reference type)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Short Object

toBooleanValue

public boolean toBooleanValue(java.lang.String str)
                       throws PageException
cast a String to a boolean value (primitive value type)

Parameters:
str - String to cast
Returns:
casted boolean value
Throws:
PageException

toBooleanValue

public boolean toBooleanValue(java.lang.String str,
                              boolean defaultValue)
cast a String to a boolean value (primitive value type), return 1 for true, 0 for false and -1 if can't cast to a boolean type

Parameters:
str - String to cast
defaultValue -
Returns:
casted boolean value

toString

public java.lang.String toString(java.lang.Object o)
                          throws PageException
cast a Object to a String

Parameters:
o - Object to cast
Returns:
casted String
Throws:
PageException

toString

public java.lang.String toString(java.lang.Object o,
                                 java.lang.String defaultValue)
cast a Object to a String dont throw a exception, if can't cast to a string return a empty string

Parameters:
o - Object to cast
defaultValue -
Returns:
casted String

toString

public java.lang.String toString(double d)
cast a double value to a String

Parameters:
d - double value to cast
Returns:
casted String

toString

public java.lang.String toString(long l)
cast a long value to a String

Parameters:
l - long value to cast
Returns:
casted String

toString

public java.lang.String toString(int i)
cast a int value to a String

Parameters:
i - int value to cast
Returns:
casted String

toString

public java.lang.String toString(boolean b)
cast a boolean value to a String

Parameters:
b - boolean value to cast
Returns:
casted String

toList

public java.util.List toList(java.lang.Object o)
                      throws PageException
cast a Object to a Array Object

Parameters:
o - Object to cast
Returns:
casted Array
Throws:
PageException

toList

public java.util.List toList(java.lang.Object o,
                             java.util.List defaultValue)
cast a Object to a Array Object

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Array

toList

public java.util.List toList(java.lang.Object o,
                             boolean duplicate)
                      throws PageException
cast a Object to a Array Object

Parameters:
o - Object to cast
duplicate -
Returns:
casted Array
Throws:
PageException

toList

public java.util.List toList(java.lang.Object o,
                             boolean duplicate,
                             java.util.List defaultValue)
cast a Object to a Array Object

Parameters:
o - Object to cast
duplicate -
defaultValue -
Returns:
casted Array

toArray

public Array toArray(java.lang.Object obj)
              throws PageException
cast a Object to a Array Object

Parameters:
obj - Object to cast
Returns:
casted Array
Throws:
PageException

toArray

public Array toArray(java.lang.Object obj,
                     Array defaultValue)
cast a Object to a Array Object

Parameters:
obj - Object to cast
defaultValue -
Returns:
casted Array

toMap

public java.util.Map toMap(java.lang.Object o)
                    throws PageException
cast a Object to a Map Object

Parameters:
o - Object to cast
Returns:
casted Struct
Throws:
PageException

toMap

public java.util.Map toMap(java.lang.Object o,
                           java.util.Map defaultValue)
cast a Object to a Map Object

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Struct

toMap

public java.util.Map toMap(java.lang.Object o,
                           boolean duplicate)
                    throws PageException
cast a Object to a Map Object

Parameters:
o - Object to cast
duplicate -
Returns:
casted Struct
Throws:
PageException

toMap

public java.util.Map toMap(java.lang.Object o,
                           boolean duplicate,
                           java.util.Map defaultValue)
cast a Object to a Map Object

Parameters:
o - Object to cast
duplicate -
defaultValue -
Returns:
casted Struct

toStruct

public Struct toStruct(java.lang.Object o)
                throws PageException
cast a Object to a Struct Object

Parameters:
o - Object to cast
Returns:
casted Struct
Throws:
PageException

toStruct

public Struct toStruct(java.lang.Object o,
                       Struct defaultValue)
cast a Object to a Struct Object

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Struct

toStruct

public Struct toStruct(java.lang.Object o,
                       Struct defaultValue,
                       boolean caseSensitive)

toBinary

public byte[] toBinary(java.lang.Object obj)
                throws PageException
cast a Object to a Binary

Parameters:
obj - Object to cast
Returns:
casted Binary
Throws:
PageException

toBinary

public byte[] toBinary(java.lang.Object obj,
                       byte[] defaultValue)
cast a Object to a Binary

Parameters:
obj - Object to cast
defaultValue -
Returns:
casted Binary

toBase64

public java.lang.String toBase64(java.lang.Object o)
                          throws PageException
cast a Object to a Base64 value

Parameters:
o - Object to cast
Returns:
to Base64 String
Throws:
PageException

toBase64

public java.lang.String toBase64(java.lang.Object o,
                                 java.lang.String defaultValue)
cast a Object to a Base64 value

Parameters:
o - Object to cast
defaultValue -
Returns:
to Base64 String

toDate

public DateTime toDate(boolean b,
                       java.util.TimeZone tz)
cast a boolean to a DateTime Object

Parameters:
b - boolean to cast
tz -
Returns:
casted DateTime Object

toDate

public DateTime toDate(char c,
                       java.util.TimeZone tz)
cast a char to a DateTime Object

Parameters:
c - char to cast
tz -
Returns:
casted DateTime Object

toDate

public DateTime toDate(double d,
                       java.util.TimeZone tz)
cast a double to a DateTime Object

Parameters:
d - double to cast
tz -
Returns:
casted DateTime Object

toDate

public DateTime toDate(java.lang.Object o,
                       java.util.TimeZone tz)
                throws PageException
cast a Object to a DateTime Object

Parameters:
o - Object to cast
tz -
Returns:
casted DateTime Object
Throws:
PageException

toDate

public DateTime toDate(java.lang.String str,
                       java.util.TimeZone tz)
                throws PageException
cast a Object to a DateTime Object

Parameters:
str - String to cast
tz -
Returns:
casted DateTime Object
Throws:
PageException

toDate

public DateTime toDate(java.lang.Object o,
                       boolean alsoNumbers,
                       java.util.TimeZone tz,
                       DateTime defaultValue)
cast a Object to a DateTime Object

Parameters:
o - Object to cast
alsoNumbers - define if also numbers will casted to a datetime value
tz -
defaultValue -
Returns:
casted DateTime Object

toDate

public DateTime toDate(java.lang.String str,
                       boolean alsoNumbers,
                       java.util.TimeZone tz,
                       DateTime defaultValue)
cast a Object to a DateTime Object

Parameters:
str - String to cast
alsoNumbers - define if also numbers will casted to a datetime value
tz -
defaultValue -
Returns:
casted DateTime Object

toDateTime

public DateTime toDateTime(java.lang.Object o,
                           java.util.TimeZone tz)
                    throws PageException
cast a Object to a DateTime Object

Parameters:
o - Object to cast
tz -
Returns:
casted DateTime Object
Throws:
PageException

toDatetime

public DateTime toDatetime(java.lang.Object o,
                           java.util.TimeZone tz)
                    throws PageException
cast a Object to a DateTime Object (alias for toDateTime)

Parameters:
o - Object to cast
tz -
Returns:
casted DateTime Object
Throws:
PageException

toDate

public DateTime toDate(java.util.Locale locale,
                       java.lang.String str,
                       java.util.TimeZone tz)
                throws PageException
parse a string to a Datetime Object

Parameters:
locale -
str - String representation of a locale Date
tz -
Returns:
DateTime Object
Throws:
PageException

toDate

public DateTime toDate(java.util.Locale locale,
                       java.lang.String str,
                       java.util.TimeZone tz,
                       DateTime defaultValue)
parse a string to a Datetime Object, returns null if can't convert

Parameters:
locale -
str - String representation of a locale Date
tz -
defaultValue -
Returns:
datetime object

toQuery

public Query toQuery(java.lang.Object o)
              throws PageException
cast a Object to a Query Object

Parameters:
o - Object to cast
Returns:
casted Query Object
Throws:
PageException

toQuery

public Query toQuery(java.lang.Object o,
                     Query defaultValue)
cast a Object to a Query Object

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Query Object

toQuery

public Query toQuery(java.lang.Object o,
                     boolean duplicate)
              throws PageException
cast a Object to a Query Object

Parameters:
o - Object to cast
duplicate - duplicate the object or not
Returns:
casted Query Object
Throws:
PageException

toQuery

public Query toQuery(java.lang.Object o,
                     boolean duplicate,
                     Query defaultValue)
cast a Object to a Query Object

Parameters:
o - Object to cast
duplicate - duplicate the object or not
defaultValue -
Returns:
casted Query Object

toUUId

public java.lang.Object toUUId(java.lang.Object o)
                        throws PageException
cast a Object to a UUID

Parameters:
o - Object to cast
Returns:
casted Query Object
Throws:
PageException

toUUId

public java.lang.Object toUUId(java.lang.Object o,
                               java.lang.Object defaultValue)
cast a Object to a UUID

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Query Object

toVariableName

public java.lang.Object toVariableName(java.lang.Object o)
                                throws PageException
cast a Object to a Variable Name

Parameters:
o - Object to cast
Returns:
casted Variable Name
Throws:
PageException

toVariableName

public java.lang.Object toVariableName(java.lang.Object obj,
                                       java.lang.Object defaultValue)
cast a Object to a Variable Name

Parameters:
obj - Object to cast
defaultValue -
Returns:
casted Variable Name

toTimespan

public TimeSpan toTimespan(java.lang.Object o)
                    throws PageException
cast a Object to a TimeSpan Object (alias for toTimeSpan)

Parameters:
o - Object to cast
Returns:
casted TimeSpan Object
Throws:
PageException

toTimespan

public TimeSpan toTimespan(java.lang.Object o,
                           TimeSpan defaultValue)
cast a Object to a TimeSpan Object (alias for toTimeSpan)

Parameters:
o - Object to cast
defaultValue -
Returns:
casted TimeSpan Object

toPageException

public PageException toPageException(java.lang.Throwable t)
cast a Throwable Object to a PageException Object

Parameters:
t - Throwable to cast
Returns:
casted PageException Object

toTypeName

public java.lang.String toTypeName(java.lang.Object o)
return the type name of a object (string, boolean, int aso.), type is not same like class name

Parameters:
o - Object to get type from
Returns:
type of the object

castTo

public java.lang.Object castTo(PageContext pc,
                               java.lang.String type,
                               java.lang.Object o)
                        throws PageException
cast a value to a value defined by type argument

Parameters:
pc -
type - type of the returning Value
o - Object to cast
Returns:
casted Value
Throws:
PageException

castTo

public java.lang.Object castTo(PageContext pc,
                               java.lang.String type,
                               java.lang.Object o,
                               boolean alsoPattern)
                        throws PageException
cast a value to a value defined by type argument

Parameters:
pc -
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

castTo

public java.lang.Object castTo(PageContext pc,
                               short type,
                               java.lang.String strType,
                               java.lang.Object o)
                        throws PageException
cast a value to a value defined by type argument

Parameters:
pc -
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 java.lang.Object castTo(PageContext pc,
                               short type,
                               java.lang.Object o)
                        throws PageException
cast a value to a value defined by type argument

Parameters:
pc -
type - type of the returning Value (Example: Cast.TYPE_QUERY)
o - Object to cast
Returns:
casted Value
Throws:
PageException

toVoid

public java.lang.Object toVoid(java.lang.Object o)
                        throws PageException
cast a value to void (Empty String)

Parameters:
o -
Returns:
void value
Throws:
PageException

toVoid

public java.lang.Object toVoid(java.lang.Object o,
                               java.lang.Object defaultValue)
cast a value to void (Empty String)

Parameters:
o -
defaultValue -
Returns:
void value

toRef

public java.lang.Object toRef(java.lang.Object o)
cast a Object to a reference type (Object), in that case this method to nothing, because a Object is already a reference type

Parameters:
o - Object to cast
Returns:
casted Object

toRef

public java.lang.String toRef(java.lang.String o)
cast a String to a reference type (Object), in that case this method to nothing, because a String is already a reference type

Parameters:
o - Object to cast
Returns:
casted Object

toRef

public 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

Parameters:
o - Collection to cast
Returns:
casted Object

toRef

public java.lang.String toRef(char c)
cast a char value to his (CFML) reference type String

Parameters:
c - char to cast
Returns:
casted String

toRef

public java.lang.Boolean toRef(boolean b)
cast a boolean value to his (CFML) reference type Boolean

Parameters:
b - boolean to cast
Returns:
casted Boolean

toRef

public java.lang.Byte toRef(byte b)
cast a byte value to his (CFML) reference type Boolean

Parameters:
b - byte to cast
Returns:
casted Boolean

toRef

public java.lang.Short toRef(short s)
cast a short value to his (CFML) reference type Integer

Parameters:
s - short to cast
Returns:
casted Integer

toRef

public java.lang.Integer toRef(int i)
cast a int value to his (CFML) reference type Integer

Parameters:
i - int to cast
Returns:
casted Integer

toRef

public java.lang.Float toRef(float f)
cast a float value to his (CFML) reference type Float

Parameters:
f - float to cast
Returns:
casted Float

toRef

public java.lang.Long toRef(long l)
cast a long value to his (CFML) reference type Long

Parameters:
l - long to cast
Returns:
casted Long

toRef

public java.lang.Double toRef(double d)
cast a double value to his (CFML) reference type Double

Parameters:
d - doble to cast
Returns:
casted Double

toIterator

public java.util.Iterator toIterator(java.lang.Object o)
                              throws PageException
cast a Object to a Iterator or get Iterator from Object

Parameters:
o - Object to cast
Returns:
casted Collection
Throws:
PageException

toCollection

public Collection toCollection(java.lang.Object o)
                        throws PageException
cast a Object to a Collection

Parameters:
o - Object to cast
Returns:
casted Collection
Throws:
PageException

toColor

public java.awt.Color toColor(java.lang.Object o)
                       throws PageException
cast to a color object

Parameters:
o - Object to cast
Returns:
Throws:
PageException

toCollection

public Collection toCollection(java.lang.Object o,
                               Collection defaultValue)
cast a Object to a Collection, if not returns null

Parameters:
o - Object to cast
defaultValue -
Returns:
casted Collection

toResource

public Resource toResource(java.lang.Object obj)
                    throws PageException
convert a object to a Resource

Parameters:
obj -
Returns:
File
Throws:
PageException

toResource

public Resource toResource(java.lang.Object obj,
                           Resource defaultValue)
convert a object to a Resource

Parameters:
obj -
defaultValue -
Returns:
Resource

toFile

public java.io.File toFile(java.lang.Object obj)
                    throws PageException
convert a object to a File

Parameters:
obj -
Returns:
File
Throws:
PageException

toFile

public java.io.File toFile(java.lang.Object obj,
                           java.io.File defaultValue)
convert a object to a File

Parameters:
obj -
defaultValue -
Returns:
File

toLocale

public java.util.Locale toLocale(java.lang.String strLocale)
                          throws PageException
casts a string to a Locale

Parameters:
strLocale -
Returns:
Locale ferom String
Throws:
PageException

toLocale

public java.util.Locale toLocale(java.lang.String strLocale,
                                 java.util.Locale defaultValue)
casts a string to a Locale

Parameters:
strLocale -
defaultValue -
Returns:
Locale from String

toNodeList

public org.w3c.dom.NodeList toNodeList(java.lang.Object o)
                                throws PageException
casts a Object to a Node List

Parameters:
o - Object to Cast
Returns:
NodeList from Object
Throws:
PageException

toNodeList

public org.w3c.dom.NodeList toNodeList(java.lang.Object o,
                                       org.w3c.dom.NodeList defaultValue)
casts a Object to a Node List

Parameters:
o - Object to Cast
defaultValue -
Returns:
NodeList from Object

toNode

public org.w3c.dom.Node toNode(java.lang.Object o)
                        throws PageException
casts a Object to a XML Node

Parameters:
o - Object to Cast
Returns:
Node from Object
Throws:
PageException

toNode

public org.w3c.dom.Node toNode(java.lang.Object o,
                               org.w3c.dom.Node defaultValue)
casts a Object to a XML Node

Parameters:
o - Object to Cast
defaultValue -
Returns:
Node from Object

toInteger

public java.lang.Integer toInteger(boolean b)
casts a boolean to a Integer

Parameters:
b -
Returns:
Integer from boolean

toInteger

public java.lang.Integer toInteger(char c)
casts a char to a Integer

Parameters:
c -
Returns:
Integer from char

toInteger

public java.lang.Integer toInteger(double d)
casts a double to a Integer

Parameters:
d -
Returns:
Integer from double

toInteger

public java.lang.Integer toInteger(java.lang.Object o)
                            throws PageException
casts a Object to a Integer

Parameters:
o - Object to cast to Integer
Returns:
Integer from Object
Throws:
PageException

toInteger

public java.lang.Integer toInteger(java.lang.Object o,
                                   java.lang.Integer defaultValue)
casts a Object to a Integer

Parameters:
o - Object to cast to Integer
defaultValue -
Returns:
Integer from Object

toNull

public java.lang.Object toNull(java.lang.Object value)
                        throws PageException
casts a Object to null

Parameters:
value -
Returns:
to null from Object
Throws:
PageException

toNull

public java.lang.Object toNull(java.lang.Object value,
                               java.lang.Object defaultValue)
casts a Object to null

Parameters:
value -
defaultValue -
Returns:
to null from Object

toXML

public org.w3c.dom.Node toXML(java.lang.Object value)
                       throws PageException
cast Object to a XML Node

Parameters:
value -
Returns:
XML Node
Throws:
PageException

toXML

public org.w3c.dom.Node toXML(java.lang.Object value,
                              org.w3c.dom.Node defaultValue)
cast Object to a XML Node

Parameters:
value -
defaultValue -
Returns:
XML Node

to

public java.lang.Object to(java.lang.String type,
                           java.lang.Object o,
                           boolean alsoPattern)
                    throws PageException
cast to given type

Parameters:
type -
o -
alsoPattern -
Returns:
Throws:
PageException

toSerializable

public java.io.Serializable toSerializable(java.lang.Object obj)
                                    throws PageException
cast Object to a Serializable Object

Parameters:
obj -
Returns:
Throws:
PageException

toSerializable

public java.io.Serializable toSerializable(java.lang.Object object,
                                           java.io.Serializable defaultValue)
cast Object to a Serializable Object

Parameters:
object -
defaultValue -
Returns: