| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.taskdefs.condition.Equals
public class Equals
Simple comparison condition.
| Constructor Summary | |
|---|---|
| Equals() | |
| Method Summary | |
|---|---|
|  boolean | eval()Is this condition true? | 
|  void | setArg1(java.lang.Object arg1)Set the first argument | 
|  void | setArg1(java.lang.String a1)Set the first string | 
|  void | setArg2(java.lang.Object arg2)Set the second argument | 
|  void | setArg2(java.lang.String a2)Set the second string | 
|  void | setCasesensitive(boolean b)Should the comparison be case sensitive? | 
|  void | setForcestring(boolean forcestring)Set whether to force string comparisons for non-equal, non-string objects. | 
|  void | setTrim(boolean b)Should we want to trim the arguments before comparing them? | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Equals()
| Method Detail | 
|---|
public void setArg1(java.lang.Object arg1)
arg1 - the first argument.public void setArg1(java.lang.String a1)
a1 - the first stringpublic void setArg2(java.lang.Object arg2)
arg2 - the second argument.public void setArg2(java.lang.String a2)
a2 - the second stringpublic void setTrim(boolean b)
b - if true trim the argumentspublic void setCasesensitive(boolean b)
b - if true use a case sensitive comparison (this is the
          default)public void setForcestring(boolean forcestring)
forcestring - value to set
public boolean eval()
             throws BuildException
Condition
eval in interface ConditionBuildException - if the attributes are not set correctly| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||