railo.runtime.type
Class SVArray

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          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, ForEachIteratorable, Iteratorable, Objects, 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 exist
 Object touchEL(PageContext pc)
          create it when not exist
 
Methods inherited from class railo.runtime.type.ArrayImpl
_append, append, appendEL, clear, entryIterator, get, get, get, get, get, getDimension, getE, insert, intKeys, iterator, keyIterator, keys, keysAsStringIterator, prepend, remove, removeE, removeEL, removeEL, resize, set, set, setE, setEL, setEL, setEL, size, sizeOf, sort, toArray, toPlain
 
Methods inherited from class railo.runtime.type.util.ArraySupport
add, addAll, call, callWithNamedValues, containsKey, containsKey, containsKey, equals, get, get, get, getIterator, hashCode, remove, remove, removeAll, retainAll, set, set, setEL, sort, toArray, toList, toString, valueIterator
 
Methods inherited from class java.util.AbstractList
add, addAll, indexOf, lastIndexOf, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, contains, containsAll, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, subList
 

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

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

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

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

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

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

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

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

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

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

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

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

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

compareTo

public int compareTo(boolean b)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class ArraySupport
Throws:
PageException

compareTo

public int compareTo(DateTime dt)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class ArraySupport
Throws:
PageException

compareTo

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

compareTo

public int compareTo(String str)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class ArraySupport
Throws:
PageException

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:
return array as ArrayList

clone

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

duplicate

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


Copyright © 2012 Railo