public final class VariableUtilImpl extends Object implements VariableUtil
Constructor and Description |
---|
VariableUtilImpl() |
Modifier and Type | Method and Description |
---|---|
Object |
callFunction(PageContext pc,
Object coll,
String key,
Object[] args)
call a Function (UDF, Method) with or witout named values
|
Object |
callFunctionWithNamedValues(PageContext pc,
Object coll,
Collection.Key key,
Object[] args)
call a Function (UDF, Method) with Named Values
|
Object |
callFunctionWithNamedValues(PageContext pc,
Object coll,
Collection.Key key,
Struct args) |
Object |
callFunctionWithNamedValues(PageContext pc,
Object coll,
String key,
Object[] args)
call a Function (UDF, Method) with Named Values
|
Object |
callFunctionWithoutNamedValues(PageContext pc,
Object coll,
Collection.Key key,
Object[] args)
call a Function (UDF, Method) without Named Values
|
Object |
callFunctionWithoutNamedValues(PageContext pc,
Object coll,
String key,
Object[] args)
call a Function (UDF, Method) without Named Values
|
static Object |
columnlist(PageContext pc,
Object obj) |
static Object |
currentrow(PageContext pc,
Object obj) |
Object |
get(PageContext pc,
Object coll,
Collection.Key key) |
Object |
get(PageContext pc,
Object coll,
Collection.Key key,
Object defaultValue)
return a property from the given Object, when property doesn't exists return null
|
Object |
get(PageContext pc,
Object coll,
String key)
return a property from the given Object, when property doesn't exists throw exception
|
Object |
get(PageContext pc,
Object coll,
String key,
Object defaultValue)
return a property from the given Object, when property doesn't exists return null
|
Object |
getCollection(PageContext pc,
Object coll,
Collection.Key key) |
Object |
getCollection(PageContext pc,
Object coll,
Collection.Key key,
Object defaultValue) |
Object |
getCollection(PageContext pc,
Object coll,
String key)
return a property from the given Object, when coll is a query return a Column,when property doesn't exists throw exception
|
Object |
getCollection(PageContext pc,
Object coll,
String key,
Object defaultValue)
return a property from the given Object, when property doesn't exists return null
|
Object |
getLight(PageContext pc,
Object coll,
Collection.Key key,
Object defaultValue) |
Object |
getLight(PageContext pc,
Object coll,
String key,
Object defaultValue)
return a property from the given Object, when property doesn't exists return null
|
static Object |
recordcount(PageContext pc,
Object obj) |
Object |
remove(Object coll,
Collection.Key key) |
Object |
remove(Object coll,
String key)
clear value from Collection
|
Object |
removeEL(Object coll,
Collection.Key key) |
Object |
removeEL(Object coll,
String key)
remove value from Collection
|
Object |
set(PageContext pc,
Object coll,
Collection.Key key,
Object value) |
Object |
set(PageContext pc,
Object coll,
String key,
Object value)
sets a value to the Object
|
Object |
setEL(PageContext pc,
Object coll,
Collection.Key key,
Object value)
sets a value to the Object
|
Object |
setEL(PageContext pc,
Object coll,
String key,
Object value)
sets a value to the Object
|
public VariableUtilImpl()
public Object getCollection(PageContext pc, Object coll, String key, Object defaultValue)
VariableUtil
getCollection
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionpublic Object getCollection(PageContext pc, Object coll, Collection.Key key, Object defaultValue)
public Object get(PageContext pc, Object coll, String key, Object defaultValue)
VariableUtil
get
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionpublic Object get(PageContext pc, Object coll, Collection.Key key, Object defaultValue)
VariableUtil
get
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionpublic Object getLight(PageContext pc, Object coll, Collection.Key key, Object defaultValue)
public Object getLight(PageContext pc, Object coll, String key, Object defaultValue)
VariableUtil
getLight
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionpublic Object getCollection(PageContext pc, Object coll, String key) throws PageException
VariableUtil
getCollection
in interface VariableUtil
coll
- Collection to checkkey
- to get from CollectionPageException
public Object getCollection(PageContext pc, Object coll, Collection.Key key) throws PageException
PageException
public Object get(PageContext pc, Object coll, Collection.Key key) throws PageException
PageException
public Object get(PageContext pc, Object coll, String key) throws PageException
VariableUtil
get
in interface VariableUtil
coll
- Collection to checkkey
- to get from CollectionPageException
public Object set(PageContext pc, Object coll, Collection.Key key, Object value) throws PageException
PageException
public Object set(PageContext pc, Object coll, String key, Object value) throws PageException
VariableUtil
set
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionvalue
- Value to setPageException
VariableUtil.set(lucee.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object)
public Object setEL(PageContext pc, Object coll, String key, Object value)
VariableUtil
setEL
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionvalue
- Value to setVariableUtil.setEL(lucee.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object)
public Object setEL(PageContext pc, Object coll, Collection.Key key, Object value)
VariableUtil
setEL
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionvalue
- Value to setVariableUtil.setEL(lucee.runtime.PageContext, java.lang.Object, lucee.runtime.type.Collection.Key, java.lang.Object)
public Object removeEL(Object coll, String key)
VariableUtil
removeEL
in interface VariableUtil
VariableUtil.removeEL(java.lang.Object, java.lang.String)
public Object removeEL(Object coll, Collection.Key key)
public Object remove(Object coll, String key) throws PageException
VariableUtil
remove
in interface VariableUtil
PageException
VariableUtil.remove(java.lang.Object, java.lang.String)
public Object remove(Object coll, Collection.Key key) throws PageException
PageException
public Object callFunction(PageContext pc, Object coll, String key, Object[] args) throws PageException
VariableUtil
callFunction
in interface VariableUtil
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the functionPageException
VariableUtil.callFunction(lucee.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object[])
public Object callFunctionWithoutNamedValues(PageContext pc, Object coll, String key, Object[] args) throws PageException
VariableUtil
callFunctionWithoutNamedValues
in interface VariableUtil
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the functionPageException
VariableUtil.callFunctionWithoutNamedValues(lucee.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object[])
public Object callFunctionWithoutNamedValues(PageContext pc, Object coll, Collection.Key key, Object[] args) throws PageException
VariableUtil
callFunctionWithoutNamedValues
in interface VariableUtil
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the functionPageException
public Object callFunctionWithNamedValues(PageContext pc, Object coll, String key, Object[] args) throws PageException
VariableUtil
callFunctionWithNamedValues
in interface VariableUtil
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the functionPageException
VariableUtil.callFunctionWithNamedValues(lucee.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object[])
public Object callFunctionWithNamedValues(PageContext pc, Object coll, Collection.Key key, Object[] args) throws PageException
VariableUtil
callFunctionWithNamedValues
in interface VariableUtil
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the functionPageException
public Object callFunctionWithNamedValues(PageContext pc, Object coll, Collection.Key key, Struct args) throws PageException
callFunctionWithNamedValues
in interface VariableUtil
PageException
public static Object recordcount(PageContext pc, Object obj) throws PageException
PageException
public static Object currentrow(PageContext pc, Object obj) throws PageException
PageException
public static Object columnlist(PageContext pc, Object obj) throws PageException
PageException
Copyright © 2015 Lucee