public final class SVArray extends ArrayImpl implements Reference
Collection.Key
TYPE_BOOLEAN, TYPE_BYTE, TYPE_CHARACTER, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_OBJECT, TYPE_SHORT, TYPE_STRING
Constructor and Description |
---|
SVArray()
Constructor of the class
|
SVArray(int dimension)
Constructor of the class
|
SVArray(int dimension,
int initalCapacity) |
SVArray(Object[] objects)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
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
|
_append, append, appendEL, clear, ensureCapacity, 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
add, addAll, call, callWithNamedValues, containsKey, containsKey, containsKey, equals, get, get, get, getIterator, remove, remove, removeAll, retainAll, set, set, setEL, sort, toArray, toList, toString, valueIterator
add, addAll, hashCode, indexOf, lastIndexOf, listIterator, listIterator, subList
contains, containsAll, isEmpty
add, addAll, contains, containsAll, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, subList
public SVArray()
public SVArray(int dimension) throws ExpressionException
dimension
- ExpressionException
public SVArray(int dimension, int initalCapacity) throws ExpressionException
ExpressionException
public int getPosition()
public void setPosition(int position)
position
- The position to set.public Collection.Key getKey()
public String getKeyAsString()
getKeyAsString
in interface Reference
public Object get(PageContext pc) throws PageException
get
in interface Reference
pc
- PageContext of the actuell RequestPageException
public Object get(PageContext pc, Object defaultValue)
public Object touch(PageContext pc) throws PageException
Reference
touch
in interface Reference
PageException
public Object touchEL(PageContext pc)
Reference
public Object set(PageContext pc, Object value) throws PageException
set
in interface Reference
pc
- PageContext of the actuell Requestvalue
- resets the value of the variablePageException
public Object setEL(PageContext pc, Object value)
public Object remove(PageContext pc) throws PageException
Reference
remove
in interface Reference
PageException
public Object removeEL(PageContext pc)
Reference
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class ArraySupport
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class ArraySupport
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class ArraySupport
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class ArraySupport
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class ArraySupport
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class ArraySupport
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
castToDateTime
in class ArraySupport
PageException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
castToDateTime
in class ArraySupport
defaultValue
- returned when it is not possible to cast to a dateTime objectpublic int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class ArrayImpl
public Object clone()
clone
in class ArraySupport
public Collection duplicate(boolean deepCopy)
Copyright © 2015 Lucee