net.sf.antcontrib.logic.condition

Class IsGreaterThan

public class IsGreaterThan extends Equals

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

Developed for use with Antelope, migrated to ant-contrib Oct 2003.

Version: $Revision: 1.4 $

Author: Dale Anson, danson@germane-software.com

Method Summary
booleaneval()
voidsetArg1(String a1)
voidsetArg2(String a2)
voidsetCasesensitive(boolean b)
Should the comparison be case sensitive?
voidsetTrim(boolean b)
Should we want to trim the arguments before comparing them?

Method Detail

eval

public boolean eval()

setArg1

public void setArg1(String a1)

setArg2

public void setArg2(String a2)

setCasesensitive

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

Since: Revision: 1.3, Ant 1.5

setTrim

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

Since: Revision: 1.3, Ant 1.5