Class IfTrueAttribute
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.attribute.BaseIfAttribute
org.apache.tools.ant.attribute.IfTrueAttribute
- All Implemented Interfaces:
Cloneable, EnableAttribute
- Direct Known Subclasses:
IfTrueAttribute.Unless
Check if an attribute value is true or not.
- Since:
- Ant 1.9.1
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnabled(UnknownElement el, String value) check if the attribute value is true or not is enabled.Methods inherited from class BaseIfAttribute
convertResult, getParams, isPositive, setPositiveModifier and TypeMethodDescriptionprotected booleanconvertResult(boolean val) convert the result.Get all the attributes in the ant-attribute:param namespace and place them in a map.protected booleanGet the positive flag.protected voidsetPositive(boolean positive) Set the positive flag.Methods inherited from class ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectModifier and TypeMethodDescriptionclone()Returns the description of the current action.Returns the file/location where this task was defined.Returns the project to which this component belongs.voidLogs a message with the default (INFO) priority.voidLogs a message with the given priority.voidsetDescription(String desc) Sets a description of the current action.voidsetLocation(Location location) Sets the file/location where this task was defined.voidsetProject(Project project) Sets the project object of this component.
-
Constructor Details
-
IfTrueAttribute
public IfTrueAttribute()
-
-
Method Details
-
isEnabled
check if the attribute value is true or not is enabled.- Parameters:
el- the unknown element this attribute is in.value- the value of the attribute.- Returns:
- true if the attribute enables the element, false otherwise.
-