|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.util.ArraySupport
railo.runtime.type.ArrayImpl
public class ArrayImpl
cold fusion array object
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 | |
---|---|
ArrayImpl()
constructor with default dimesnion (1) |
|
ArrayImpl(int dimension)
constructor with definiton of the dimension |
|
ArrayImpl(Object[] objects)
constructor with to data to fill |
Method Summary | |
---|---|
String |
_append(String str)
append a new value to the end of the array |
Object |
append(Object o)
append a new value to the end of the array |
Object |
appendEL(Object o)
append a new value to the end of the array |
void |
clear()
clears the collection |
Collection |
duplicate(boolean deepCopy)
|
Object |
get(Collection.Key key)
return a value from the collection |
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null |
Object |
get(int key,
Object defaultValue)
return object a given position, key can only be a integer from 1 to array len |
Object |
get(String key)
return a value from the collection |
Object |
get(String key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null |
int |
getDimension()
return dimension of the array |
Object |
getE(int key)
return object a given position, key can only be a integer from 1 to array len |
boolean |
insert(int key,
Object value)
insert a value add defined position |
int[] |
intKeys()
|
Iterator |
iterator()
|
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
Object |
prepend(Object o)
add a new value to the begin of the array |
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
removeE(int key)
removes a value ad defined key |
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null |
Object |
removeEL(int key)
removes a value ad defined key |
void |
resize(int to)
resize array to defined size |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection |
Object |
set(String key,
Object value)
sets a value to the collection |
Object |
setE(int key,
Object value)
set value at defined position |
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
Object |
setEL(int key,
Object value)
set value at defined position, on error return null |
Object |
setEL(String key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
int |
size()
|
long |
sizeOf()
return the size of the object |
void |
sort(Comparator comp)
|
void |
sort(String sortType,
String sortOrder)
sort values of a array |
Object[] |
toArray()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
String |
toPlain()
return code print of the array as plain text |
Methods inherited from class railo.runtime.type.util.ArraySupport |
---|
add, add, addAll, addAll, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, 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 |
---|
public ArrayImpl(int dimension) throws ExpressionException
dimension
- dimension goes from one to 3
ExpressionException
public ArrayImpl()
public ArrayImpl(Object[] objects)
objects
- Objects array data to fillMethod Detail |
---|
public int getDimension()
getDimension
in interface Array
public Object get(String key) throws ExpressionException
Collection
key
- key of the value to get
ExpressionException
Collection.get(java.lang.String)
public Object get(Collection.Key key) throws ExpressionException
Collection
key
- key of the value to get must be lower case
ExpressionException
Collection.get(railo.runtime.type.Collection.Key)
public Object get(String key, Object defaultValue)
Collection
key
- key of the value to get
Collection.get(java.lang.String, java.lang.Object)
public Object get(Collection.Key key, Object defaultValue)
Collection
key
- key of the value to get
Collection.get(railo.runtime.type.Collection.Key, java.lang.Object)
public Object get(int key, Object defaultValue)
Array
get
in interface Array
key
- key as integer
Array.get(int, java.lang.Object)
public Object getE(int key) throws ExpressionException
Array
getE
in interface Array
key
- key as integer
ExpressionException
Array.getE(int)
public Object setEL(String key, Object value)
Collection
key
- key of the value to getvalue
- value to set
Collection.setEL(java.lang.String, java.lang.Object)
public Object setEL(Collection.Key key, Object value)
Collection
key
- key of the value to getvalue
- value to set
railo.runtime.type.Collection#_setEL(java.lang.String, java.lang.Object)
public Object set(String key, Object value) throws ExpressionException
Collection
key
- key of the new valuevalue
- value to set
ExpressionException
Collection.set(java.lang.String, java.lang.Object)
public Object set(Collection.Key key, Object value) throws ExpressionException
Collection
key
- key of the new valuevalue
- value to set
ExpressionException
railo.runtime.type.Collection#_set(java.lang.String, java.lang.Object)
public Object setEL(int key, Object value)
Array
setEL
in interface Array
key
- key of the new valuevalue
- value to set
Array.setEL(int, java.lang.Object)
public Object setE(int key, Object value) throws ExpressionException
setE
in interface Array
key
- value
-
ExpressionException
public int size()
size
in interface Collection
size
in interface List
Collection.size()
public Collection.Key[] keys()
Collection.keys()
public String[] keysAsString()
Collection.keysAsString()
public int[] intKeys()
intKeys
in interface Array
Array.intKeys()
public Object remove(Collection.Key key) throws ExpressionException
Collection
key
- key of the collection
ExpressionException
Collection.remove(railo.runtime.type.Collection.Key)
public Object removeEL(Collection.Key key)
Collection
key
- key of the collection
public Object removeE(int key) throws ExpressionException
Array
removeE
in interface Array
key
- key to remove
ExpressionException
Array.removeE(int)
public Object removeEL(int key)
Array
removeEL
in interface Array
key
- key to remove
Array.removeEL(int)
public void clear()
Collection
clear
in interface Collection
clear
in interface List
Collection.clear()
public boolean insert(int key, Object value) throws ExpressionException
Array
insert
in interface Array
key
- position to insertvalue
- value to insert
ExpressionException
Array.insert(int, java.lang.Object)
public Object append(Object o) throws ExpressionException
Array
append
in interface Array
o
- value to insert
ExpressionException
Array.append(java.lang.Object)
public Object appendEL(Object o)
appendEL
in interface Array
o
- value to insert
public String _append(String str)
str
- value to insert
public Object prepend(Object o) throws ExpressionException
prepend
in interface Array
o
- value to insert
ExpressionException
public void resize(int to)
resize
in interface Array
to
- new minimum size of the arraypublic void sort(String sortType, String sortOrder) throws PageException
sort
in interface Array
sortType
- search type (text,textnocase,numeric)sortOrder
- (asc,desc)
PageException
public void sort(Comparator comp) throws PageException
PageException
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
toArray
in interface Array
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public String toPlain()
public Collection duplicate(boolean deepCopy)
Collection.duplicate(boolean)
public Iterator keyIterator()
keyIterator
in interface Iteratorable
Iteratorable.keyIterator()
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
iterator
in interface Iteratorable
Iteratorable.iterator()
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
railo.runtime.engine.Sizeable#sizeOf()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |