|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.extend.InboundContext
public final class InboundContext
InboundContext is the context for set of inbound conversions. Since a data set may be recursive parts of some data members may refer to others so we need to keep track of who is converted for what.
| Constructor Summary | |
|---|---|
InboundContext()
|
|
| Method Summary | |
|---|---|
void |
addConverted(InboundVariable iv,
java.lang.Class<?> type,
java.lang.Object bean)
Add to the (temporary) list of converted objects |
void |
clearConverted()
Clear the list of converted objects. |
InboundVariable |
createArrayWrapper(int callNum,
int destParamCount)
This is very nasty - we need to create an array for varargs. |
void |
createInboundVariable(int callNum,
java.lang.String key,
java.lang.String type,
FormField value)
Create an inbound file variable. |
void |
createInboundVariable(int callNum,
java.lang.String key,
java.lang.String type,
java.lang.String value)
Create an inbound variable. |
void |
createInboundVariable(int callNum,
java.lang.String key,
java.lang.String type,
java.lang.String value,
boolean urlDecoded)
Create an inbound variable. |
void |
dereference()
When we are sure we have finished parsing the input, we can begin to fix all cross-references. |
java.lang.Object |
getConverted(InboundVariable iv,
java.lang.Class<?> type)
Check to see if the conversion has already been done |
Property |
getCurrentProperty()
|
InboundVariable |
getInboundVariable(java.lang.String name)
Method to allow entries to resolve references |
java.util.Iterator<java.lang.String> |
getInboundVariableNames()
A debug method so people can get a list of all the variable names |
InboundVariable |
getParameter(int callNum,
int index)
Get a parameter by index |
int |
getParameterCount()
How many parameters are there? |
int |
getParameterCount(int callNum)
Count the arguments (including method and script params) for a given call number. |
void |
popContext()
Someone wants to tell us about a finished conversion context. |
void |
pushContext(Property context)
Someone wants to tell us about a new conversion context. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InboundContext()
| Method Detail |
|---|
public void dereference()
throws ConversionException
ConversionException - If cross-references don't add uppublic void pushContext(Property context)
context - The current conversion contextpublic void popContext()
public Property getCurrentProperty()
public void createInboundVariable(int callNum,
java.lang.String key,
java.lang.String type,
java.lang.String value)
callNum - The call number to work onkey - The name of the variabletype - The javascript type of the variablevalue - The value of the variable
public void createInboundVariable(int callNum,
java.lang.String key,
java.lang.String type,
java.lang.String value,
boolean urlDecoded)
callNum - The call number to work onkey - The name of the variabletype - The javascript type of the variablevalue - The value of the variablehas - value been URL decoded?
public void createInboundVariable(int callNum,
java.lang.String key,
java.lang.String type,
FormField value)
callNum - The call number to work onkey - The name of the variabletype - The javascript type of the variablevalue - The value of the filepublic InboundVariable getInboundVariable(java.lang.String name)
name - The name of the variable to lookup
public void clearConverted()
public void addConverted(InboundVariable iv,
java.lang.Class<?> type,
java.lang.Object bean)
iv - The converted objecttype - The type that we converted the object tobean - The converted version
public java.lang.Object getConverted(InboundVariable iv,
java.lang.Class<?> type)
iv - The inbound data to checktype - The type that we want the object converted to
public int getParameterCount()
public int getParameterCount(int callNum)
callNum - The Call number to count the parameters of
public InboundVariable getParameter(int callNum,
int index)
callNum - The call number to work onindex - The parameter index
public InboundVariable createArrayWrapper(int callNum,
int destParamCount)
callNum - The call number to work ondestParamCount - The number of parameters to the method that we are
calling, from which we can work out the size of the varargs arraypublic java.util.Iterator<java.lang.String> getInboundVariableNames()
public java.lang.String toString()
toString in class java.lang.Object
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||