|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.scope.ArgumentThreadImpl
public final class ArgumentThreadImpl
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.scope.Argument |
---|
NULL |
Fields inherited from interface railo.runtime.type.scope.Scope |
---|
SCOPE_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_COUNT, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VAR, SCOPE_VARIABLES |
Fields inherited from interface railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED |
Constructor Summary | |
---|---|
ArgumentThreadImpl(Struct sct)
|
Method Summary | |
---|---|
Object |
append(Object o)
append a new value to the end of the array |
Object |
appendEL(Object o)
|
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 |
void |
clear()
clears the collection |
Object |
clone()
|
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
boolean |
containsFunctionArgumentKey(Collection.Key key)
|
boolean |
containsKey(Collection.Key key)
contains this key |
boolean |
containsKey(int key)
contains this key |
boolean |
containsKey(Object key)
|
boolean |
containsKey(String key)
contains this key |
boolean |
containsValue(Object value)
|
Collection |
duplicate(boolean deepCopy)
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator()
|
Set |
entrySet()
|
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(Object key)
|
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 |
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 |
Object |
getFunctionArgument(Collection.Key key,
Object defaultValue)
|
Object |
getFunctionArgument(String key,
Object defaultValue)
|
Iterator<String> |
getIterator()
|
int |
getType()
|
String |
getTypeAsString()
|
void |
initialize(PageContext pc)
Initalize Scope |
boolean |
insert(int key,
Object value)
insert a value add defined position |
boolean |
insert(int index,
String key,
Object value)
insert a key in argument scope at defined position |
int[] |
intKeys()
|
boolean |
isBind()
|
boolean |
isEmpty()
|
boolean |
isInitalized()
return if the scope is Initialiesd |
Iterator<Collection.Key> |
keyIterator()
|
Collection.Key[] |
keys()
|
Iterator<String> |
keysAsStringIterator()
|
Set |
keySet()
|
Object |
prepend(Object o)
add a new value to the begin of the array |
Object |
put(Object key,
Object value)
|
void |
putAll(Map m)
|
void |
release()
release scope for reuse |
void |
release(PageContext pc)
release scope for reuse |
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
remove(Object 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(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
Object |
set(String key,
Object value)
sets a value to the collection |
Object |
setArgument(Object obj)
|
void |
setBind(boolean bind)
sets if scope is binded to a other variable for using outside of a udf |
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(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
Object |
setEL(String key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
void |
setFunctionArgumentNames(Set functionArgumentNames)
|
int |
size()
|
long |
sizeOf()
return the size of the object |
void |
sort(Comparator com)
|
void |
sort(String sortType,
String sortOrder)
sort values of a array |
Object[] |
toArray()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties properties)
method to print out information to a object as HTML |
List |
toList()
|
Iterator<Object> |
valueIterator()
|
Collection |
values()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public ArgumentThreadImpl(Struct sct)
Method Detail |
---|
public Object getFunctionArgument(String key, Object defaultValue)
getFunctionArgument
in interface Argument
public Object getFunctionArgument(Collection.Key key, Object defaultValue)
getFunctionArgument
in interface Argument
public boolean containsFunctionArgumentKey(Collection.Key key)
containsFunctionArgumentKey
in interface Argument
public Object setArgument(Object obj) throws PageException
setArgument
in interface Argument
PageException
public void setFunctionArgumentNames(Set functionArgumentNames)
setFunctionArgumentNames
in interface Argument
public boolean insert(int index, String key, Object value) throws PageException
Argument
insert
in interface Argument
PageException
public boolean isBind()
isBind
in interface Argument
isBind
in interface BindScope
public void setBind(boolean bind)
Argument
setBind
in interface Argument
setBind
in interface BindScope
public int getType()
getType
in interface Scope
public String getTypeAsString()
getTypeAsString
in interface Scope
public void initialize(PageContext pc)
Scope
initialize
in interface Scope
pc
- Page Contextpublic boolean isInitalized()
Scope
isInitalized
in interface Scope
public void release()
Scope
release
in interface Scope
public void release(PageContext pc)
Scope
release
in interface Scope
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
public boolean containsKey(String key)
Collection
containsKey
in interface Collection
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public Object get(String key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get
PageException
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
public Object get(String key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Collection.Key[] keys()
keys
in interface Collection
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collection
PageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collection
public Object set(String key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to set
PageException
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
public Object setEL(String key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
public int size()
size
in interface Map
size
in interface Collection
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties)
Dumpable
toDumpData
in interface Dumpable
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
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
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 double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Set entrySet()
entrySet
in interface Map
public Object get(Object key)
get
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public Set keySet()
keySet
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public void putAll(Map m)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
public Collection values()
values
in interface Map
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 boolean containsKey(int key)
Array
containsKey
in interface Array
public Object get(int key, Object defaultValue)
Array
get
in interface Array
key
- key as integer
public int getDimension()
Array
getDimension
in interface Array
public Object getE(int key) throws PageException
Array
getE
in interface Array
key
- key as integer
PageException
public boolean insert(int key, Object value) throws PageException
Array
insert
in interface Array
key
- position to insertvalue
- value to insert
PageException
public int[] intKeys()
intKeys
in interface Array
public Object prepend(Object o) throws PageException
Array
prepend
in interface Array
o
- value to insert
PageException
public Object removeE(int key) throws PageException
Array
removeE
in interface Array
key
- key to remove
PageException
public Object removeEL(int key)
Array
removeEL
in interface Array
key
- key to remove
public void resize(int to) throws PageException
Array
resize
in interface Array
to
- new minimum size of the array
PageException
public Object setE(int key, Object value) throws PageException
Array
setE
in interface Array
key
- value
-
PageException
public Object setEL(int key, Object value)
Array
setEL
in interface Array
key
- key of the new valuevalue
- value to set
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 void sort(Comparator com) throws ExpressionException
sort
in interface Array
ExpressionException
public Object[] toArray()
toArray
in interface Array
public List toList()
toList
in interface Array
public Object clone()
clone
in interface Collection
clone
in class Object
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
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<String> getIterator()
getIterator
in interface ForEachIteratorable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |