Package org.apache.tools.ant.attribute
Class BaseIfAttribute
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.attribute.BaseIfAttribute
- All Implemented Interfaces:
- Cloneable,- EnableAttribute
- Direct Known Subclasses:
- IfBlankAttribute,- IfSetAttribute,- IfTrueAttribute
An abstract class for if/unless attributes.
 This contains a boolean flag to specify whether this is an
 if or unless attribute.
- Since:
- Ant 1.9.1
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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 org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tools.ant.attribute.EnableAttributeisEnabled
- 
Constructor Details- 
BaseIfAttributepublic BaseIfAttribute()
 
- 
- 
Method Details- 
setPositiveprotected void setPositive(boolean positive) Set the positive flag.- Parameters:
- positive- the value to use.
 
- 
isPositiveprotected boolean isPositive()Get the positive flag.- Returns:
- the flag.
 
- 
convertResultprotected boolean convertResult(boolean val) convert the result.- Parameters:
- val- the result to convert
- Returns:
- val if positive or !val if not.
 
- 
getParamsGet all the attributes in the ant-attribute:param namespace and place them in a map.- Parameters:
- el- the element this attribute is in.
- Returns:
- a map of attributes.
 
 
-