edu.ntnu.cikmr.workflow
Class Invoke

java.lang.Object
  extended by edu.ntnu.cikmr.workflow.Statement
      extended by edu.ntnu.cikmr.workflow.Invoke
All Implemented Interfaces:
Executable, XMLRepresentation

public class Invoke
extends Statement

Title: Invoke statement

Description: Invokes a method on a resource.

Copyright: Copyright (c) 2007


Constructor Summary
Invoke()
           
 
Method Summary
 void addParameter(java.lang.String value)
           
 void addParameter(java.lang.String value, int index)
           
 void clearParameters()
           
 boolean execute()
           
 void fromXML(org.w3c.dom.Node n)
           
 java.lang.String getMethod()
          Returns the name of the method to invoke.
 java.lang.String getName()
          Returns the name of the variable to store the result in.
 boolean getResult()
           
 UseResource getUseResource()
           
 void removeParameter(int index)
           
 void setMethod(java.lang.String method)
          Sets the name of the method to invoke.
 void setName(java.lang.String name)
          Sets the name of the variable to store the result in.
 void setUseResource(UseResource useResource)
           
 java.lang.String toXML()
           
 
Methods inherited from class edu.ntnu.cikmr.workflow.Statement
getParent, resolve, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Invoke

public Invoke()
Method Detail

fromXML

public void fromXML(org.w3c.dom.Node n)

toXML

public java.lang.String toXML()

execute

public boolean execute()

getResult

public boolean getResult()

getMethod

public java.lang.String getMethod()
Returns the name of the method to invoke.

Returns:
method name

getName

public java.lang.String getName()
Returns the name of the variable to store the result in.

Returns:
variable name

getUseResource

public UseResource getUseResource()

setMethod

public void setMethod(java.lang.String method)
Sets the name of the method to invoke.

Parameters:
method - method name

setName

public void setName(java.lang.String name)
Sets the name of the variable to store the result in.

Parameters:
name - variable name

setUseResource

public void setUseResource(UseResource useResource)

clearParameters

public void clearParameters()

addParameter

public void addParameter(java.lang.String value,
                         int index)

addParameter

public void addParameter(java.lang.String value)

removeParameter

public void removeParameter(int index)