|
||||||||||
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
railo.runtime.text.xml.XMLNodeList
public final class XMLNodeList
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 | |
---|---|
XMLNodeList(Node parent,
boolean caseSensitive)
|
|
XMLNodeList(Node parent,
boolean caseSensitive,
String filter)
|
Method Summary | |
---|---|
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)
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator()
|
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 |
boolean |
getCaseSensitive()
|
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 |
int |
getLength()
|
boolean |
insert(int index,
Object value)
insert a value add defined position |
int[] |
intKeys()
|
Node |
item(int index)
|
Iterator<Collection.Key> |
keyIterator()
|
Collection.Key[] |
keys()
|
Iterator<String> |
keysAsStringIterator()
|
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 index)
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 index)
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 index,
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 index,
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()
|
ArrayList |
toArrayList()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
String |
toPlain()
|
Iterator<Object> |
valueIterator()
|
Methods inherited from class railo.runtime.type.util.ArraySupport |
---|
add, addAll, call, callWithNamedValues, equals, get, get, get, getIterator, hashCode, remove, remove, removeAll, retainAll, set, set, setEL, toArray, toList, toString |
Methods inherited from class java.util.AbstractList |
---|
add, addAll, indexOf, iterator, 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, iterator, lastIndexOf, listIterator, listIterator, subList |
Constructor Detail |
---|
public XMLNodeList(Node parent, boolean caseSensitive)
parent
- Parent NodecaseSensitive
- public XMLNodeList(Node parent, boolean caseSensitive, String filter)
Method Detail |
---|
public int getLength()
getLength
in interface NodeList
public Node item(int index)
item
in interface NodeList
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public Collection.Key[] keys()
public int[] intKeys()
intKeys
in interface Array
public Object removeEL(Collection.Key key)
Collection
key
- key of the collection
public Object remove(Collection.Key key) throws PageException
Collection
key
- key of the collection
PageException
public Object removeEL(int index)
Array
removeEL
in interface Array
index
- key to remove
public Object removeE(int index) throws PageException
Array
removeE
in interface Array
index
- key to remove
PageException
public void clear()
Collection
clear
in interface Collection
clear
in interface List
clear
in class AbstractList
public Object get(String key) throws ExpressionException
Collection
key
- key of the value to get
ExpressionException
public Object get(Collection.Key key) throws ExpressionException
Collection
key
- key of the value to get must be lower case
ExpressionException
public Object getE(int key) throws ExpressionException
Array
getE
in interface Array
key
- key as integer
ExpressionException
public Object get(String key, Object defaultValue)
Collection
key
- key of the value to get
public Object get(Collection.Key key, Object defaultValue)
Collection
key
- key of the value to get
public Object get(int key, Object defaultValue)
Array
get
in interface Array
key
- key as integer
public Object set(String key, Object value) throws PageException
Collection
key
- key of the new valuevalue
- value to set
PageException
public Object set(Collection.Key key, Object value) throws PageException
Collection
key
- key of the new valuevalue
- value to set
PageException
public Object setE(int index, Object value) throws PageException
Array
setE
in interface Array
PageException
public Object setEL(String key, Object value)
Collection
key
- key of the value to getvalue
- value to set
public Object setEL(Collection.Key key, Object value)
Collection
key
- key of the value to getvalue
- value to set
public Object setEL(int index, Object value)
Array
setEL
in interface Array
index
- key of the new valuevalue
- value to set
public Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
valueIterator
in class ArraySupport
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public Object append(Object o) throws PageException
Array
append
in interface Array
o
- value to insert
PageException
public Object appendEL(Object o)
appendEL
in interface Array
public Object clone()
clone
in class ArraySupport
public Collection duplicate(boolean deepCopy)
public int getDimension()
Array
getDimension
in interface Array
public boolean insert(int index, Object value) throws PageException
Array
insert
in interface Array
index
- position to insertvalue
- value to insert
PageException
public Object prepend(Object o) throws PageException
Array
prepend
in interface Array
o
- value to insert
PageException
public void resize(int to) throws ExpressionException
Array
resize
in interface Array
to
- new minimum size of the array
ExpressionException
public void sort(String sortType, String sortOrder) throws ExpressionException
Array
sort
in interface Array
sort
in class ArraySupport
sortType
- search type (text,textnocase,numeric)sortOrder
- (asc,desc)
ExpressionException
public void sort(Comparator comp) throws ExpressionException
sort
in interface Array
ExpressionException
public Object[] toArray()
toArray
in interface Collection
toArray
in interface List
toArray
in interface Array
toArray
in class AbstractCollection
public ArrayList toArrayList()
public String toPlain()
public boolean containsKey(String key)
Collection
containsKey
in class ArraySupport
public boolean containsKey(Collection.Key key)
Collection
containsKey
in class ArraySupport
public boolean containsKey(int key)
Array
containsKey
in interface Array
containsKey
in class ArraySupport
public boolean getCaseSensitive()
getCaseSensitive
in interface XMLObject
public String castToString() throws ExpressionException
Castable
castToString
in interface Castable
castToString
in class ArraySupport
ExpressionException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class ArraySupport
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class ArraySupport
ExpressionException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class ArraySupport
public double castToDoubleValue() throws ExpressionException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class ArraySupport
ExpressionException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class ArraySupport
public DateTime castToDateTime() throws ExpressionException
Castable
castToDateTime
in interface Castable
castToDateTime
in class ArraySupport
ExpressionException
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
public int compareTo(boolean b) throws ExpressionException
compareTo
in interface Castable
compareTo
in class ArraySupport
ExpressionException
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 long sizeOf()
Sizeable
sizeOf
in interface Sizeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |