railo.runtime.util
Interface Decision

All Known Implementing Classes:
DecisionImpl

public interface Decision

Object to test if a Object is a specific type


Method Summary
 boolean isArray(Object o)
          tests if object is a array
 boolean isBinary(Object object)
          tests if object is a binary
 boolean isBoolean(Object value)
          tests if value is a Boolean (Numbers are not acctepeted)
 boolean isBoolean(String str)
          tests if value is a Boolean
 boolean isComponent(Object object)
          tests if object is a Component
 boolean isDate(Object value, boolean alsoNumbers)
          tests if value is DateTime Object
 boolean isEmpty(String str)
           
 boolean isEmpty(String str, boolean trim)
           
 boolean isHex(String str)
          tests if String value is Hex Value
 boolean isLeapYear(int year)
          tests if year is a leap year
 boolean isNativeArray(Object o)
          tests if object is a native java array
 boolean isNumeric(Object value)
          tests if value is Numeric
 boolean isNumeric(String str)
          tests if String value is Numeric
 boolean isObject(Object o)
          returns if object is a cold fusion object
 boolean isQuery(Object object)
          tests if object is a Query
 boolean isSimpleValue(Object value)
          tests if value is a simple value (Number,String,Boolean,Date,Printable)
 boolean isSimpleVariableName(String string)
           
 boolean isStruct(Object o)
          tests if object is a struct
 boolean isUserDefinedFunction(Object object)
          tests if object is a binary
 boolean isUUID(String str)
          tests if String value is UUID Value
 boolean isVariableName(String string)
           
 boolean isWddx(Object o)
          tests if object is a WDDX Object
 boolean isXML(Object o)
          tests if object is a XML Object
 boolean isXMLDocument(Object o)
          tests if object is a XML Document Object
 boolean isXMLElement(Object o)
          tests if object is a XML Element Object
 boolean isXMLRootElement(Object o)
          tests if object is a XML Root Element Object
 Collection.Key toKey(Object obj)
           
 Collection.Key toKey(Object obj, Collection.Key defaultValue)
           
 

Method Detail

isSimpleValue

boolean isSimpleValue(Object value)
tests if value is a simple value (Number,String,Boolean,Date,Printable)

Parameters:
value - value to test
Returns:
is value a simple value

isNumeric

boolean isNumeric(Object value)
tests if value is Numeric

Parameters:
value - value to test
Returns:
is value numeric

isNumeric

boolean isNumeric(String str)
tests if String value is Numeric

Parameters:
str - value to test
Returns:
is value numeric

isHex

boolean isHex(String str)
tests if String value is Hex Value

Parameters:
str - value to test
Returns:
is value numeric

isUUID

boolean isUUID(String str)
tests if String value is UUID Value

Parameters:
str - value to test
Returns:
is value numeric

isBoolean

boolean isBoolean(Object value)
tests if value is a Boolean (Numbers are not acctepeted)

Parameters:
value - value to test
Returns:
is value boolean

isBoolean

boolean isBoolean(String str)
tests if value is a Boolean

Parameters:
str - value to test
Returns:
is value boolean

isDate

boolean isDate(Object value,
               boolean alsoNumbers)
tests if value is DateTime Object

Parameters:
value - value to test
alsoNumbers - interpret also a number as date
Returns:
is value a DateTime Object

isStruct

boolean isStruct(Object o)
tests if object is a struct

Parameters:
o -
Returns:
is struct or not

isArray

boolean isArray(Object o)
tests if object is a array

Parameters:
o -
Returns:
is array or not

isNativeArray

boolean isNativeArray(Object o)
tests if object is a native java array

Parameters:
o -
Returns:
is a native (java) array

isBinary

boolean isBinary(Object object)
tests if object is a binary

Parameters:
object -
Returns:
boolean

isComponent

boolean isComponent(Object object)
tests if object is a Component

Parameters:
object -
Returns:
boolean

isQuery

boolean isQuery(Object object)
tests if object is a Query

Parameters:
object -
Returns:
boolean

isUserDefinedFunction

boolean isUserDefinedFunction(Object object)
tests if object is a binary

Parameters:
object -
Returns:
boolean

isLeapYear

boolean isLeapYear(int year)
tests if year is a leap year

Parameters:
year - year to check
Returns:
boolean

isWddx

boolean isWddx(Object o)
tests if object is a WDDX Object

Parameters:
o - Object to check
Returns:
boolean

isXML

boolean isXML(Object o)
tests if object is a XML Object

Parameters:
o - Object to check
Returns:
boolean

isXMLElement

boolean isXMLElement(Object o)
tests if object is a XML Element Object

Parameters:
o - Object to check
Returns:
boolean

isXMLDocument

boolean isXMLDocument(Object o)
tests if object is a XML Document Object

Parameters:
o - Object to check
Returns:
boolean

isXMLRootElement

boolean isXMLRootElement(Object o)
tests if object is a XML Root Element Object

Parameters:
o - Object to check
Returns:
boolean

isVariableName

boolean isVariableName(String string)
Parameters:
string -
Returns:
returns if string represent a variable name

isSimpleVariableName

boolean isSimpleVariableName(String string)
Parameters:
string -
Returns:
returns if string represent a variable name

isObject

boolean isObject(Object o)
returns if object is a cold fusion object

Parameters:
o - Object to check
Returns:
is or not

isEmpty

boolean isEmpty(String str)
Parameters:
str -
Returns:
return if a String is "Empty", that means NULL or String with length 0 (whitespaces will not counted)

isEmpty

boolean isEmpty(String str,
                boolean trim)
Parameters:
str -
trim -
Returns:
return if a String is "Empty", that means NULL or String with length 0 (whitespaces will not counted)

toKey

Collection.Key toKey(Object obj)
                     throws PageException
Throws:
PageException

toKey

Collection.Key toKey(Object obj,
                     Collection.Key defaultValue)


Copyright © 2012 Railo