railo.runtime.type.ref
Class SimpleVarRef

java.lang.Object
  extended by railo.runtime.type.ref.SimpleVarRef
All Implemented Interfaces:
Reference

public class SimpleVarRef
extends Object
implements Reference


Constructor Summary
SimpleVarRef(PageContextImpl pc, String key)
           
 
Method Summary
 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 exists
 Object touchEL(PageContext pc)
          create it when not exists
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleVarRef

public SimpleVarRef(PageContextImpl pc,
                    String key)
Method Detail

get

public Object get(PageContext pc)
           throws PageException
Specified by:
get in interface Reference
Parameters:
pc - PageContext of the actuell Request
Returns:
returns the value of the Variable
Throws:
PageException

get

public Object get(PageContext pc,
                  Object defaultValue)
Specified by:
get in interface Reference
Parameters:
pc - PageContext of the actuell Request
Returns:
returns the value of the Variable

getKey

public Collection.Key getKey()
                      throws PageException
Specified by:
getKey in interface Reference
Returns:
returns the value of the Variable
Throws:
PageException

getKeyAsString

public String getKeyAsString()
                      throws PageException
Specified by:
getKeyAsString in interface Reference
Returns:
returns the value of the Variable
Throws:
PageException

getParent

public Object getParent()
Specified by:
getParent in interface Reference
Returns:
returns the collection

remove

public Object remove(PageContext pc)
              throws PageException
Description copied from interface: Reference
clears the variable from collection

Specified by:
remove in interface Reference
Returns:
removed Object
Throws:
PageException

removeEL

public Object removeEL(PageContext pc)
Description copied from interface: Reference
clears the variable from collection

Specified by:
removeEL in interface Reference
Returns:
removed Object

set

public Object set(PageContext pc,
                  Object value)
           throws PageException
Specified by:
set in interface Reference
Parameters:
pc - PageContext of the actuell Request
value - resets the value of the variable
Returns:
new Value setted
Throws:
PageException

setEL

public Object setEL(PageContext pc,
                    Object value)
Specified by:
setEL in interface Reference
Parameters:
pc - PageContext of the actuell Request
value - resets the value of the variable
Returns:
new Value setted

touch

public Object touch(PageContext pc)
             throws PageException
Description copied from interface: Reference
create it when not exists

Specified by:
touch in interface Reference
Returns:
removed Object
Throws:
PageException

touchEL

public Object touchEL(PageContext pc)
Description copied from interface: Reference
create it when not exists

Specified by:
touchEL in interface Reference
Returns:
removed Object


Copyright © 2012 Railo