org.directwebremoting.extend
Class InboundVariable
java.lang.Object
org.directwebremoting.extend.InboundVariable
public final class InboundVariable
- extends java.lang.Object
A simple struct to hold data about a single converted javascript variable.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
InboundVariable
public InboundVariable(InboundContext context,
java.lang.String key,
java.lang.String type,
java.lang.String value)
- Parsing ctor
- Parameters:
context
- How we lookup referenceskey
- The name of the variable that this was transfered astype
- The type information from javascriptvalue
- The javascript variable converted to a string
getLookup
public InboundContext getLookup()
- Returns:
- Returns the lookup table.
getType
public java.lang.String getType()
- Returns:
- Returns the type.
isNull
public boolean isNull()
- Was this type null on the way in
- Returns:
- true if the javascript variable was null or undefined.
getValue
public java.lang.String getValue()
- Returns:
- Returns the value.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object