edu.ntnu.cikmr.workflow
Class FindResource

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

public class FindResource
extends Statement

Title: Find resource statement

Description: Looks up a statement and stores it in a variable.

Copyright: Copyright (c) 2007


Constructor Summary
FindResource()
           
 
Method Summary
 boolean execute()
           
 void fromXML(org.w3c.dom.Node n)
           
 java.lang.String getLocation()
          The location to look for the resource.
 java.lang.String getName()
          Return the name of the variable to store the resource in.
 boolean getResult()
           
 java.lang.String getType()
          Returns the type of resource to look for
 boolean hasLocation()
           
 boolean isLocal()
          Return if the resource should be found locally
 void setLocal(boolean local)
          Sets whether the resource should be searched for locally.
 void setLocation(java.lang.String location)
          Sets the location to search for the resource.
 void setName(java.lang.String name)
          Sets the name of the variable to search for.
 void setType(java.lang.String type)
          Sets the type of resource to search for.
 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

FindResource

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

isLocal

public boolean isLocal()
Return if the resource should be found locally

Returns:
boolean

getLocation

public java.lang.String getLocation()
The location to look for the resource.

Returns:
location

hasLocation

public boolean hasLocation()

getType

public java.lang.String getType()
Returns the type of resource to look for

Returns:
type

getName

public java.lang.String getName()
Return the name of the variable to store the resource in.

Returns:
variable name

setLocal

public void setLocal(boolean local)
Sets whether the resource should be searched for locally.

Parameters:
local - boolean

setLocation

public void setLocation(java.lang.String location)
Sets the location to search for the resource.

Parameters:
location -

setType

public void setType(java.lang.String type)
Sets the type of resource to search for.

Parameters:
type -

setName

public void setName(java.lang.String name)
Sets the name of the variable to search for.

Parameters:
name - variable name