|
||||||||||
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.ComponentImpl
public final class ComponentImpl
%**% MUST add handling for new attributes (style, namespace, serviceportname, porttypename, wsdlfile, bindingname, and output)
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 | |
---|---|
ComponentImpl()
Constructor of the Component, USED ONLY FOR DESERIALIZE |
|
ComponentImpl(ComponentPage componentPage,
Boolean output,
boolean _synchronized,
String extend,
String implement,
String hint,
String dspName,
String callPath,
boolean realPath,
String style,
boolean persistent,
boolean accessors,
StructImpl meta)
|
|
ComponentImpl(ComponentPage componentPage,
Boolean output,
boolean _synchronized,
String extend,
String implement,
String hint,
String dspName,
String callPath,
boolean realPath,
String style,
boolean persistent,
StructImpl meta)
|
|
ComponentImpl(ComponentPage componentPage,
Boolean output,
boolean _synchronized,
String extend,
String implement,
String hint,
String dspName,
String callPath,
boolean realPath,
String style,
StructImpl meta)
Constructor of the class |
Method Summary | |
---|---|
ComponentAccess |
_base()
|
String |
_getName()
|
PageSource |
_getPageSource()
|
void |
addConstructorUDF(Collection.Key key,
UDF value)
|
void |
afterCall(PageContext pc,
Variables parent)
Deprecated. replaced with afterConstructor(PageContext pc, Variables parent) |
void |
afterConstructor(PageContext pc,
Variables parent)
will be called after invoking constructor, only invoked by constructor (component body execution) |
Variables |
beforeCall(PageContext pc)
will be called before executing method or constructor |
Object |
call(PageContext pc,
Collection.Key name,
Object[] args)
calls a method of the object |
Object |
call(PageContext pc,
int access,
Collection.Key name,
Object[] args)
|
Object |
call(PageContext pc,
String name,
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,
int access,
Collection.Key name,
Struct args)
|
Object |
callWithNamedValues(PageContext pc,
String name,
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 |
checkInterface(PageContext pc,
ComponentPage componentPage)
|
void |
clear()
clears the collection |
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
boolean |
contains(int access,
Collection.Key name)
|
boolean |
contains(int access,
String name)
|
boolean |
contains(PageContext pc,
Collection.Key key)
|
boolean |
contains(PageContext pc,
String name)
|
boolean |
containsKey(Collection.Key key)
contains this key |
Collection |
duplicate(boolean deepCopy)
|
static Map |
duplicateDataMember(ComponentImpl c,
Map map,
Map newMap,
boolean deepCopy)
duplicate the datamember in the map, ignores the udfs |
static Map<Collection.Key,UDF> |
duplicateUTFMap(ComponentImpl src,
ComponentImpl trg,
Map<Collection.Key,UDF> srcMap,
Map<Collection.Key,UDF> trgMap)
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator()
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator(int access)
|
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(int access,
Collection.Key key)
|
Object |
get(int access,
Collection.Key key,
Object defaultValue)
|
Object |
get(int access,
String name)
return element that has at least given access or 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 |
String |
getAbsName()
|
String |
getBaseAbsName()
|
String |
getCallName()
|
ComponentScope |
getComponentScope()
|
String |
getDisplayName()
|
String |
getExtends()
|
String |
getHint()
|
Class |
getJavaAccessClass(PageContext pc,
RefBoolean isNew)
|
Class |
getJavaAccessClass(PageContext pc,
RefBoolean isNew,
boolean writeLog,
boolean takeTop,
boolean create,
boolean supressWSbeforeArg)
|
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 |
Object |
getMetaStructItem(Collection.Key name)
|
String |
getName()
|
boolean |
getOutput()
|
PageSource |
getPageSource()
|
Property[] |
getProperties(boolean onlyPeristent)
return all properties from component |
Property[] |
getProperties(boolean onlyPeristent,
boolean includeBaseProperties,
boolean preferBaseProperties,
boolean inheritedMappedSuperClassOnly)
|
String |
getWSDLFile()
|
void |
init(PageContext pageContext,
ComponentPage componentPage)
initalize the Component |
boolean |
instanceOf(String type)
check if Component is instance of this type |
boolean |
isAccessors()
|
boolean |
isBasePeristent()
|
boolean |
isInitalized()
|
boolean |
isPersistent()
|
boolean |
isValidAccess(int access)
check if value is a valid access modifier constant |
Iterator<Collection.Key> |
keyIterator()
|
Iterator<Collection.Key> |
keyIterator(int access)
|
Collection.Key[] |
keys()
|
Collection.Key[] |
keys(int access)
|
Iterator<String> |
keysAsStringIterator()
|
Iterator<String> |
keysAsStringIterator(int access)
|
Set<Collection.Key> |
keySet(int access)
list of keys |
Object |
onMissingMethod(PageContext pc,
int access,
Member member,
String name,
Object[] _args,
Struct _namedArgs,
boolean superAccess)
|
void |
readExternal(ObjectInput in)
|
void |
reg(Collection.Key key,
UDFImpl udf)
|
void |
reg(String key,
UDFImpl udf)
|
void |
registerUDF(Collection.Key key,
UDF udf)
|
void |
registerUDF(Collection.Key key,
UDFImpl udf,
boolean useShadow,
boolean injected)
|
void |
registerUDF(Collection.Key key,
UDFProperties prop)
|
void |
registerUDF(String key,
UDF udf)
|
void |
registerUDF(String key,
UDFProperties prop)
|
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 key,
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 name,
Object value)
sets a property (Data Member) value of the object |
void |
setInitalized(boolean isInit)
|
void |
setLoaded(boolean loaded)
|
void |
setProperty(Property property)
|
int |
size()
|
int |
size(int access)
rerturn the size |
long |
sizeOf()
return the size of the object |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp,
int access)
to html output print only with access less than given access |
Iterator<Object> |
valueIterator()
|
Iterator<Object> |
valueIterator(int access)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class railo.runtime.type.util.StructSupport |
---|
clone, containsKey, containsKey, containsValue, entrySet, equals, get, get, get, getIterator, hashCode, invalidKey, isEmpty, keySet, put, putAll, remove, set, setEL, toString, values |
Methods inherited from class java.lang.Object |
---|
getClass, 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.ForEachIteratorable |
---|
getIterator |
Methods inherited from interface java.util.Map |
---|
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, values |
Constructor Detail |
---|
public ComponentImpl()
public ComponentImpl(ComponentPage componentPage, Boolean output, boolean _synchronized, String extend, String implement, String hint, String dspName, String callPath, boolean realPath, String style, StructImpl meta) throws ApplicationException
componentPage
- output
- _synchronized
- extend
- implement
- hint
- dspName
- callPath
- realPath
- style
- meta
-
ApplicationException
public ComponentImpl(ComponentPage componentPage, Boolean output, boolean _synchronized, String extend, String implement, String hint, String dspName, String callPath, boolean realPath, String style, boolean persistent, StructImpl meta) throws ApplicationException
ApplicationException
public ComponentImpl(ComponentPage componentPage, Boolean output, boolean _synchronized, String extend, String implement, String hint, String dspName, String callPath, boolean realPath, String style, boolean persistent, boolean accessors, StructImpl meta) throws ApplicationException
ApplicationException
Method Detail |
---|
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
sizeOf
in class StructSupport
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public static Map duplicateDataMember(ComponentImpl c, Map map, Map newMap, boolean deepCopy)
c
- map
- newMap
- deepCopy
-
public static Map<Collection.Key,UDF> duplicateUTFMap(ComponentImpl src, ComponentImpl trg, Map<Collection.Key,UDF> srcMap, Map<Collection.Key,UDF> trgMap)
public void init(PageContext pageContext, ComponentPage componentPage) throws PageException
pageContext
- componentPage
-
PageException
public void checkInterface(PageContext pc, ComponentPage componentPage) throws PageException
PageException
public Object onMissingMethod(PageContext pc, int access, Member member, String name, Object[] _args, Struct _namedArgs, boolean superAccess) throws PageException
PageException
public Variables beforeCall(PageContext pc)
pc
-
public void afterConstructor(PageContext pc, Variables parent)
pc
- parent
- public void afterCall(PageContext pc, Variables parent)
afterConstructor(PageContext pc, Variables parent)
pc
- parent
- public int size(int access)
size
in interface ComponentAccess
access
-
public Set<Collection.Key> keySet(int access)
keySet
in interface ComponentAccess
c
- access
- doBase
-
public Iterator<Collection.Key> keyIterator(int access)
keyIterator
in interface ComponentAccess
public Iterator<String> keysAsStringIterator(int access)
keysAsStringIterator
in interface ComponentAccess
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator(int access)
entryIterator
in interface ComponentAccess
public Iterator<Object> valueIterator(int access)
valueIterator
in interface ComponentAccess
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public Collection.Key[] keys(int access)
keys
in interface ComponentAccess
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
public Member getMember(int access, Collection.Key key, boolean dataMember, boolean superAccess)
getMember
in interface ComponentAccess
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
toDumpData
in class StructSupport
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp, int access)
toDumpData
in interface ComponentAccess
pageContext
- access
-
public String getDisplayName()
getDisplayName
in interface Component
public String getExtends()
getExtends
in interface Component
public String getBaseAbsName()
getBaseAbsName
in interface Component
public boolean isBasePeristent()
isBasePeristent
in interface Component
public String getHint()
getHint
in interface Component
public String getWSDLFile()
getWSDLFile
in interface Component
public String getName()
getName
in interface Component
public String _getName()
public PageSource _getPageSource()
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 equalTo(String type)
equalTo
in interface Component
public boolean isValidAccess(int access)
Component
isValidAccess
in interface Component
public PageSource getPageSource()
getPageSource
in interface Component
public String castToString() throws PageException
Castable
castToString
in interface Castable
castToString
in class StructSupport
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
castToString
in class StructSupport
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
castToBooleanValue
in class StructSupport
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
castToBoolean
in class StructSupport
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
castToDoubleValue
in class StructSupport
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
castToDateTime
in class StructSupport
PageException
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
public Struct getMetaData(PageContext pc) throws PageException
Component
getMetaData
in interface Component
PageException
public Object getMetaStructItem(Collection.Key name)
getMetaStructItem
in interface ComponentAccess
public boolean isInitalized()
public void setInitalized(boolean isInit)
public void reg(Collection.Key key, UDFImpl udf)
public void reg(String key, UDFImpl udf)
public void registerUDF(String key, UDF udf)
registerUDF
in interface Component
public void registerUDF(String key, UDFProperties prop)
registerUDF
in interface Component
public void registerUDF(Collection.Key key, UDF udf)
registerUDF
in interface Component
public void registerUDF(Collection.Key key, UDFProperties prop)
registerUDF
in interface Component
public void registerUDF(Collection.Key key, UDFImpl udf, boolean useShadow, boolean injected)
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(PageContext pc, Collection.Key key, Object value) throws PageException
Objects
set
in interface Objects
set
in class StructSupport
key
- property name to setvalue
- value to insert
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(PageContext pc, Collection.Key name, Object value)
Objects
setEL
in interface Objects
setEL
in class StructSupport
name
- property name to setvalue
- value to insert
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
get
in class StructSupport
pc
- PageContextkey
- Name of the Property
PageException
public Object get(int access, String name) throws PageException
access
- name
-
PageException
public Object get(int access, Collection.Key key) throws PageException
get
in interface ComponentAccess
PageException
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
get
in interface Objects
get
in class StructSupport
pc
- PageContextkey
- Name of the Property
public Object get(int access, Collection.Key key, Object defaultValue)
get
in interface ComponentAccess
access
- key
- defaultValue
-
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(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Object call(PageContext pc, String name, Object[] args) throws PageException
Component
call
in interface Component
pc
- PageContextname
- name of the methodargs
- Arguments for the method
PageException
public Object call(PageContext pc, Collection.Key name, Object[] args) throws PageException
Objects
call
in interface Objects
call
in class StructSupport
name
- name of the method to callargs
- arguments to call method with
PageException
public Object call(PageContext pc, int access, Collection.Key name, Object[] args) throws PageException
call
in interface ComponentAccess
PageException
public Object callWithNamedValues(PageContext pc, String name, Struct args) throws PageException
Component
callWithNamedValues
in interface Component
pc
- PageContextname
- name of the methodargs
- Named Arguments for the method
PageException
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
callWithNamedValues
in class StructSupport
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
public Object callWithNamedValues(PageContext pc, int access, Collection.Key name, Struct args) throws PageException
callWithNamedValues
in interface ComponentAccess
PageException
public boolean contains(PageContext pc, String name)
public boolean contains(PageContext pc, Collection.Key key)
contains
in interface Component
pc
- key
-
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public boolean contains(int access, String name)
public boolean contains(int access, Collection.Key name)
contains
in interface ComponentAccess
public Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
keysAsStringIterator
in class StructSupport
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public Collection.Key[] keys()
keys
in interface Collection
public int size()
size
in interface Map
size
in interface Collection
public Class getJavaAccessClass(RefBoolean isNew) throws PageException
Component
getJavaAccessClass
in interface Component
PageException
- FUTURE deprecatedpublic Class getJavaAccessClass(PageContext pc, RefBoolean isNew) throws PageException
PageException
public Class getJavaAccessClass(PageContext pc, RefBoolean isNew, boolean writeLog, boolean takeTop, boolean create, boolean supressWSbeforeArg) throws PageException
PageException
public boolean isPersistent()
isPersistent
in interface ComponentAccess
public boolean isAccessors()
public void setProperty(Property property) throws PageException
setProperty
in interface Component
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 Property[] getProperties(boolean onlyPeristent, boolean includeBaseProperties, boolean preferBaseProperties, boolean inheritedMappedSuperClassOnly)
getProperties
in interface ComponentPro
public ComponentScope getComponentScope()
getComponentScope
in interface Component
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
compareTo
in class StructSupport
PageException
public void addConstructorUDF(Collection.Key key, UDF value)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public ComponentAccess _base()
_base
in interface ComponentAccess
public void setLoaded(boolean loaded)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |