|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.ref.VariableReference
public final class VariableReference
represent a reference to a variable
Constructor Summary | |
---|---|
VariableReference(Collection coll,
Collection.Key key)
constructor of the class |
|
VariableReference(Collection coll,
String key)
constructor of the class |
|
VariableReference(Object o,
Collection.Key key)
constructor of the class |
|
VariableReference(Object o,
String key)
constructor of the class |
Method Summary | |
---|---|
Object |
get(PageContext pc)
|
Object |
get(PageContext pc,
Object defaultValue)
|
Collection |
getCollection()
|
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 |
void |
set(double value)
|
Object |
set(PageContext pc,
Object value)
|
Object |
setEL(PageContext pc,
Object value)
|
String |
toString()
|
Object |
touch(PageContext pc)
create it when not exists |
Object |
touchEL(PageContext pc)
create it when not exists |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VariableReference(Collection coll, String key)
coll
- Collection where variable iskey
- key to the value inside the collectionpublic VariableReference(Collection coll, Collection.Key key)
coll
- Collection where variable iskey
- key to the value inside the collectionpublic VariableReference(Object o, String key) throws PageException
o
- Object will be casted to Collectionkey
- key to the value inside the collection
PageException
public VariableReference(Object o, Collection.Key key) throws PageException
o
- Object will be casted to Collectionkey
- key to the value inside the collection
PageException
Method Detail |
---|
public Object get(PageContext pc) throws PageException
get
in interface Reference
pc
- PageContext of the actuell Request
PageException
Reference.get(railo.runtime.PageContext)
public Object get(PageContext pc, Object defaultValue)
get
in interface Reference
pc
- PageContext of the actuell Request
Reference.get(railo.runtime.PageContext, java.lang.Object)
public Object set(PageContext pc, Object value) throws PageException
set
in interface Reference
pc
- PageContext of the actuell Requestvalue
- resets the value of the variable
PageException
Reference.set(railo.runtime.PageContext, java.lang.Object)
public void set(double value) throws PageException
PageException
public Object setEL(PageContext pc, Object value)
setEL
in interface Reference
pc
- PageContext of the actuell Requestvalue
- resets the value of the variable
Reference.setEL(railo.runtime.PageContext, java.lang.Object)
public Object touch(PageContext pc) throws PageException
Reference
touch
in interface Reference
PageException
Reference.touch(railo.runtime.PageContext)
public Object touchEL(PageContext pc)
Reference
touchEL
in interface Reference
Reference.touchEL(railo.runtime.PageContext)
public Object remove(PageContext pc) throws PageException
Reference
remove
in interface Reference
PageException
Reference.remove(PageContext pc)
public Object removeEL(PageContext pc)
Reference
removeEL
in interface Reference
Reference.removeEL(railo.runtime.PageContext)
public Object getParent()
getParent
in interface Reference
Reference.getParent()
public Collection getCollection()
public String getKeyAsString()
getKeyAsString
in interface Reference
Reference.getKeyAsString()
public Collection.Key getKey()
getKey
in interface Reference
Reference.getKey()
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |