Package org.apache.tools.ant.attribute
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:
- java.lang.Cloneable,- EnableAttribute
 - Direct Known Subclasses:
- IfTrueAttribute.Unless
 
 public class IfTrueAttribute extends BaseIfAttribute Check if an attribute value is true or not.- Since:
- Ant 1.9.1
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classIfTrueAttribute.UnlessThe unless version
 - 
Field Summary- 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description IfTrueAttribute()
 - 
Method SummaryModifier and Type Method Description booleanisEnabled(UnknownElement el, java.lang.String value)check if the attribute value is true or not is enabled.- 
Methods inherited from class org.apache.tools.ant.attribute.BaseIfAttributeconvertResult, getParams, isPositive, setPositive
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
isEnabledpublic boolean isEnabled(UnknownElement el, java.lang.String value) 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.
 
 
- 
 
-