| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.types.EnumeratedAttribute
org.apache.tools.ant.types.Comparison
public class Comparison
EnumeratedAttribute for generic comparisons. Accepts values "equal", "greater", "more", "less", "ne" (not equal), "ge" (greater or equal), "le" (less or equal), "eq" (equal), "gt" (greater), "lt" (less).
| Field Summary | |
|---|---|
| static Comparison | EQUALEqual Comparison. | 
| static Comparison | GREATERGreater Comparison. | 
| static Comparison | GREATER_EQUALGreater-or-Equal Comparison. | 
| static Comparison | LESSLess Comparison. | 
| static Comparison | LESS_EQUALLess-or-Equal Comparison. | 
| static Comparison | NOT_EQUALNot-Equal Comparison. | 
| Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute | 
|---|
| value | 
| Constructor Summary | |
|---|---|
| Comparison()Default constructor. | |
| Comparison(java.lang.String value)Construct a new Comparison with the specified value. | |
| Method Summary | |
|---|---|
|  boolean | evaluate(int comparisonResult)Evaluate a comparison result as from Comparator.compare() or Comparable.compareTo(). | 
|  java.lang.String[] | getValues()Return the possible values. | 
| Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute | 
|---|
| containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final Comparison EQUAL
public static final Comparison NOT_EQUAL
public static final Comparison GREATER
public static final Comparison LESS
public static final Comparison GREATER_EQUAL
public static final Comparison LESS_EQUAL
| Constructor Detail | 
|---|
public Comparison()
public Comparison(java.lang.String value)
value - the EnumeratedAttribute value.| Method Detail | 
|---|
public java.lang.String[] getValues()
getValues in class EnumeratedAttributepublic boolean evaluate(int comparisonResult)
comparisonResult - the result to evaluate.
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||