|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.taskdefs.condition.Contains
Is one string part of another string?
Constructor Summary | |
Contains()
|
Method Summary | |
boolean |
eval()
Is this condition true? |
void |
setCasesensitive(boolean b)
Whether to search ignoring case or not. |
void |
setString(java.lang.String string)
The string to search in. |
void |
setSubstring(java.lang.String subString)
The string to search for. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Contains()
Method Detail |
public void setString(java.lang.String string)
string
- the string to search inpublic void setSubstring(java.lang.String subString)
subString
- the string to search forpublic void setCasesensitive(boolean b)
b
- if true, ignore casepublic boolean eval() throws BuildException
Condition
eval
in interface Condition
BuildException
- if the attributes are not set correctly
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |