|
||||||||||
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 recurrsive 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. |
void |
createInboundVariable(int callNum,
java.lang.String key,
java.lang.String type,
java.lang.String value)
Create an inbound variable. |
java.lang.Object |
getConverted(InboundVariable iv,
java.lang.Class type)
Check to see if the conversion has already been done |
TypeHintContext |
getCurrentTypeHintContext()
|
InboundVariable |
getInboundVariable(java.lang.String name)
Internal method to allow entries to resolve references |
java.util.Iterator |
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)
This is a bit of a hack, needed for debug purposes - it counts the parameters (including method and script params) for a given call number |
void |
popContext()
Someone wants to tell us about a finished conversion context. |
void |
pushContext(TypeHintContext 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 pushContext(TypeHintContext context)
context
- The current conversion contextpublic void popContext()
public TypeHintContext getCurrentTypeHintContext()
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 variablepublic 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 versionpublic 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 java.util.Iterator getInboundVariableNames()
public java.lang.String toString()
toString
in class java.lang.Object
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |