railo.runtime.type.ref
Class ReferenceReference

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

public final class ReferenceReference
extends Object
implements Reference

Handle a Reference


Constructor Summary
ReferenceReference(Reference reference, 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)
           
 String toString()
           
 Object touch(PageContext pc)
          create it when not exist
 Object touchEL(PageContext pc)
          create it when not exist
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReferenceReference

public ReferenceReference(Reference reference,
                          String key)
Parameters:
reference -
key -
Method Detail

getKey

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

getKeyAsString

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

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

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 exist

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 exist

Specified by:
touchEL in interface Reference
Returns:
removed Object

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

getParent

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Railo