|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList
railo.runtime.type.util.ArraySupport
public abstract class ArraySupport
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface railo.runtime.type.Collection |
---|
Collection.Key |
Field Summary | |
---|---|
static short |
TYPE_BOOLEAN
|
static short |
TYPE_BYTE
|
static short |
TYPE_CHARACTER
|
static short |
TYPE_DOUBLE
|
static short |
TYPE_FLOAT
|
static short |
TYPE_INT
|
static short |
TYPE_LONG
|
static short |
TYPE_OBJECT
|
static short |
TYPE_SHORT
|
static short |
TYPE_STRING
|
Constructor Summary | |
---|---|
ArraySupport()
|
Method Summary | |
---|---|
void |
add(int index,
Object element)
|
boolean |
addAll(Collection c)
|
Object |
call(PageContext pc,
Collection.Key methodName,
Object[] args)
calls a method of the object |
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments |
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)
|
boolean |
containsKey(Collection.Key key)
contains this key |
boolean |
containsKey(int key)
contains this key |
boolean |
containsKey(String key)
contains this key |
boolean |
equals(Object obj)
|
Object |
get(int index)
|
Object |
get(PageContext pc,
Collection.Key key)
return property or getter of the ContextCollection |
Object |
get(PageContext pc,
Collection.Key key,
Object defaultValue)
return property |
Iterator<Object> |
getIterator()
|
int |
hashCode()
|
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
Object |
set(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
Object |
setEL(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
void |
sort(String sortType,
String sortOrder)
sort values of a array |
Object[] |
toArray(Object[] a)
|
List |
toList()
|
String |
toString()
|
Iterator<Object> |
valueIterator()
|
Methods inherited from class java.util.AbstractList |
---|
add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
contains, containsAll, isEmpty, size, toArray |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface railo.runtime.type.Array |
---|
append, appendEL, get, getDimension, getE, insert, intKeys, prepend, removeE, removeEL, resize, setE, setEL, sort, toArray |
Methods inherited from interface railo.runtime.type.Collection |
---|
clear, duplicate, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size |
Methods inherited from interface railo.runtime.type.Iteratorable |
---|
entryIterator, keyIterator, keysAsStringIterator |
Methods inherited from interface railo.runtime.dump.Dumpable |
---|
toDumpData |
Methods inherited from interface java.util.List |
---|
add, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, subList, toArray |
Methods inherited from interface railo.runtime.type.Sizeable |
---|
sizeOf |
Field Detail |
---|
public static final short TYPE_OBJECT
public static final short TYPE_BOOLEAN
public static final short TYPE_BYTE
public static final short TYPE_SHORT
public static final short TYPE_INT
public static final short TYPE_LONG
public static final short TYPE_FLOAT
public static final short TYPE_DOUBLE
public static final short TYPE_CHARACTER
public static final short TYPE_STRING
Constructor Detail |
---|
public ArraySupport()
Method Detail |
---|
public final void add(int index, Object element)
add
in interface List
add
in class AbstractList
public final boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
addAll
in class AbstractCollection
public final boolean remove(Object o)
remove
in interface Collection
remove
in interface List
remove
in class AbstractCollection
public final boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface List
removeAll
in class AbstractCollection
public final boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface List
retainAll
in class AbstractCollection
public final Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface List
toArray
in class AbstractCollection
public final Object get(int index)
get
in interface List
get
in class AbstractList
public final Object remove(int index)
remove
in interface List
remove
in class AbstractList
public final Object set(int index, Object element)
set
in interface List
set
in class AbstractList
public boolean containsKey(String key)
Collection
public boolean containsKey(Collection.Key key)
Collection
public boolean containsKey(int key)
Array
containsKey
in interface Array
public String toString()
toString
in class AbstractCollection
public Object clone()
clone
in class Object
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
PageException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
public List toList()
toList
in interface Array
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
public Object set(PageContext pc, Collection.Key propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insert
PageException
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
setEL
in interface Objects
propertyName
- property name to setvalue
- value to insert
public Object call(PageContext pc, Collection.Key methodName, Object[] args) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callargs
- arguments to call method with
PageException
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
public Iterator<Object> getIterator()
getIterator
in interface ForEachIteratorable
public void sort(String sortType, String sortOrder) throws PageException
Array
sort
in interface Array
sortType
- search type (text,textnocase,numeric)sortOrder
- (asc,desc)
PageException
public boolean equals(Object obj)
equals
in interface Collection
equals
in interface List
equals
in class AbstractList
public int hashCode()
hashCode
in interface Collection
hashCode
in interface List
hashCode
in class AbstractList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |