|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ucmtwine.parameter.ParameterMarshaller
public class ParameterMarshaller
Handles the binder parameters and type coercion for service and idoc methods including parameter injection of context and user data when needed.
| Field Summary | |
|---|---|
static int |
EXTRA_FUNC_DEF_VALUES
The function def table stores each param type plus the function index, the param count and return type |
| Constructor Summary | |
|---|---|
ParameterMarshaller()
|
|
ParameterMarshaller(Method method)
|
|
| Method Summary | |
|---|---|
int[] |
getFunctionDefinitionArray(int functionOffset,
int maxParams,
int returnType)
Return the m_functionDefinition compatible array. |
int |
getParameterCount(boolean includeInjected)
|
List<IParameter> |
getParameters()
|
Class<?>[] |
getTypeArray()
Returns an array of types for use with reflection method.invoke(). |
Object[] |
getValueArray(Object[] arguments,
intradoc.server.Service service)
Returns an array of values given an array of script arguments for use with the reflection method.invoke(), injecting known service/user/context data. |
Object[] |
getValueArray(intradoc.server.Service service)
Returns an array of values for use with the reflection method.invoke(), injecting known service/user/context data. |
Object[] |
getValueArray(intradoc.data.Workspace ws,
intradoc.data.DataBinder binder,
intradoc.common.ExecutionContext ctx)
Returns an array of values given a filter execution context |
void |
setParameters(List<IParameter> parameters)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int EXTRA_FUNC_DEF_VALUES
| Constructor Detail |
|---|
public ParameterMarshaller()
public ParameterMarshaller(Method method)
throws IllegalArgumentException
IllegalArgumentException| Method Detail |
|---|
public List<IParameter> getParameters()
public void setParameters(List<IParameter> parameters)
public Class<?>[] getTypeArray()
public int getParameterCount(boolean includeInjected)
includeInjected -
public int[] getFunctionDefinitionArray(int functionOffset,
int maxParams,
int returnType)
maxParams -
public Object[] getValueArray(Object[] arguments,
intradoc.server.Service service)
IllegalAccessException
public Object[] getValueArray(intradoc.data.Workspace ws,
intradoc.data.DataBinder binder,
intradoc.common.ExecutionContext ctx)
ws - The system workspacebinder - The current binderctx - The current execution context
public Object[] getValueArray(intradoc.server.Service service)
IllegalAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||