com.taleo.integration.client.customstep.velocity
Class LogicTool

java.lang.Object
  extended by com.taleo.integration.client.customstep.velocity.LogicTool

public class LogicTool
extends java.lang.Object

Class to expose Logic functions into Velocity templates.

Author:
Romain Guay - Taleo Corporation

Constructor Summary
LogicTool()
           
 
Method Summary
 boolean and(boolean lhs, boolean rhs)
          Combine two boolean arguments with a logical And operator.
 boolean equals(java.lang.Comparable lhs, java.lang.Comparable rhs)
          Test two Comparable arguments for equality.
 boolean greaterThan(java.lang.Comparable lhs, java.lang.Comparable rhs)
          Test two Comparable arguments for "greater than".
 boolean greaterThanOrEqual(java.lang.Comparable lhs, java.lang.Comparable rhs)
          Test two Comparable arguments for "greater than or equal".
 boolean lessThan(java.lang.Comparable lhs, java.lang.Comparable rhs)
          Test two Comparable arguments for "less than".
 boolean lessThanOrEqual(java.lang.Comparable lhs, java.lang.Comparable rhs)
          Test two Comparable arguments for "less than or equal".
 boolean not(boolean bool)
          Not operator.
 boolean or(boolean lhs, boolean rhs)
          Combine two boolean arguments with a logical Or operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogicTool

public LogicTool()
Method Detail

equals

public boolean equals(java.lang.Comparable lhs,
                      java.lang.Comparable rhs)
Test two Comparable arguments for equality.

Parameters:
lhs - The left hand side argument.
rhs - The right hand side argument.
Returns:
A boolean result.

lessThan

public boolean lessThan(java.lang.Comparable lhs,
                        java.lang.Comparable rhs)
Test two Comparable arguments for "less than".

Parameters:
lhs - The left hand side argument.
rhs - The right hand side argument.
Returns:
A boolean result.

lessThanOrEqual

public boolean lessThanOrEqual(java.lang.Comparable lhs,
                               java.lang.Comparable rhs)
Test two Comparable arguments for "less than or equal".

Parameters:
lhs - The left hand side argument.
rhs - The right hand side argument.
Returns:
A boolean result.

greaterThan

public boolean greaterThan(java.lang.Comparable lhs,
                           java.lang.Comparable rhs)
Test two Comparable arguments for "greater than".

Parameters:
lhs - The left hand side argument.
rhs - The right hand side argument.
Returns:
A boolean result.

greaterThanOrEqual

public boolean greaterThanOrEqual(java.lang.Comparable lhs,
                                  java.lang.Comparable rhs)
Test two Comparable arguments for "greater than or equal".

Parameters:
lhs - The left hand side argument.
rhs - The right hand side argument.
Returns:
A boolean result.

and

public boolean and(boolean lhs,
                   boolean rhs)
Combine two boolean arguments with a logical And operator.

Parameters:
lhs - The left hand side argument.
rhs - The right hand side argument.
Returns:
A boolean result.

or

public boolean or(boolean lhs,
                  boolean rhs)
Combine two boolean arguments with a logical Or operator.

Parameters:
lhs - The left hand side argument.
rhs - The right hand side argument.
Returns:
A boolean result.

not

public boolean not(boolean bool)
Not operator.

Parameters:
bool - The boolean argument.
Returns:
A boolean result.