|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.cfc.ComponentProxy
public abstract class ComponentProxy
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.Component |
---|
ACCESS_COUNT, ACCESS_PACKAGE, ACCESS_PRIVATE, ACCESS_PUBLIC, ACCESS_REMOTE |
Fields inherited from interface railo.runtime.type.Struct |
---|
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED |
Constructor Summary | |
---|---|
ComponentProxy()
|
Method Summary | |
---|---|
Object |
call(PageContext pc,
Collection.Key methodName,
Object[] arguments)
calls a method of the object |
Object |
call(PageContext pc,
String key,
Object[] args)
call a method of the component with no named arguments |
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments |
Object |
callWithNamedValues(PageContext pc,
String key,
Struct args)
call a method of the component 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 |
contains(PageContext pc,
Collection.Key key)
|
boolean |
containsKey(Collection.Key key)
contains this key |
boolean |
containsKey(Object key)
|
boolean |
containsKey(String key)
contains this key |
boolean |
containsValue(Object value)
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator()
|
Set |
entrySet()
|
boolean |
equalTo(String type)
|
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(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 |
String |
getAbsName()
|
String |
getBaseAbsName()
|
String |
getCallName()
|
abstract Component |
getComponent()
|
ComponentScope |
getComponentScope()
|
String |
getDisplayName()
|
String |
getExtends()
|
String |
getHint()
|
Class |
getJavaAccessClass(RefBoolean isNew)
returns java class to the component interface (all UDFs), this class is generated dynamic when used |
Struct |
getMetaData(PageContext pc)
returns Meta Data to the Component |
String |
getName()
|
boolean |
getOutput()
|
PageSource |
getPageSource()
|
Property[] |
getProperties(boolean onlyPeristent)
return all properties from component |
boolean |
instanceOf(String type)
check if Component is instance of this type |
boolean |
isBasePeristent()
|
boolean |
isEmpty()
|
boolean |
isValidAccess(int access)
check if value is a valid access modifier constant |
Iterator<Collection.Key> |
keyIterator()
|
Collection.Key[] |
keys()
|
Iterator<String> |
keysAsStringIterator()
|
Set |
keySet()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map m)
|
void |
registerUDF(Collection.Key key,
UDF udf)
|
void |
registerUDF(Collection.Key key,
UDFProperties props)
|
void |
registerUDF(String key,
UDF udf)
|
void |
registerUDF(String key,
UDFProperties props)
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
remove(Object key)
|
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 |
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 |
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(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 |
setProperty(Property property)
|
int |
size()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties properties)
method to print out information to a object as HTML |
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 railo.runtime.ComponentPro |
---|
getProperties |
Methods inherited from interface railo.runtime.Component |
---|
getWSDLFile |
Methods inherited from interface railo.runtime.type.Collection |
---|
duplicate |
Methods inherited from interface railo.runtime.type.ForEachIteratorable |
---|
getIterator |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Methods inherited from interface railo.runtime.type.Sizeable |
---|
sizeOf |
Constructor Detail |
---|
public ComponentProxy()
Method Detail |
---|
public abstract Component getComponent()
public Class getJavaAccessClass(RefBoolean isNew) throws PageException
Component
getJavaAccessClass
in interface Component
PageException
- FUTURE deprecatedpublic String getDisplayName()
getDisplayName
in interface Component
public String getExtends()
getExtends
in interface Component
public String getHint()
getHint
in interface Component
public String getName()
getName
in interface Component
public String getCallName()
getCallName
in interface Component
public String getAbsName()
getAbsName
in interface Component
public boolean getOutput()
getOutput
in interface Component
public boolean instanceOf(String type)
Component
instanceOf
in interface Component
type
- type to compare as String
public boolean isValidAccess(int access)
Component
isValidAccess
in interface Component
public Struct getMetaData(PageContext pc) throws PageException
Component
getMetaData
in interface Component
PageException
public Object call(PageContext pc, String key, Object[] args) throws PageException
Component
call
in interface Component
pc
- PageContextkey
- name of the methodargs
- Arguments for the method
PageException
public Object callWithNamedValues(PageContext pc, String key, Struct args) throws PageException
Component
callWithNamedValues
in interface Component
pc
- PageContextkey
- name of the methodargs
- Named Arguments for the method
PageException
public int size()
size
in interface Map
size
in interface Collection
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 void clear()
Collection
clear
in interface Map
clear
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 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 boolean containsKey(String key)
Collection
containsKey
in interface Collection
public boolean containsKey(Collection.Key key)
Collection
containsKey
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 String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
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 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 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[] arguments) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callarguments
- 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 Property[] getProperties(boolean onlyPeristent)
Component
getProperties
in interface Component
onlyPeristent
- if true return only columns where attribute persistent is not set to false
public void setProperty(Property property) throws PageException
setProperty
in interface Component
PageException
public ComponentScope getComponentScope()
getComponentScope
in interface Component
public boolean contains(PageContext pc, Collection.Key key)
contains
in interface Component
public PageSource getPageSource()
getPageSource
in interface Component
public String getBaseAbsName()
getBaseAbsName
in interface Component
public boolean isBasePeristent()
isBasePeristent
in interface Component
public boolean equalTo(String type)
equalTo
in interface Component
public Object clone()
clone
in interface Collection
clone
in class Object
public void registerUDF(String key, UDF udf)
registerUDF
in interface Component
public void registerUDF(Collection.Key key, UDF udf)
registerUDF
in interface Component
public void registerUDF(String key, UDFProperties props)
registerUDF
in interface Component
public void registerUDF(Collection.Key key, UDFProperties props)
registerUDF
in interface Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |