|
||||||||||
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.ComponentWrap
public final class ComponentWrap
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_SYNC, TYPE_WEAKED |
Constructor Summary | |
---|---|
ComponentWrap(int access,
ComponentAccess component)
constructor of the class |
Method Summary | |
---|---|
Object |
call(PageContext pc,
Collection.Key key,
Object[] args)
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 key,
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 |
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 |
Collection |
duplicate(boolean deepCopy)
|
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(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(PageContext pc,
String key)
return property or getter of the ContextCollection |
Object |
get(PageContext pc,
String key,
Object defaultValue)
return property |
String |
getAbsName()
|
int |
getAccess()
|
String |
getBaseAbsName()
|
String |
getCallName()
|
ComponentAccess |
getComponentAccess()
|
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 |
Member |
getMember(int access,
Collection.Key key,
boolean dataMember,
boolean superAccess)
|
Struct |
getMetaData(PageContext pc)
returns Meta Data to the Component |
String |
getName()
|
boolean |
getOutput()
|
Page |
getPage()
|
PageSource |
getPageSource()
|
Property[] |
getProperties(boolean onlyPeristent)
return all properties from component |
String |
getWSDLFile()
|
boolean |
instanceOf(String type)
check if Component is instance of this type |
boolean |
isBasePeristent()
|
boolean |
isInitalized()
|
boolean |
isValidAccess(int access)
check if value is a valid access modifier constant |
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
Set |
keySet()
|
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 |
set(PageContext pc,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
Object |
set(PageContext pc,
String propertyName,
Object value)
sets a property (Data Member) value of the object |
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(PageContext pc,
String propertyName,
Object value)
sets a property (Data Member) value of the object |
void |
setProperty(Property property)
|
int |
size()
|
static ComponentWrap |
toComponentWrap(int access,
Component component)
|
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.StructSupport |
---|
clone, containsKey, containsKey, containsValue, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, 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 java.util.Map |
---|
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, put, putAll, remove, values |
Constructor Detail |
---|
public ComponentWrap(int access, ComponentAccess component)
access
- component
-
ExpressionException
Method Detail |
---|
public static ComponentWrap toComponentWrap(int access, Component component) throws ExpressionException
ExpressionException
public Page getPage()
getPage
in interface Component
public PageSource getPageSource()
getPageSource
in interface ComponentPro
ComponentPro.getPageSource()
public Set keySet()
keySet
in interface Map
keySet
in class StructSupport
Map.keySet()
public String getDisplayName()
getDisplayName
in interface Component
Component.getDisplayName()
public String getExtends()
getExtends
in interface Component
Component.getExtends()
public String getHint()
getHint
in interface Component
Component.getHint()
public String getName()
getName
in interface Component
Component.getName()
public String getCallName()
getCallName
in interface Component
Component.getCallName()
public String getAbsName()
getAbsName
in interface Component
Component.getAbsName()
public String getBaseAbsName()
getBaseAbsName
in interface ComponentPro
ComponentPro.getBaseAbsName()
public boolean isBasePeristent()
isBasePeristent
in interface ComponentPro
public boolean getOutput()
getOutput
in interface Component
Component.getOutput()
public boolean instanceOf(String type)
Component
instanceOf
in interface Component
type
- type to compare as String
Component.instanceOf(java.lang.String)
public boolean isValidAccess(int access)
Component
isValidAccess
in interface Component
Component.isValidAccess(int)
public Struct getMetaData(PageContext pc) throws PageException
Component
getMetaData
in interface Component
PageException
Component.getMetaData(railo.runtime.PageContext)
public Object call(PageContext pc, String key, Object[] args) throws PageException
Component
call
in interface Component
call
in interface Objects
pc
- PageContextkey
- name of the methodargs
- Arguments for the method
PageException
Component.call(railo.runtime.PageContext, java.lang.String, java.lang.Object[])
public Object call(PageContext pc, Collection.Key key, Object[] args) throws PageException
Objects
call
in interface Objects
key
- name of the method to callargs
- arguments to call method with
PageException
Objects.call(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object[])
public Object callWithNamedValues(PageContext pc, String key, Struct args) throws PageException
Component
callWithNamedValues
in interface Component
callWithNamedValues
in interface Objects
pc
- PageContextkey
- name of the methodargs
- Named Arguments for the method
PageException
Component.callWithNamedValues(railo.runtime.PageContext, java.lang.String, railo.runtime.type.Struct)
public Object callWithNamedValues(PageContext pc, Collection.Key key, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextkey
- name of the methodargs
- Named Arguments for the method
PageException
Objects.callWithNamedValues(railo.runtime.PageContext, railo.runtime.type.Collection.Key, railo.runtime.type.Struct)
public int size()
size
in interface Map
size
in interface Collection
Collection.size()
public String[] keysAsString()
keysAsString
in interface Collection
Collection.keysAsString()
public Collection.Key[] keys()
keys
in interface Collection
Collection.keys()
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 void clear()
Collection
clear
in interface Map
clear
in interface Collection
Collection.clear()
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 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 Iterator keyIterator()
keyIterator
in interface Iteratorable
Iteratorable.keyIterator()
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
Collection.containsKey(railo.runtime.type.Collection.Key)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class StructSupport
PageException
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class StructSupport
StructSupport.castToString(java.lang.String)
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class StructSupport
PageException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class StructSupport
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
PageException
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
Castable.castToDoubleValue(double)
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
PageException
Castable.castToDateTime()
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
defaultValue
- returned when it is not possible to cast to a dateTime object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
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(String str) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(String)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
Castable.compareTo(double)
public Object get(PageContext pc, String key, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
railo.runtime.type.ContextCollection#get(railo.runtime.PageContext, java.lang.String, java.lang.Object)
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
Objects.get(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
public Object get(PageContext pc, String key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
railo.runtime.type.ContextCollection#get(railo.runtime.PageContext, java.lang.String)
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
Objects.get(railo.runtime.PageContext, railo.runtime.type.Collection.Key)
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
Collection.duplicate(boolean)
public Object set(PageContext pc, String propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insert
PageException
Objects.set(railo.runtime.PageContext, java.lang.String, java.lang.Object)
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
Objects.set(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
public Object setEL(PageContext pc, String propertyName, Object value)
Objects
setEL
in interface Objects
propertyName
- property name to setvalue
- value to insert
Objects.setEL(railo.runtime.PageContext, java.lang.String, java.lang.Object)
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
setEL
in interface Objects
propertyName
- property name to setvalue
- value to insert
Objects.setEL(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
public boolean isInitalized()
isInitalized
in interface Objects
Objects.isInitalized()
public int getAccess()
railo.runtime.Component#getAccess()
public Class getJavaAccessClass(RefBoolean isNew) throws PageException
Component
getJavaAccessClass
in interface Component
PageException
Component.getJavaAccessClass(railo.commons.lang.types.RefBoolean)
public String getWSDLFile()
getWSDLFile
in interface ComponentPro
public Property[] getProperties(boolean onlyPeristent)
ComponentPro
getProperties
in interface ComponentPro
onlyPeristent
- if true return only columns where attribute persistent is not set to false
railo.runtime.ComponentPro#getProperties()
public ComponentScope getComponentScope()
getComponentScope
in interface ComponentPro
ComponentPro.getComponentScope()
public ComponentAccess getComponentAccess()
public boolean contains(PageContext pc, Collection.Key key)
contains
in interface ComponentPro
ComponentPro.contains(railo.runtime.PageContext, railo.runtime.type.Collection.Key)
public Member getMember(int access, Collection.Key key, boolean dataMember, boolean superAccess)
railo.runtime.ComponentPro#getMember(int, railo.runtime.type.Collection.Key, boolean, boolean)
public void setProperty(Property property) throws PageException
setProperty
in interface ComponentPro
PageException
ComponentPro.setProperty(railo.runtime.component.Property)
public boolean equalTo(String type)
equalTo
in interface ComponentPro
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |