| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xins.server.FunctionResult
Result from a function call.
| Constructor Summary | |
| FunctionResult()Creates a new successful FunctionResultinstance. | |
| FunctionResult(String code)Creates a new FunctionResultinstance. | |
| FunctionResult(String code,
               BasicPropertyReader parameters)Creates a new FunctionResultinstance. | |
| Method Summary | |
| protected  void | add(Element element)Adds a new org.xins.common.xml.Elementto the data element. | 
| protected  void | add(Element element)Deprecated. Deprecated since XINS 1.3.0. Use add(org.xins.common.xml.Element)instead. | 
| protected  InvalidResponseResult | checkOutputParameters()Checks that the output parameters are set as specified. | 
|  Element | getDataElement()Gets the data element from this result. | 
|  String | getErrorCode()Returns the result code. | 
|  String | getParameter(String name)Gets the value of the specified parameter. | 
|  PropertyReader | getParameters()Gets all parameters. | 
| protected  void | param(String name,
      String value)Adds an output parameter to the result. | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public FunctionResult()
FunctionResult instance.
public FunctionResult(String code)
FunctionResult instance.
code - the error code, can be null if the result is successful.
public FunctionResult(String code,
                      BasicPropertyReader parameters)
FunctionResult instance.
code - the error code, can be null if the result is successful.parameters - the parameters for the result.| Method Detail | 
public String getErrorCode()
null if no code was returned.protected InvalidResponseResult checkOutputParameters()
InvalidResponseResult is returned. Otherwise the parameters
 are considered valid, and null is returned.
 The implementation of this method in class FunctionResult
 always returns null.
InvalidResponseResult instance if at least one output
    parameter is missing or invalid, or null otherwise.
protected void param(String name,
                     String value)
name - the name of the output parameter, not null and not an
    empty string.value - the value of the output parameter, not null and not an
    empty string.public PropertyReader getParameters()
PropertyReader containing all parameters, or
    null if no parameters are set; the keys will be the
    names of the parameters (String objects, cannot be
    null), the values will be the parameter values
    (String objects as well, cannot be null).public String getParameter(String name)
name - the parameter element name, not null.
null if the value is not set.protected void add(Element element)
org.xins.common.xml.Element to the data element.
element - the new element to add to the result, cannot be null.protected void add(Element element)
add(org.xins.common.xml.Element) instead.
org.xins.server.Element to the data element.
element - the new element to add to the result, cannot be null.public Element getDataElement()
null.public String toString()
| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||