|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.java.JavaObject
public class JavaObject
class to handle initialising and call native object from railo
Constructor Summary | |
---|---|
JavaObject(VariableUtil variableUtil,
Class clazz)
constructor with className to load |
|
JavaObject(VariableUtil variableUtil,
Object object)
|
Method Summary | |
---|---|
Object |
call(PageContext pc,
Collection.Key methodName,
Object[] arguments)
calls a method of the object |
Object |
call(PageContext pc,
String methodName,
Object[] arguments)
calls a method of the object |
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments |
Object |
callWithNamedValues(PageContext pc,
String methodName,
Struct args)
call a method of the Object with named arguments |
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value |
boolean |
castToBooleanValue()
cast the castable value to a boolean value |
DateTime |
castToDateTime()
cast the castable value to a date time object |
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object |
double |
castToDoubleValue()
cast the castable value to a double value |
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value |
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception |
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable |
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
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 propertyName)
return property or getter of the ContextCollection |
Object |
get(PageContext pc,
String propertyName,
Object defaultValue)
return property |
Class |
getClazz()
|
Object |
getEmbededObject()
returns embeded Object |
Object |
getEmbededObject(Object def)
returns embeded Object EL |
Object |
getObject()
|
boolean |
isInitalized()
|
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(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 |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties props)
method to print out information to a object as HTML |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaObject(VariableUtil variableUtil, Class clazz)
variableUtil
- clazz
-
ExpressionException
public JavaObject(VariableUtil variableUtil, Object object)
Method Detail |
---|
public Object get(PageContext pc, String propertyName) throws PageException
Objects
get
in interface Objects
pc
- PageContextpropertyName
- Name of the Property
PageException
Objects.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 Object get(PageContext pc, String propertyName, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextpropertyName
- Name of the Property
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 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 Object call(PageContext pc, String methodName, Object[] arguments) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callarguments
- arguments to call method with
PageException
Objects.call(railo.runtime.PageContext, java.lang.String, java.lang.Object[])
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
Objects.call(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object[])
public Object callWithNamedValues(PageContext pc, String methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
Objects.callWithNamedValues(railo.runtime.PageContext, java.lang.String, railo.runtime.type.Struct)
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 Object getEmbededObject() throws PageException
ObjectWrap
getEmbededObject
in interface ObjectWrap
PageException
ObjectWrap.getEmbededObject()
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties props)
Dumpable
toDumpData
in interface Dumpable
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public Class getClazz()
public boolean isInitalized()
isInitalized
in interface Objects
Objects.isInitalized()
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
Castable.castToString(java.lang.String)
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
Castable.castToDoubleValue(double)
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
PageException
Castable.castToDateTime()
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public Object getEmbededObject(Object def)
ObjectWrap
getEmbededObject
in interface ObjectWrap
ObjectWrap.getEmbededObject(Object)
public Object getObject()
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(double)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |