railo.runtime.type
Class SVArray

java.lang.Object
  extended by railo.runtime.type.util.ArraySupport
      extended by railo.runtime.type.ArrayImpl
          extended by railo.runtime.type.SVArray
All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, Dumpable, Castable, Array, Iteratorable, Reference, Sizeable

public final class SVArray
extends ArrayImpl
implements Reference

Simple Value Array, a Array that can't cast to a Simple Value

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface railo.runtime.type.Collection
Collection.Key
 
Field Summary
 
Fields inherited from class railo.runtime.type.util.ArraySupport
TYPE_BOOLEAN, TYPE_BYTE, TYPE_CHARACTER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_OBJECT, TYPE_SHORT, TYPE_STRING
 
Constructor Summary
SVArray()
          Constructor of the class
SVArray(int dimension)
          Constructor of the class
SVArray(Object[] objects)
          Constructor of the class
 
Method Summary
 Boolean castToBoolean(Boolean defaultValue)
          cast the castable value to a boolean value
 boolean castToBooleanValue()
          cast the castable value to a boolean value
 DateTime castToDateTime()
          cast the castable value to a date time object
 DateTime castToDateTime(DateTime defaultValue)
          cast the castable value to a date time object
 double castToDoubleValue()
          cast the castable value to a double value
 double castToDoubleValue(double defaultValue)
          cast the castable value to a double value
 String castToString()
          cast the castable value to a string, other than the Method toString, this Method can throw a Exception
 String castToString(String defaultValue)
          cast the castable value to a string, return the default value, when the method is not castable
 Object clone()
           
 int compareTo(boolean b)
           
 int compareTo(DateTime dt)
           
 int compareTo(double d)
           
 int compareTo(String str)
           
 Collection duplicate(boolean deepCopy)
           
 Object get(PageContext pc)
           
 Object get(PageContext pc, Object defaultValue)
           
 Collection.Key getKey()
           
 String getKeyAsString()
           
 Object getParent()
           
 int getPosition()
           
 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)
           
 void setPosition(int position)
           
 DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
          method to print out information to a object as HTML
 Object touch(PageContext pc)
          create it when not exists
 Object touchEL(PageContext pc)
          create it when not exists
 
Methods inherited from class railo.runtime.type.ArrayImpl
_append, append, appendEL, clear, get, get, get, get, get, getDimension, getE, insert, intKeys, iterator, keyIterator, keys, keysAsString, prepend, remove, removeE, removeEL, removeEL, resize, set, set, setE, setEL, setEL, setEL, size, sizeOf, sort, sort, toArray, toPlain
 
Methods inherited from class railo.runtime.type.util.ArraySupport
add, add, addAll, addAll, contains, containsAll, containsKey, containsKey, containsKey, equals, get, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toList, toString, valueIterator
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
hashCode
 

Constructor Detail

SVArray

public SVArray()
Constructor of the class


SVArray

public SVArray(int dimension)
        throws ExpressionException
Constructor of the class

Parameters:
dimension -
Throws:
ExpressionException

SVArray

public SVArray(Object[] objects)
Constructor of the class

Parameters:
objects -
Method Detail

getPosition

public int getPosition()
Returns:
Returns the position.

setPosition

public void setPosition(int position)
Parameters:
position - The position to set.

getKey

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

getKeyAsString

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

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
See Also:
Reference.get(railo.runtime.PageContext)

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
See Also:
Reference.get(railo.runtime.PageContext, java.lang.Object)

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
See Also:
Reference.touch(railo.runtime.PageContext)

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
See Also:
Reference.touchEL(railo.runtime.PageContext)

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
See Also:
Reference.set(railo.runtime.PageContext, java.lang.Object)

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
See Also:
Reference.setEL(railo.runtime.PageContext, java.lang.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
See Also:
Reference.remove(railo.runtime.PageContext)

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
See Also:
Reference.removeEL(railo.runtime.PageContext)

getParent

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

castToString

public String castToString()
                    throws PageException
Description copied from interface: Castable
cast the castable value to a string, other than the Method toString, this Method can throw a Exception

Specified by:
castToString in interface Castable
Overrides:
castToString in class ArraySupport
Returns:
String representation of the Object
Throws:
PageException
See Also:
Castable.castToString()

castToString

public String castToString(String defaultValue)
Description copied from interface: Castable
cast the castable value to a string, return the default value, when the method is not castable

Specified by:
castToString in interface Castable
Overrides:
castToString in class ArraySupport
Returns:
String representation of the Object
See Also:
StructSupport.castToString(java.lang.String)

castToBooleanValue

public boolean castToBooleanValue()
                           throws PageException
Description copied from interface: Castable
cast the castable value to a boolean value

Specified by:
castToBooleanValue in interface Castable
Overrides:
castToBooleanValue in class ArraySupport
Returns:
boolean Value representation of the Object
Throws:
PageException
See Also:
Castable.castToBooleanValue()

castToBoolean

public Boolean castToBoolean(Boolean defaultValue)
Description copied from interface: Castable
cast the castable value to a boolean value

Specified by:
castToBoolean in interface Castable
Overrides:
castToBoolean in class ArraySupport
Returns:
boolean Value representation of the Object
See Also:
Castable.castToBoolean(java.lang.Boolean)

castToDoubleValue

public double castToDoubleValue()
                         throws PageException
Description copied from interface: Castable
cast the castable value to a double value

Specified by:
castToDoubleValue in interface Castable
Overrides:
castToDoubleValue in class ArraySupport
Returns:
double Value representation of the Object
Throws:
PageException
See Also:
Castable.castToDoubleValue()

castToDoubleValue

public double castToDoubleValue(double defaultValue)
Description copied from interface: Castable
cast the castable value to a double value

Specified by:
castToDoubleValue in interface Castable
Overrides:
castToDoubleValue in class ArraySupport
Returns:
double Value representation of the Object
See Also:
Castable.castToDoubleValue(double)

castToDateTime

public DateTime castToDateTime()
                        throws PageException
Description copied from interface: Castable
cast the castable value to a date time object

Specified by:
castToDateTime in interface Castable
Overrides:
castToDateTime in class ArraySupport
Returns:
date time representation of the Object
Throws:
PageException
See Also:
Castable.castToDateTime()

castToDateTime

public DateTime castToDateTime(DateTime defaultValue)
Description copied from interface: Castable
cast the castable value to a date time object

Specified by:
castToDateTime in interface Castable
Overrides:
castToDateTime in class ArraySupport
Parameters:
defaultValue - returned when it is not possible to cast to a dateTime object
Returns:
date time representation of the Object
See Also:
Castable.castToDateTime(railo.runtime.type.dt.DateTime)

compareTo

public int compareTo(boolean b)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class ArraySupport
Throws:
PageException
See Also:
railo.runtime.op.Castable#compare(boolean)

compareTo

public int compareTo(DateTime dt)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class ArraySupport
Throws:
PageException
See Also:
Castable.compareTo(railo.runtime.type.dt.DateTime)

compareTo

public int compareTo(double d)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class ArraySupport
Throws:
PageException
See Also:
Castable.compareTo(double)

compareTo

public int compareTo(String str)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class ArraySupport
Throws:
PageException
See Also:
Castable.compareTo(java.lang.String)

toDumpData

public DumpData toDumpData(PageContext pageContext,
                           int maxlevel,
                           DumpProperties dp)
Description copied from interface: Dumpable
method to print out information to a object as HTML

Specified by:
toDumpData in interface Dumpable
Overrides:
toDumpData in class ArrayImpl
Returns:
HTML print out
See Also:
railo.runtime.type.ArrayImpl#toDumpData(railo.runtime.PageContext, int)

clone

public Object clone()
Overrides:
clone in class ArraySupport
Returns:
this object cloned
See Also:
ArraySupport.clone()

duplicate

public Collection duplicate(boolean deepCopy)
Overrides:
duplicate in class ArrayImpl
See Also:
ArrayImpl.duplicate(boolean)


Copyright © 2012 Railo