edu.ntnu.cikmr.workflow
Class UseResource

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

public class UseResource
extends Statement

Title: UseResource statement

Description: Uses a resource stored in a variable.

Copyright: Copyright (c) 2007


Constructor Summary
UseResource()
           
 
Method Summary
 boolean execute()
           
 void fromXML(org.w3c.dom.Node n)
           
 java.util.List getInvokes()
          Returns the list of Invokes.
 java.lang.String getName()
          Returns the name of the variable containing the resource to look up.
 Resource getResource()
           
 boolean getResult()
           
 void setInvokes(java.util.List invokes)
          Sets the list of Invokes.
 void setName(java.lang.String name)
          Sets the name of the resource variable to look up.
 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

UseResource

public UseResource()
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()

getName

public java.lang.String getName()
Returns the name of the variable containing the resource to look up.

Returns:
resource variable name

getInvokes

public java.util.List getInvokes()
Returns the list of Invokes.

Returns:
invokes

setName

public void setName(java.lang.String name)
Sets the name of the resource variable to look up.

Parameters:
name - resource variable name

setInvokes

public void setInvokes(java.util.List invokes)
Sets the list of Invokes.

Parameters:
invokes - list of Invokes.

getResource

public Resource getResource()