railo.runtime
Class ComponentImpl

java.lang.Object
  extended by railo.runtime.type.util.StructSupport
      extended by railo.runtime.ComponentImpl
All Implemented Interfaces:
TemplateProxy, Externalizable, Serializable, Cloneable, Map, Component, ComponentPro, Dumpable, Castable, ComponentAccess, Collection, Iteratorable, Objects, Sizeable, Struct

public final class ComponentImpl
extends StructSupport
implements Externalizable, ComponentAccess, TemplateProxy, Sizeable

%**% MUST add handling for new attributes (style, namespace, serviceportname, porttypename, wsdlfile, bindingname, and output)

See Also:
Serialized Form

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
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()
          clear all member
 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)
           
 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
 Object get(PageContext pc, String name)
          return property or getter of the ContextCollection
 Object get(PageContext pc, String name, Object defaultValue)
          return property
 String getAbsName()
           
 String getBaseAbsName()
           
 String getCallName()
           
 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
 Class getJavaAccessClass(RefBoolean isNew, boolean writeLog, boolean takeTop, boolean create)
           
 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()
           
 Page getPage()
          Deprecated. use instead getPageSource()
 PageSource getPageSource()
           
 Property[] getProperties(boolean onlyPeristent)
          return all properties from component
 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 iterator(int access)
          return iterator for keys
 Iterator keyIterator()
           
 Collection.Key[] keys()
           
 Collection.Key[] keys(int access)
           
 String[] keysAsString()
           
 String[] keysAsString(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 set(PageContext pc, String name, 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
 Object setEL(PageContext pc, String name, Object value)
          sets a property (Data Member) value of the object
 void setInitalized(boolean isInit)
           
 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
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class railo.runtime.type.util.StructSupport
clone, containsKey, containsKey, containsValue, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, 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, keySet, put, putAll, remove, values
 

Constructor Detail

ComponentImpl

public ComponentImpl()
Constructor of the Component, USED ONLY FOR DESERIALIZE


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
Constructor of the class

Parameters:
componentPage -
output -
_synchronized -
extend -
implement -
hint -
dspName -
callPath -
realPath -
style -
meta -
Throws:
ApplicationException

ComponentImpl

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
Throws:
ApplicationException

ComponentImpl

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
Throws:
ApplicationException
Method Detail

sizeOf

public long sizeOf()
Description copied from interface: Sizeable
return the size of the object

Specified by:
sizeOf in interface Sizeable
Overrides:
sizeOf in class StructSupport
Returns:
size of the object
See Also:
Sizeable.sizeOf()

duplicate

public Collection duplicate(boolean deepCopy)
Specified by:
duplicate in interface Collection
See Also:
public synchronized Collection duplicatex(boolean deepCopy) { ComponentImpl c=new ClonedComponent(this,deepCopy); return c; }

duplicateDataMember

public static Map duplicateDataMember(ComponentImpl c,
                                      Map map,
                                      Map newMap,
                                      boolean deepCopy)
duplicate the datamember in the map, ignores the udfs

Parameters:
c -
map -
newMap -
deepCopy -
Returns:

duplicateUTFMap

public static Map<Collection.Key,UDF> duplicateUTFMap(ComponentImpl src,
                                                      ComponentImpl trg,
                                                      Map<Collection.Key,UDF> srcMap,
                                                      Map<Collection.Key,UDF> trgMap)

init

public void init(PageContext pageContext,
                 ComponentPage componentPage)
          throws PageException
initalize the Component

Parameters:
pageContext -
componentPage -
Throws:
PageException

checkInterface

public void checkInterface(PageContext pc,
                           ComponentPage componentPage)
                    throws PageException
Throws:
PageException

onMissingMethod

public Object onMissingMethod(PageContext pc,
                              int access,
                              Member member,
                              String name,
                              Object[] _args,
                              Struct _namedArgs,
                              boolean superAccess)
                       throws PageException
Throws:
PageException

beforeCall

public Variables beforeCall(PageContext pc)
will be called before executing method or constructor

Parameters:
pc -
Returns:
the old scope map

afterConstructor

public void afterConstructor(PageContext pc,
                             Variables parent)
will be called after invoking constructor, only invoked by constructor (component body execution)

Parameters:
pc -
parent -

afterCall

public void afterCall(PageContext pc,
                      Variables parent)
Deprecated. replaced with afterConstructor(PageContext pc, Variables parent)

this function may be called by generated code inside a ra file

Parameters:
pc -
parent -

size

public int size(int access)
rerturn the size

Specified by:
size in interface ComponentAccess
Parameters:
access -
Returns:
size

keySet

public Set<Collection.Key> keySet(int access)
list of keys

Specified by:
keySet in interface ComponentAccess
Parameters:
c -
access -
doBase -
Returns:
key set

iterator

public Iterator iterator(int access)
return iterator for keys

Specified by:
iterator in interface ComponentAccess
Parameters:
access -
Returns:
iterator of the keys

keys

public Collection.Key[] keys(int access)
Specified by:
keys in interface ComponentAccess
Parameters:
access -
Returns:
keys inside Component

keysAsString

public String[] keysAsString(int access)
Specified by:
keysAsString in interface ComponentAccess
Parameters:
access -
Returns:

clear

public void clear()
clear all member

Specified by:
clear in interface Map
Specified by:
clear in interface Collection

getMember

public Member getMember(int access,
                        Collection.Key key,
                        boolean dataMember,
                        boolean superAccess)
Specified by:
getMember in interface ComponentAccess

toDumpData

public DumpData toDumpData(PageContext pageContext,
                           int maxlevel,
                           DumpProperties dp)
Description copied from interface: Dumpable
method to print out information to a object as HTML

Specified by:
toDumpData in interface Dumpable
Overrides:
toDumpData in class StructSupport
Returns:
HTML print out
See Also:
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)

toDumpData

public DumpData toDumpData(PageContext pageContext,
                           int maxlevel,
                           DumpProperties dp,
                           int access)
to html output print only with access less than given access

Specified by:
toDumpData in interface ComponentAccess
Parameters:
pageContext -
access -
Returns:
html output

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface Component
Returns:
Returns the display name.
See Also:
Component.getDisplayName()

getExtends

public String getExtends()
Specified by:
getExtends in interface Component
Returns:
Returns the Extends.
See Also:
Component.getExtends()

getBaseAbsName

public String getBaseAbsName()
Specified by:
getBaseAbsName in interface ComponentPro

isBasePeristent

public boolean isBasePeristent()
Specified by:
isBasePeristent in interface ComponentPro

getHint

public String getHint()
Specified by:
getHint in interface Component
Returns:
Returns the Hint.
See Also:
Component.getHint()

getWSDLFile

public String getWSDLFile()
Specified by:
getWSDLFile in interface ComponentPro

getName

public String getName()
Specified by:
getName in interface Component
Returns:
Returns the Name.
See Also:
Component.getName()

_getName

public String _getName()

_getPageSource

public PageSource _getPageSource()

getCallName

public String getCallName()
Specified by:
getCallName in interface Component
Returns:
Returns the Name.
See Also:
Component.getCallName()

getAbsName

public String getAbsName()
Specified by:
getAbsName in interface Component
Returns:
Returns the Name.
See Also:
Component.getAbsName()

getOutput

public boolean getOutput()
Specified by:
getOutput in interface Component
Returns:
Returns the output.
See Also:
Component.getOutput()

instanceOf

public boolean instanceOf(String type)
Description copied from interface: Component
check if Component is instance of this type

Specified by:
instanceOf in interface Component
Parameters:
type - type to compare as String
Returns:
is instance of this type
See Also:
Component.instanceOf(java.lang.String)

equalTo

public boolean equalTo(String type)
Specified by:
equalTo in interface ComponentPro

isValidAccess

public boolean isValidAccess(int access)
Description copied from interface: Component
check if value is a valid access modifier constant

Specified by:
isValidAccess in interface Component
Returns:
is valid access
See Also:
Component.isValidAccess(int)

getPage

public Page getPage()
Deprecated. use instead getPageSource()

Specified by:
getPage in interface Component
Returns:
returns the ComponentPage of the Component

getPageSource

public PageSource getPageSource()
Specified by:
getPageSource in interface ComponentPro

castToString

public String castToString()
                    throws PageException
Description copied from interface: Castable
cast the castable value to a string, other than the Method toString, this Method can throw a Exception

Specified by:
castToString in interface Castable
Overrides:
castToString in class StructSupport
Returns:
String representation of the Object
Throws:
PageException
See Also:
Castable.castToString()

castToString

public String castToString(String defaultValue)
Description copied from interface: Castable
cast the castable value to a string, return the default value, when the method is not castable

Specified by:
castToString in interface Castable
Overrides:
castToString in class StructSupport
Returns:
String representation of the Object
See Also:
StructSupport.castToString(java.lang.String)

castToBooleanValue

public boolean castToBooleanValue()
                           throws PageException
Description copied from interface: Castable
cast the castable value to a boolean value

Specified by:
castToBooleanValue in interface Castable
Overrides:
castToBooleanValue in class StructSupport
Returns:
boolean Value representation of the Object
Throws:
PageException
See Also:
Castable.castToBooleanValue()

castToBoolean

public Boolean castToBoolean(Boolean defaultValue)
Description copied from interface: Castable
cast the castable value to a boolean value

Specified by:
castToBoolean in interface Castable
Overrides:
castToBoolean in class StructSupport
Returns:
boolean Value representation of the Object
See Also:
Castable.castToBoolean(java.lang.Boolean)

castToDoubleValue

public double castToDoubleValue()
                         throws PageException
Description copied from interface: Castable
cast the castable value to a double value

Specified by:
castToDoubleValue in interface Castable
Overrides:
castToDoubleValue in class StructSupport
Returns:
double Value representation of the Object
Throws:
PageException
See Also:
Castable.castToDoubleValue()

castToDoubleValue

public double castToDoubleValue(double defaultValue)
Description copied from interface: Castable
cast the castable value to a double value

Specified by:
castToDoubleValue in interface Castable
Overrides:
castToDoubleValue in class StructSupport
Returns:
double Value representation of the Object
See Also:
Castable.castToDoubleValue(double)

castToDateTime

public DateTime castToDateTime()
                        throws PageException
Description copied from interface: Castable
cast the castable value to a date time object

Specified by:
castToDateTime in interface Castable
Overrides:
castToDateTime in class StructSupport
Returns:
date time representation of the Object
Throws:
PageException
See Also:
Castable.castToDateTime()

castToDateTime

public DateTime castToDateTime(DateTime defaultValue)
Description copied from interface: Castable
cast the castable value to a date time object

Specified by:
castToDateTime in interface Castable
Overrides:
castToDateTime in class StructSupport
Parameters:
defaultValue - returned when it is not possible to cast to a dateTime object
Returns:
date time representation of the Object
See Also:
Castable.castToDateTime(railo.runtime.type.dt.DateTime)

getMetaData

public Struct getMetaData(PageContext pc)
                   throws PageException
Description copied from interface: Component
returns Meta Data to the Component

Specified by:
getMetaData in interface Component
Returns:
meta data to component
Throws:
PageException
See Also:
Component.getMetaData(railo.runtime.PageContext)

getMetaStructItem

public Object getMetaStructItem(Collection.Key name)
Specified by:
getMetaStructItem in interface ComponentAccess

isInitalized

public boolean isInitalized()
Specified by:
isInitalized in interface Objects
Returns:
returns if embeded Object is init
See Also:
Objects.isInitalized()

setInitalized

public void setInitalized(boolean isInit)

reg

public void reg(Collection.Key key,
                UDFImpl udf)

reg

public void reg(String key,
                UDFImpl udf)

registerUDF

public void registerUDF(String key,
                        UDF udf)

registerUDF

public void registerUDF(String key,
                        UDFProperties prop)

registerUDF

public void registerUDF(Collection.Key key,
                        UDF udf)

registerUDF

public void registerUDF(Collection.Key key,
                        UDFProperties prop)

registerUDF

public void registerUDF(Collection.Key key,
                        UDFImpl udf,
                        boolean useShadow,
                        boolean injected)

remove

public Object remove(Collection.Key key)
              throws PageException
Description copied from interface: Collection
removes value from collection and return it when it exists, otherwise throws a exception

Specified by:
remove in interface Collection
Parameters:
key - key of the collection
Returns:
removed Object
Throws:
PageException
See Also:
Collection.remove(railo.runtime.type.Collection.Key)

removeEL

public Object removeEL(Collection.Key key)
Description copied from interface: Collection
removes value from collection and return it when it exists, otherwise returns null

Specified by:
removeEL in interface Collection
Parameters:
key - key of the collection
Returns:
removed Object

set

public Object set(PageContext pc,
                  String name,
                  Object value)
           throws PageException
Description copied from interface: Objects
sets a property (Data Member) value of the object

Specified by:
set in interface Objects
name - property name to set
value - value to insert
Returns:
value set to property
Throws:
PageException
See Also:
Objects.set(railo.runtime.PageContext, java.lang.String, java.lang.Object)

set

public Object set(PageContext pc,
                  Collection.Key key,
                  Object value)
           throws PageException
Description copied from interface: Objects
sets a property (Data Member) value of the object

Specified by:
set in interface Objects
key - property name to set
value - value to insert
Returns:
value set to property
Throws:
PageException
See Also:
Objects.set(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)

set

public Object set(Collection.Key key,
                  Object value)
           throws PageException
Description copied from interface: Collection
sets a value to the collection

Specified by:
set in interface Collection
Parameters:
key - key of the new value
value - value to set
Returns:
value setted
Throws:
PageException
See Also:
Collection.set(railo.runtime.type.Collection.Key, java.lang.Object)

setEL

public Object setEL(PageContext pc,
                    String name,
                    Object value)
Description copied from interface: Objects
sets a property (Data Member) value of the object

Specified by:
setEL in interface Objects
name - property name to set
value - value to insert
Returns:
value set to property
See Also:
Objects.setEL(railo.runtime.PageContext, java.lang.String, java.lang.Object)

setEL

public Object setEL(PageContext pc,
                    Collection.Key name,
                    Object value)
Description copied from interface: Objects
sets a property (Data Member) value of the object

Specified by:
setEL in interface Objects
name - property name to set
value - value to insert
Returns:
value set to property
See Also:
Objects.setEL(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)

setEL

public Object setEL(Collection.Key key,
                    Object value)
Description copied from interface: Collection
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null

Specified by:
setEL in interface Collection
Parameters:
key - key of the value to get
value - value to set
Returns:
value on key position or null
See Also:
Collection.setEL(railo.runtime.type.Collection.Key, java.lang.Object)

get

public Object get(PageContext pc,
                  String name)
           throws PageException
Description copied from interface: Objects
return property or getter of the ContextCollection

Specified by:
get in interface Objects
Parameters:
pc - PageContext
name - Name of the Property
Returns:
return value of the Property
Throws:
PageException
See Also:
railo.runtime.type.ContextCollection#get(railo.runtime.PageContext, java.lang.String)

get

public Object get(PageContext pc,
                  Collection.Key key)
           throws PageException
Description copied from interface: Objects
return property or getter of the ContextCollection

Specified by:
get in interface Objects
Parameters:
pc - PageContext
key - Name of the Property
Returns:
return value of the Property
Throws:
PageException

get

public Object get(int access,
                  String name)
           throws PageException
return element that has at least given access or null

Parameters:
access -
name -
Returns:
matching value
Throws:
PageException

get

public Object get(int access,
                  Collection.Key key)
           throws PageException
Specified by:
get in interface ComponentAccess
Throws:
PageException

get

public Object get(PageContext pc,
                  String name,
                  Object defaultValue)
Description copied from interface: Objects
return property

Specified by:
get in interface Objects
Parameters:
pc - PageContext
name - Name of the Property
Returns:
return value of the Property
See Also:
railo.runtime.type.ContextCollection#get(railo.runtime.PageContext, java.lang.String, java.lang.Object)

get

public Object get(PageContext pc,
                  Collection.Key key,
                  Object defaultValue)
Description copied from interface: Objects
return property

Specified by:
get in interface Objects
Parameters:
pc - PageContext
key - Name of the Property
Returns:
return value of the Property
See Also:
Objects.get(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)

get

public Object get(int access,
                  Collection.Key key,
                  Object defaultValue)
Specified by:
get in interface ComponentAccess
Parameters:
access -
key -
defaultValue -
Returns:

get

public Object get(Collection.Key key)
           throws PageException
Description copied from interface: Collection
return a value from the collection

Specified by:
get in interface Collection
Parameters:
key - key of the value to get must be lower case
Returns:
value on key position
Throws:
PageException
See Also:
Collection.get(railo.runtime.type.Collection.Key)

get

public Object get(Collection.Key key,
                  Object defaultValue)
Description copied from interface: Collection
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null

Specified by:
get in interface Collection
Parameters:
key - key of the value to get
Returns:
value on key position or null
See Also:
Collection.get(railo.runtime.type.Collection.Key, java.lang.Object)

call

public Object call(PageContext pc,
                   String name,
                   Object[] args)
            throws PageException
Description copied from interface: Component
call a method of the component with no named arguments

Specified by:
call in interface Component
Specified by:
call in interface Objects
Parameters:
pc - PageContext
name - name of the method
args - Arguments for the method
Returns:
return result of the method
Throws:
PageException
See Also:
Component.call(railo.runtime.PageContext, java.lang.String, java.lang.Object[])

call

public Object call(PageContext pc,
                   Collection.Key name,
                   Object[] args)
            throws PageException
Description copied from interface: Objects
calls a method of the object

Specified by:
call in interface Objects
name - name of the method to call
args - arguments to call method with
Returns:
return value of the method
Throws:
PageException

call

public Object call(PageContext pc,
                   int access,
                   Collection.Key name,
                   Object[] args)
            throws PageException
Specified by:
call in interface ComponentAccess
Throws:
PageException

callWithNamedValues

public Object callWithNamedValues(PageContext pc,
                                  String name,
                                  Struct args)
                           throws PageException
Description copied from interface: Component
call a method of the component with named arguments

Specified by:
callWithNamedValues in interface Component
Specified by:
callWithNamedValues in interface Objects
Parameters:
pc - PageContext
name - name of the method
args - Named Arguments for the method
Returns:
return result of the method
Throws:
PageException
See Also:
Component.callWithNamedValues(railo.runtime.PageContext, java.lang.String, railo.runtime.type.Struct)

callWithNamedValues

public Object callWithNamedValues(PageContext pc,
                                  Collection.Key methodName,
                                  Struct args)
                           throws PageException
Description copied from interface: Objects
call a method of the Object with named arguments

Specified by:
callWithNamedValues in interface Objects
Parameters:
pc - PageContext
methodName - name of the method
args - Named Arguments for the method
Returns:
return result of the method
Throws:
PageException

callWithNamedValues

public Object callWithNamedValues(PageContext pc,
                                  int access,
                                  Collection.Key name,
                                  Struct args)
                           throws PageException
Specified by:
callWithNamedValues in interface ComponentAccess
Throws:
PageException

contains

public boolean contains(PageContext pc,
                        String name)

contains

public boolean contains(PageContext pc,
                        Collection.Key key)
Specified by:
contains in interface ComponentPro
Parameters:
pc -
key -
Returns:

containsKey

public boolean containsKey(Collection.Key key)
Description copied from interface: Collection
contains this key

Specified by:
containsKey in interface Collection
Returns:
returns if collection has a key with given name
See Also:
Collection.containsKey(railo.runtime.type.Collection.Key)

contains

public boolean contains(int access,
                        String name)

contains

public boolean contains(int access,
                        Collection.Key name)
Specified by:
contains in interface ComponentAccess

keyIterator

public Iterator keyIterator()
Specified by:
keyIterator in interface Iteratorable
Returns:
return a Iterator for Keys as String
See Also:
Iteratorable.keyIterator()

keysAsString

public String[] keysAsString()
Specified by:
keysAsString in interface Collection
Returns:
returns a string array of all keys in the collection
See Also:
Collection.keysAsString()

keys

public Collection.Key[] keys()
Specified by:
keys in interface Collection
Returns:
returns a string array of all keys in the collection

size

public int size()
Specified by:
size in interface Map
Specified by:
size in interface Collection
Returns:
the size of the collection
See Also:
Collection.size()

getJavaAccessClass

public Class getJavaAccessClass(RefBoolean isNew)
                         throws PageException
Description copied from interface: Component
returns java class to the component interface (all UDFs), this class is generated dynamic when used

Specified by:
getJavaAccessClass in interface Component
Parameters:
isNew - because we can return only one value we give a editable boolean in to become tzhe info if the class is new or not
Returns:
Throws:
PageException

getJavaAccessClass

public Class getJavaAccessClass(RefBoolean isNew,
                                boolean writeLog,
                                boolean takeTop,
                                boolean create)
                         throws PageException
Throws:
PageException

isPersistent

public boolean isPersistent()
Specified by:
isPersistent in interface ComponentAccess

isAccessors

public boolean isAccessors()

setProperty

public void setProperty(Property property)
                 throws PageException
Specified by:
setProperty in interface ComponentPro
Throws:
PageException

getProperties

public Property[] getProperties(boolean onlyPeristent)
Description copied from interface: ComponentPro
return all properties from component

Specified by:
getProperties in interface ComponentPro
Parameters:
onlyPeristent - if true return only columns where attribute persistent is not set to false
Returns:

getComponentScope

public ComponentScope getComponentScope()
Specified by:
getComponentScope in interface ComponentPro

compareTo

public int compareTo(boolean b)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class StructSupport
Throws:
PageException
See Also:
railo.runtime.op.Castable#compare(boolean)

compareTo

public int compareTo(DateTime dt)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class StructSupport
Throws:
PageException
See Also:
Castable.compareTo(railo.runtime.type.dt.DateTime)

compareTo

public int compareTo(double d)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class StructSupport
Throws:
PageException
See Also:
Castable.compareTo(double)

compareTo

public int compareTo(String str)
              throws PageException
Specified by:
compareTo in interface Castable
Overrides:
compareTo in class StructSupport
Throws:
PageException
See Also:
Castable.compareTo(java.lang.String)

addConstructorUDF

public void addConstructorUDF(Collection.Key key,
                              UDF value)

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

_base

public ComponentAccess _base()
Specified by:
_base in interface ComponentAccess
See Also:
ComponentAccess._base()


Copyright © 2012 Railo