railo.runtime.op
Class DecisionImpl

java.lang.Object
  extended by railo.runtime.op.DecisionImpl
All Implemented Interfaces:
Decision

public final class DecisionImpl
extends Object
implements Decision

implementation of the interface Decision


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

Constructor Detail

DecisionImpl

public DecisionImpl()
Method Detail

isArray

public boolean isArray(Object o)
Description copied from interface: Decision
tests if object is a array

Specified by:
isArray in interface Decision
Returns:
is array or not
See Also:
Decision.isArray(java.lang.Object)

isBinary

public boolean isBinary(Object object)
Description copied from interface: Decision
tests if object is a binary

Specified by:
isBinary in interface Decision
Returns:
boolean
See Also:
Decision.isBinary(java.lang.Object)

isBoolean

public boolean isBoolean(Object value)
Description copied from interface: Decision
tests if value is a Boolean (Numbers are not acctepeted)

Specified by:
isBoolean in interface Decision
Parameters:
value - value to test
Returns:
is value boolean
See Also:
Decision.isBoolean(java.lang.Object)

isBoolean

public boolean isBoolean(String str)
Description copied from interface: Decision
tests if value is a Boolean

Specified by:
isBoolean in interface Decision
Parameters:
str - value to test
Returns:
is value boolean
See Also:
Decision.isBoolean(java.lang.String)

isComponent

public boolean isComponent(Object object)
Description copied from interface: Decision
tests if object is a Component

Specified by:
isComponent in interface Decision
Returns:
boolean
See Also:
Decision.isComponent(java.lang.Object)

isDate

public boolean isDate(Object value,
                      boolean alsoNumbers)
Description copied from interface: Decision
tests if value is DateTime Object

Specified by:
isDate in interface Decision
Parameters:
value - value to test
alsoNumbers - interpret also a number as date
Returns:
is value a DateTime Object
See Also:
Decision.isDate(java.lang.Object, boolean)

isEmpty

public boolean isEmpty(String str,
                       boolean trim)
Specified by:
isEmpty in interface Decision
Returns:
return if a String is "Empty", that means NULL or String with length 0 (whitespaces will not counted)
See Also:
Decision.isEmpty(java.lang.String, boolean)

isEmpty

public boolean isEmpty(String str)
Specified by:
isEmpty in interface Decision
Returns:
return if a String is "Empty", that means NULL or String with length 0 (whitespaces will not counted)
See Also:
Decision.isEmpty(java.lang.String)

isHex

public boolean isHex(String str)
Description copied from interface: Decision
tests if String value is Hex Value

Specified by:
isHex in interface Decision
Parameters:
str - value to test
Returns:
is value numeric
See Also:
Decision.isHex(java.lang.String)

isLeapYear

public boolean isLeapYear(int year)
Description copied from interface: Decision
tests if year is a leap year

Specified by:
isLeapYear in interface Decision
Parameters:
year - year to check
Returns:
boolean
See Also:
Decision.isLeapYear(int)

isNativeArray

public boolean isNativeArray(Object o)
Description copied from interface: Decision
tests if object is a native java array

Specified by:
isNativeArray in interface Decision
Returns:
is a native (java) array
See Also:
Decision.isNativeArray(java.lang.Object)

isNumeric

public boolean isNumeric(Object value)
Description copied from interface: Decision
tests if value is Numeric

Specified by:
isNumeric in interface Decision
Parameters:
value - value to test
Returns:
is value numeric
See Also:
Decision.isNumeric(java.lang.Object)

isNumeric

public boolean isNumeric(String str)
Description copied from interface: Decision
tests if String value is Numeric

Specified by:
isNumeric in interface Decision
Parameters:
str - value to test
Returns:
is value numeric
See Also:
Decision.isNumeric(java.lang.String)

isObject

public boolean isObject(Object o)
Description copied from interface: Decision
returns if object is a cold fusion object

Specified by:
isObject in interface Decision
Parameters:
o - Object to check
Returns:
is or not
See Also:
Decision.isObject(java.lang.Object)

isQuery

public boolean isQuery(Object object)
Description copied from interface: Decision
tests if object is a Query

Specified by:
isQuery in interface Decision
Returns:
boolean
See Also:
Decision.isQuery(java.lang.Object)

isSimpleValue

public boolean isSimpleValue(Object value)
Description copied from interface: Decision
tests if value is a simple value (Number,String,Boolean,Date,Printable)

Specified by:
isSimpleValue in interface Decision
Parameters:
value - value to test
Returns:
is value a simple value
See Also:
Decision.isSimpleValue(java.lang.Object)

isSimpleVariableName

public boolean isSimpleVariableName(String string)
Specified by:
isSimpleVariableName in interface Decision
Returns:
returns if string represent a variable name
See Also:
Decision.isSimpleVariableName(java.lang.String)

isStruct

public boolean isStruct(Object o)
Description copied from interface: Decision
tests if object is a struct

Specified by:
isStruct in interface Decision
Returns:
is struct or not
See Also:
Decision.isStruct(java.lang.Object)

isUserDefinedFunction

public boolean isUserDefinedFunction(Object object)
Description copied from interface: Decision
tests if object is a binary

Specified by:
isUserDefinedFunction in interface Decision
Returns:
boolean
See Also:
Decision.isUserDefinedFunction(java.lang.Object)

isUUID

public boolean isUUID(String str)
Description copied from interface: Decision
tests if String value is UUID Value

Specified by:
isUUID in interface Decision
Parameters:
str - value to test
Returns:
is value numeric
See Also:
Decision.isUUID(java.lang.String)

isVariableName

public boolean isVariableName(String string)
Specified by:
isVariableName in interface Decision
Returns:
returns if string represent a variable name
See Also:
Decision.isVariableName(java.lang.String)

isWddx

public boolean isWddx(Object o)
Description copied from interface: Decision
tests if object is a WDDX Object

Specified by:
isWddx in interface Decision
Parameters:
o - Object to check
Returns:
boolean
See Also:
Decision.isWddx(java.lang.Object)

isXML

public boolean isXML(Object o)
Description copied from interface: Decision
tests if object is a XML Object

Specified by:
isXML in interface Decision
Parameters:
o - Object to check
Returns:
boolean
See Also:
Decision.isXML(java.lang.Object)

isXMLDocument

public boolean isXMLDocument(Object o)
Description copied from interface: Decision
tests if object is a XML Document Object

Specified by:
isXMLDocument in interface Decision
Parameters:
o - Object to check
Returns:
boolean
See Also:
Decision.isXMLDocument(java.lang.Object)

isXMLElement

public boolean isXMLElement(Object o)
Description copied from interface: Decision
tests if object is a XML Element Object

Specified by:
isXMLElement in interface Decision
Parameters:
o - Object to check
Returns:
boolean
See Also:
Decision.isXMLElement(java.lang.Object)

isXMLRootElement

public boolean isXMLRootElement(Object o)
Description copied from interface: Decision
tests if object is a XML Root Element Object

Specified by:
isXMLRootElement in interface Decision
Parameters:
o - Object to check
Returns:
boolean
See Also:
Decision.isXMLRootElement(java.lang.Object)

getInstance

public static Decision getInstance()

toKey

public Collection.Key toKey(Object obj)
                     throws PageException
Specified by:
toKey in interface Decision
Throws:
PageException
See Also:
Decision.toKey(java.lang.Object)

toKey

public Collection.Key toKey(Object obj,
                            Collection.Key defaultValue)
Specified by:
toKey in interface Decision
See Also:
Decision.toKey(java.lang.Object, railo.runtime.type.Collection.Key)


Copyright © 2012 Railo