public class SimpleVarRef extends Object implements Reference
Constructor and Description |
---|
SimpleVarRef(PageContextImpl pc,
String key) |
Modifier and Type | Method and Description |
---|---|
Object |
get(PageContext pc) |
Object |
get(PageContext pc,
Object defaultValue) |
Collection.Key |
getKey() |
String |
getKeyAsString() |
Object |
getParent() |
Object |
remove(PageContext pc)
clears the variable from collection
|
Object |
removeEL(PageContext pc)
clears the variable from collection
|
Object |
set(PageContext pc,
Object value) |
Object |
setEL(PageContext pc,
Object value) |
Object |
touch(PageContext pc)
create it when not exist
|
Object |
touchEL(PageContext pc)
create it when not exist
|
public SimpleVarRef(PageContextImpl pc, String key)
public Object get(PageContext pc) throws PageException
get
in interface Reference
pc
- PageContext of the actuell RequestPageException
public Object get(PageContext pc, Object defaultValue)
public Collection.Key getKey() throws PageException
getKey
in interface Reference
PageException
public String getKeyAsString() throws PageException
getKeyAsString
in interface Reference
PageException
public Object remove(PageContext pc) throws PageException
Reference
remove
in interface Reference
PageException
public Object removeEL(PageContext pc)
Reference
public Object set(PageContext pc, Object value) throws PageException
set
in interface Reference
pc
- PageContext of the actuell Requestvalue
- resets the value of the variablePageException
public Object setEL(PageContext pc, Object value)
public Object touch(PageContext pc) throws PageException
Reference
touch
in interface Reference
PageException
Copyright © 2015 Lucee