|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.util.StructSupport
railo.runtime.type.CollectionStruct
public final class CollectionStruct
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface railo.runtime.type.Collection |
---|
Collection.Key |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from interface railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SYNC, TYPE_WEAKED |
Constructor Summary | |
---|---|
CollectionStruct(Collection coll)
|
Method Summary | |
---|---|
boolean |
castToBooleanValue()
cast the castable value to a boolean value |
DateTime |
castToDateTime()
cast the castable value to a date time object |
double |
castToDoubleValue()
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 |
void |
clear()
clears the collection |
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
boolean |
containsKey(Collection.Key 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 |
Collection |
getCollection()
|
Object |
getEmbededObject()
returns embeded Object |
Object |
getEmbededObject(Object defaultValue)
returns embeded Object EL |
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection |
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
int |
size()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties properties)
method to print out information to a object as HTML |
Methods inherited from class railo.runtime.type.util.StructSupport |
---|
castToBoolean, castToDateTime, castToDoubleValue, castToString, clone, containsKey, containsKey, containsValue, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, sizeOf, toString, valueIterator, values |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface railo.runtime.type.Collection |
---|
clone, containsKey, get, get, set, setEL |
Methods inherited from interface railo.runtime.type.Iteratorable |
---|
iterator, valueIterator |
Methods inherited from interface railo.runtime.op.Castable |
---|
castToBoolean, castToDateTime, castToDoubleValue, castToString |
Methods inherited from interface java.util.Map |
---|
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, values |
Constructor Detail |
---|
public CollectionStruct(Collection coll)
Method Detail |
---|
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
Map.clear()
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
Collection.containsKey(railo.runtime.type.Collection.Key)
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
Collection.duplicate(boolean)
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get must be lower case
PageException
Collection.get(railo.runtime.type.Collection.Key)
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
Collection.get(railo.runtime.type.Collection.Key, java.lang.Object)
public Collection.Key[] keys()
keys
in interface Collection
Collection.keys()
public String[] keysAsString()
keysAsString
in interface Collection
Collection.keysAsString()
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collection
PageException
Collection.remove(railo.runtime.type.Collection.Key)
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collection
Collection.removeEL(railo.runtime.type.Collection.Key)
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to set
PageException
Collection.set(railo.runtime.type.Collection.Key, java.lang.Object)
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
Collection.setEL(railo.runtime.type.Collection.Key, java.lang.Object)
public int size()
size
in interface Map
size
in interface Collection
Map.size()
public Iterator keyIterator()
keyIterator
in interface Iteratorable
Iteratorable.keyIterator()
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
Dumpable.toDumpData(railo.runtime.PageContext, int, railo.runtime.dump.DumpProperties)
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class StructSupport
PageException
Castable.castToBooleanValue()
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
PageException
Castable.castToDoubleValue()
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
PageException
Castable.castToDateTime()
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class StructSupport
PageException
Castable.castToString()
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(double)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(java.lang.String)
public Object getEmbededObject(Object defaultValue)
ObjectWrap
getEmbededObject
in interface ObjectWrap
ObjectWrap.getEmbededObject(java.lang.Object)
public Object getEmbededObject() throws PageException
ObjectWrap
getEmbededObject
in interface ObjectWrap
PageException
ObjectWrap.getEmbededObject()
public Collection getCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |