edu.ntnu.cikmr.workflow
Class Compare

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

public class Compare
extends Statement

Title: Compare statement

Description: Compares two values.

Copyright: Copyright (c) 2007


Constructor Summary
Compare()
           
 
Method Summary
 boolean execute()
           
 void fromXML(org.w3c.dom.Node n)
           
 java.lang.String getLs()
          Return the left side of the comparison.
 boolean getResult()
           
 java.lang.String getRs()
          Returns the right side of the comparison
 java.lang.String getType()
          Returns the type of comparison to perform.
 void setLs(java.lang.String ls)
          Sets the left side value or variable to compare.
 void setRs(java.lang.String rs)
          Sets the right side value or variable to compare.
 void setType(java.lang.String type)
          Sets the type of comparison to perform.
 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

Compare

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

getType

public java.lang.String getType()
Returns the type of comparison to perform.

Returns:
type

getRs

public java.lang.String getRs()
Returns the right side of the comparison

Returns:
value

getLs

public java.lang.String getLs()
Return the left side of the comparison.

Returns:
value

setLs

public void setLs(java.lang.String ls)
Sets the left side value or variable to compare.

Parameters:
ls -

setRs

public void setRs(java.lang.String rs)
Sets the right side value or variable to compare.

Parameters:
rs -

setType

public void setType(java.lang.String type)
Sets the type of comparison to perform.

Parameters:
type -