Package ball.util.ant.types
Class OptionalTextType
- java.lang.Object
-
- ball.util.ant.types.OptionalTextType
-
- Direct Known Subclasses:
StringValueType
public class OptionalTextType extends Object
Class to provide aString
base text type for AntTask
implementations. Support "if" and "unless" property predicates.- Author:
- Allen D. Ball
-
-
Constructor Summary
Constructors Constructor Description OptionalTextType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addText(String text)
String
getIf()
String
getUnless()
boolean
isActive(Project project)
Method to determine if the "if" and "unless" tests have been satisfied.void
setIf(String ifP)
Sets the "if" condition to test on execution.void
setUnless(String unlessP)
Sets the "unless" condition to test on execution.
-
-
-
Constructor Detail
-
OptionalTextType
public OptionalTextType()
-
-
Method Detail
-
setIf
public void setIf(String ifP)
Sets the "if" condition to test on execution. If the named property is set, theOptionalTextType
should be included.- Parameters:
ifP
- The property condition to test on execution. If the value isnull
no "if" test will not be performed.
-
setUnless
public void setUnless(String unlessP)
Sets the "unless" condition to test on execution. If the named property is set, theOptionalTextType
should not be included.- Parameters:
unlessP
- The property condition to test on execution. If the value isnull
no "unlessP" test will not be performed.
-
-