| |
|
| java.lang.Object net.xoetrope.xui.data.XModel net.xoetrope.optional.service.XServiceModelNode
XServiceModelNode | public class XServiceModelNode extends XModel (Code) | | Models a service as a model node. Getting the node value causes the service
to be invoked. The node attributes are used as the arguments for the service
call.
Copyright: Copyright (c) Xoetrope Ltd. 2002-2003
$Revision: 1.1 $
|
dirty | protected boolean dirty(Code) | | |
expires | protected long expires(Code) | | |
XServiceModelNode | public XServiceModelNode()(Code) | | |
getAttribName | public String getAttribName(int i)(Code) | | Get the name of an argument
Parameters: i - the argument name |
getAttribValueAsDouble | public double getAttribValueAsDouble(int i)(Code) | | |
getAttribValueAsInt | public int getAttribValueAsInt(int i)(Code) | | |
getAttribValueAsString | public String getAttribValueAsString(int i)(Code) | | |
getAttribute | public int getAttribute(String argName)(Code) | | Look up an argument name
Parameters: argName - the argument name the argument index or -1 if not found |
getServiceProxy | public ServiceProxy getServiceProxy()(Code) | | Get the service proxy that implements this service call
the service proxy |
getServiceProxy | public ServiceProxy getServiceProxy(String reqdClass)(Code) | | Get the service proxy that implements this service call
the service proxy |
getValueAsDouble | public double getValueAsDouble(String elementName)(Code) | | |
getValueAsInt | public int getValueAsInt(String elementName)(Code) | | |
getValueAsString | public String getValueAsString(String elementName)(Code) | | Gets the value attribute of the specified node as a string.
Parameters: elementName - the value as a string |
hasExpired | boolean hasExpired()(Code) | | Checks to see if the response has timed out or expired
true if the response is out-of-date |
hashCode | public int hashCode()(Code) | | |
setAttribValue | public void setAttribValue(int i, Object value)(Code) | | Set the value of an argument
Parameters: i - the argument index Parameters: value - the new argument value |
setAttribValue | public void setAttribValue(int i, String attribName, Object value)(Code) | | Set the value of an argument
Parameters: i - the argument index Parameters: attribName - the name of teh attribute Parameters: value - the new argument value |
setNumAttributes | public void setNumAttributes(int num)(Code) | | |
sync | protected void sync()(Code) | | Syncs the model with the service response is the request has been changed
or if the node has timed out.
|
|
|
|