ise.antelope.tasks
Class IsLessThan

java.lang.Object
  extended by org.apache.tools.ant.taskdefs.condition.Equals
      extended by ise.antelope.tasks.IsLessThan
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.condition.Condition

public class IsLessThan
extends org.apache.tools.ant.taskdefs.condition.Equals
implements org.apache.tools.ant.taskdefs.condition.Condition

Extends Equals condition to test if the first argument is less than the second argument. Will deal with base 10 integer and decimal numbers, otherwise, treats arguments as Strings.


Constructor Summary
IsLessThan()
           
 
Method Summary
 boolean eval()
           
 void setArg1(java.lang.String a1)
           
 void setArg2(java.lang.String a2)
           
 void setCasesensitive(boolean b)
          Should the comparison be case sensitive?
 void setTrim(boolean b)
          Should we want to trim the arguments before comparing them?
 
Methods inherited from class org.apache.tools.ant.taskdefs.condition.Equals
setArg1, setArg2
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsLessThan

public IsLessThan()
Method Detail

setArg1

public void setArg1(java.lang.String a1)
Overrides:
setArg1 in class org.apache.tools.ant.taskdefs.condition.Equals

setArg2

public void setArg2(java.lang.String a2)
Overrides:
setArg2 in class org.apache.tools.ant.taskdefs.condition.Equals

setTrim

public void setTrim(boolean b)
Should we want to trim the arguments before comparing them?

Overrides:
setTrim in class org.apache.tools.ant.taskdefs.condition.Equals
Since:
Revision: 1.3, Ant 1.5

setCasesensitive

public void setCasesensitive(boolean b)
Should the comparison be case sensitive?

Overrides:
setCasesensitive in class org.apache.tools.ant.taskdefs.condition.Equals
Since:
Revision: 1.3, Ant 1.5

eval

public boolean eval()
             throws org.apache.tools.ant.BuildException
Specified by:
eval in interface org.apache.tools.ant.taskdefs.condition.Condition
Overrides:
eval in class org.apache.tools.ant.taskdefs.condition.Equals
Throws:
org.apache.tools.ant.BuildException