Constructor and Description |
---|
Decision() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isAnyType(String type) |
static boolean |
isArray(Object o)
tests if object is a array
|
static boolean |
isBinary(Object object)
tests if object is a binary
|
static boolean |
isBoolean(Object value)
tests if value is a Boolean (Numbers are not acctepeted)
|
static boolean |
isBoolean(Object value,
boolean alsoNumbers) |
static boolean |
isBoolean(String str)
tests if value is a Boolean
|
static boolean |
isCastableTo(PageContext pc,
short type,
String strType,
Object o) |
static boolean |
isCastableTo(String type,
Object o,
boolean alsoAlias,
boolean alsoPattern,
int maxlength)
checks if a value is castable to a certain type
|
static boolean |
isCastableToArray(Object o)
can this type be casted to a array
|
static boolean |
isCastableToBinary(Object object,
boolean checkBase64String)
tests if object is catable to a binary
|
static boolean |
isCastableToBoolean(Object value) |
static boolean |
isCastableToDate(Object o) |
static boolean |
isCastableToNumeric(Object o) |
static boolean |
isCastableToString(Object o) |
static boolean |
isCastableToStruct(Object o) |
static boolean |
isClosure(Object obj) |
static boolean |
isComponent(Object object)
tests if object is a Component
|
static boolean |
isCreditCard(Object value)
returns if a value is a credit card
|
static boolean |
isDate(Object value,
boolean alsoNumbers)
tests if value is DateTime Object
|
static boolean |
isDate(String str,
Locale locale,
TimeZone tz,
boolean lenient) |
static boolean |
isDateAdvanced(Object value,
boolean alsoNumbers) |
static boolean |
isDateSimple(Object value,
boolean alsoNumbers) |
static boolean |
isDateSimple(Object value,
boolean alsoNumbers,
boolean alsoMonthString) |
static boolean |
isEmail(Object value)
returns if given object is a email
|
static boolean |
isEmpty(Object obj) |
static boolean |
isEmpty(String str)
Deprecated.
use instead
StringUtil.isEmpty(String) |
static boolean |
isEmpty(String str,
boolean trim)
Deprecated.
use instead
StringUtil.isEmpty(String) |
static boolean |
isEuroDate(Object value) |
static boolean |
isEuroDate(String str) |
static boolean |
isFunction(Object obj) |
static boolean |
isGUId(Object obj) |
static boolean |
isGUID(Object obj)
Deprecated.
use instead
isGUId(Object) |
static boolean |
isGUIdSimple(Object obj) |
static boolean |
isHex(String str)
tests if String value is Hex Value
|
static boolean |
isInteger(Object value) |
static boolean |
isInteger(Object value,
boolean alsoBooleans) |
static boolean |
isLeapYear(int year)
tests if year is a leap year
|
static boolean |
isNativeArray(Object o)
tests if object is a native java array
|
static boolean |
isNumeric(Object value)
tests if value is Numeric
|
static boolean |
isNumeric(Object value,
boolean alsoBooleans)
tests if value is Numeric
|
static boolean |
isNumeric(String str)
tests if String value is Numeric
|
static boolean |
isObject(Object o)
returns if object is a CFML object
|
static boolean |
isPhone(Object value)
returns if given object is a phone
|
static boolean |
isQuery(Object object)
tests if object is a Query
|
static boolean |
isQueryColumn(Object object) |
static boolean |
isSimpleValue(Object value)
tests if value is a simple value (Number,String,Boolean,Date,Printable)
|
static boolean |
isSimpleVariableName(Collection.Key key) |
static boolean |
isSimpleVariableName(String string) |
static boolean |
isSSN(Object value)
returns if given object is a social security number (usa)
|
static boolean |
isString(Object o) |
static boolean |
isStruct(Object o)
tests if object is a struct
|
static boolean |
isURL(Object value)
returns true if the given object is a valid URL
|
static boolean |
isUSDate(Object value) |
static boolean |
isUSDate(String str) |
static boolean |
isUserDefinedFunction(Object object)
tests if object is a binary
|
static boolean |
isUUId(Object obj)
tests if String value is UUID Value
|
static boolean |
isUUID(Object obj)
Deprecated.
use instead
isUUId(Object obj) |
static boolean |
isValid(double dbl)
Checks if number is valid (not infinity or NaN)
|
static boolean |
isValid(String type,
Object value) |
static boolean |
isVariableName(Object obj) |
static boolean |
isVariableName(String string) |
static boolean |
isVoid(Object o) |
static boolean |
isWddx(Object o)
tests if object is a WDDX Object
|
static boolean |
isXML(Object o)
tests if object is a XML Object
|
static boolean |
isXMLDocument(Object o)
tests if object is a XML Document Object
|
static boolean |
isXMLElement(Object o)
tests if object is a XML Element Object
|
static boolean |
isXMLRootElement(Object o)
tests if object is a XML Root Element Object
|
static boolean |
isZipCode(Object value)
returns if given object is a zip code
|
public Decision()
public static boolean isSimpleValue(Object value)
value
- value to testpublic static boolean isNumeric(Object value)
value
- value to testpublic static boolean isCastableToNumeric(Object o)
public static boolean isCastableToDate(Object o)
public static boolean isNumeric(Object value, boolean alsoBooleans)
value
- value to testpublic static boolean isNumeric(String str)
str
- value to testpublic static boolean isHex(String str)
str
- value to testpublic static boolean isUUID(Object obj)
isUUId(Object obj)
obj
- value to testpublic static boolean isUUId(Object obj)
obj
- value to testpublic static boolean isGUID(Object obj)
isGUId(Object)
obj
- public static boolean isGUIdSimple(Object obj)
public static boolean isBoolean(Object value)
value
- value to testpublic static boolean isCastableToBoolean(Object value)
public static boolean isBoolean(String str)
str
- value to testpublic static boolean isDate(Object value, boolean alsoNumbers)
value
- value to testalsoNumbers
- interpret also a number as datepublic static boolean isDateSimple(Object value, boolean alsoNumbers)
public static boolean isDateSimple(Object value, boolean alsoNumbers, boolean alsoMonthString)
public static boolean isDateAdvanced(Object value, boolean alsoNumbers)
public static boolean isEuroDate(Object value)
public static boolean isEuroDate(String str)
public static boolean isCastableToStruct(Object o)
public static boolean isStruct(Object o)
o
- public static boolean isCastableToArray(Object o)
o
- PageException
public static boolean isArray(Object o)
o
- public static boolean isNativeArray(Object o)
o
- public static boolean isCastableToBinary(Object object, boolean checkBase64String)
object
- public static boolean isBinary(Object object)
object
- public static boolean isComponent(Object object)
object
- public static boolean isQuery(Object object)
object
- public static boolean isQueryColumn(Object object)
public static boolean isUserDefinedFunction(Object object)
object
- public static final boolean isLeapYear(int year)
year
- year to checkpublic static boolean isWddx(Object o)
o
- Object to checkpublic static boolean isXML(Object o)
o
- Object to checkpublic static boolean isXMLElement(Object o)
o
- Object to checkpublic static boolean isXMLDocument(Object o)
o
- Object to checkpublic static boolean isXMLRootElement(Object o)
o
- Object to checkpublic static boolean isVariableName(Object obj)
obj
- public static boolean isFunction(Object obj)
public static boolean isVariableName(String string)
string
- public static boolean isSimpleVariableName(String string)
string
- public static boolean isSimpleVariableName(Collection.Key key)
key
- public static boolean isObject(Object o)
o
- Object to checkpublic static boolean isEmpty(Object obj)
obj
- public static boolean isEmpty(String str)
StringUtil.isEmpty(String)
str
- public static boolean isEmpty(String str, boolean trim)
StringUtil.isEmpty(String)
str
- trim
- public static boolean isCreditCard(Object value)
value
- public static boolean isEmail(Object value)
value
- public static boolean isSSN(Object value)
value
- public static boolean isPhone(Object value)
value
- public static boolean isURL(Object value)
value
- public static boolean isZipCode(Object value)
value
- public static boolean isCastableToString(Object o)
public static boolean isValid(String type, Object value) throws ExpressionException
ExpressionException
public static boolean isCastableTo(String type, Object o, boolean alsoAlias, boolean alsoPattern, int maxlength)
type
- any,array,boolean,binary, ...o
- value to checkalsoPattern
- also check patterns like creditcards,email,phone ...maxlength
- only used for email,url, string, ignored otherwisepublic static boolean isCastableTo(PageContext pc, short type, String strType, Object o)
public static boolean isValid(double dbl)
dbl
- Copyright © 2015 Lucee