|
||||||||||
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.text.xml.struct.XMLMultiElementArray
public class XMLMultiElementArray
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 | |
---|---|
XMLMultiElementArray(XMLMultiElementStruct struct)
|
Method Summary | |
---|---|
boolean |
add(Object o)
adds a value and return this array |
Object |
append(Object o)
append a new value to the end of the array |
Object |
appendEL(Object o)
|
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 |
void |
clear()
clears the collection |
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 |
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 index,
Object value)
insert a value add defined position |
int[] |
intKeys()
|
Iterator |
iterator()
|
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
Object |
prepend(Object value)
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 |
remove(String key)
|
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(String sortType,
String sortOrder)
sort values of a array |
Object[] |
toArray()
|
ArrayList |
toArrayList()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
Methods inherited from class railo.runtime.type.util.ArraySupport |
---|
add, addAll, addAll, contains, containsAll, 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 XMLMultiElementArray(XMLMultiElementStruct struct)
Method Detail |
---|
public Object append(Object o) throws PageException
Array
o
- value to insert
PageException
Array.append(java.lang.Object)
public Object appendEL(Object o)
Array.appendEL(java.lang.Object)
public boolean containsKey(int key)
Array
containsKey
in interface Array
containsKey
in class ArraySupport
Array.containsKey(int)
public Object get(int key, Object defaultValue)
Array
key
- key as integer
Array.get(int, java.lang.Object)
public Object getE(int key) throws PageException
Array
key
- key as integer
PageException
Array.getE(int)
public int getDimension()
Array
Array.getDimension()
public boolean insert(int index, Object value) throws PageException
Array
index
- position to insertvalue
- value to insert
PageException
Array.insert(int, java.lang.Object)
public int[] intKeys()
Array.intKeys()
public Object prepend(Object value) throws PageException
Array
value
- value to insert
PageException
Array.prepend(java.lang.Object)
public Object removeE(int key) throws PageException
Array
key
- key to remove
PageException
Array.removeE(int)
public Object removeEL(int key)
Array
key
- key to remove
Array.removeEL(int)
public void resize(int to) throws PageException
Array
to
- new minimum size of the array
PageException
Array.resize(int)
public Object setE(int key, Object value) throws PageException
Array
PageException
Array.setE(int, java.lang.Object)
public Object setEL(int key, Object value)
Array
key
- key of the new valuevalue
- value to set
Array.setEL(int, java.lang.Object)
public void sort(String sortType, String sortOrder) throws PageException
Array
sortType
- search type (text,textnocase,numeric)sortOrder
- (asc,desc)
PageException
Array.sort(java.lang.String, java.lang.String)
public Object[] toArray()
Array.toArray()
public ArrayList toArrayList()
railo.runtime.type.Array#toArrayList()
public void clear()
Collection
Collection.clear()
public boolean containsKey(String key)
Collection
containsKey
in class ArraySupport
Collection.containsKey(java.lang.String)
public boolean containsKey(Collection.Key key)
Collection
containsKey
in class ArraySupport
Collection.containsKey(railo.runtime.type.Collection.Key)
public Collection duplicate(boolean deepCopy)
Collection.duplicate(boolean)
public Object get(String key) throws PageException
Collection
key
- key of the value to get
PageException
Collection.get(java.lang.String)
public Object get(Collection.Key key) throws PageException
Collection
key
- key of the value to get must be lower case
PageException
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 Collection.Key[] keys()
Collection.keys()
public String[] keysAsString()
Collection.keysAsString()
public Object remove(String key) throws PageException
PageException
railo.runtime.type.Collection#remove(java.lang.String)
public Object remove(Collection.Key key) throws PageException
Collection
key
- key of the collection
PageException
Collection.remove(railo.runtime.type.Collection.Key)
public Object removeEL(Collection.Key key)
Collection
key
- key of the collection
Collection.removeEL(railo.runtime.type.Collection.Key)
public Object set(String key, Object value) throws PageException
Collection
key
- key of the new valuevalue
- value to set
PageException
Collection.set(java.lang.String, java.lang.Object)
public Object set(Collection.Key key, Object value) throws PageException
Collection
key
- key of the new valuevalue
- value to set
PageException
Collection.set(railo.runtime.type.Collection.Key, java.lang.Object)
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
Collection.setEL(railo.runtime.type.Collection.Key, java.lang.Object)
public int size()
Collection.size()
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public Iterator iterator()
Iteratorable.iterator()
public Iterator keyIterator()
Iteratorable.keyIterator()
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class ArraySupport
PageException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class ArraySupport
Castable.castToBoolean(java.lang.Boolean)
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
castToDateTime
in class ArraySupport
PageException
Castable.castToDateTime()
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 object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class ArraySupport
PageException
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class ArraySupport
Castable.castToDoubleValue(double)
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class ArraySupport
PageException
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class ArraySupport
StructSupport.castToString(java.lang.String)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
Castable.compareTo(java.lang.String)
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
Castable.compareTo(boolean)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
Castable.compareTo(double)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class ArraySupport
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public Object clone()
clone
in class ArraySupport
Object.clone()
public boolean add(Object o)
ArraySupport
add
in interface Collection
add
in interface List
add
in class ArraySupport
public long sizeOf()
Sizeable
Sizeable.sizeOf()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |