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 aStringbase text type for AntTaskimplementations. 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 voidaddText(String text)StringgetIf()StringgetUnless()booleanisActive(Project project)Method to determine if the "if" and "unless" tests have been satisfied.voidsetIf(String ifP)Sets the "if" condition to test on execution.voidsetUnless(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, theOptionalTextTypeshould be included.- Parameters:
ifP- The property condition to test on execution. If the value isnullno "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, theOptionalTextTypeshould not be included.- Parameters:
unlessP- The property condition to test on execution. If the value isnullno "unlessP" test will not be performed.
-
-