Top Description Inners Constructors Methods
org.apache.tools.ant.attribute

public Class IfTrueAttribute

extends BaseIfAttribute
Class Inheritance
Known Direct Subclasses
org.apache.tools.ant.attribute.IfTrueAttribute.Unless
Imports
org.apache.tools.ant.Project, .UnknownElement

Check if an attribute value is true or not.
Since
Ant 1.9.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
IfTrueAttribute.Unless

The unless version

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
isEnabled(UnknownElement
the unknown element this attribute is in.
el
,
String
the value of the attribute.
value
)

Implements org.apache.tools.ant.attribute.EnableAttribute.isEnabled.

check if the attribute value is true or not is enabled.
Inherited from org.apache.tools.ant.attribute.BaseIfAttribute:
convertResultgetParamsisPositivesetPositive

Constructor Detail

IfTrueAttributeback to summary
public IfTrueAttribute()

Method Detail

isEnabledback to summary
public boolean isEnabled(UnknownElement el, String value)

Implements org.apache.tools.ant.attribute.EnableAttribute.isEnabled.

Doc from org.apache.tools.ant.attribute.EnableAttribute.isEnabled.

check if the attribute value is true or not is enabled.

Parameters
el:UnknownElement

the unknown element this attribute is in.

value:String

the value of the attribute.

Returns:boolean

true if the attribute enables the element, false otherwise.

org.apache.tools.ant.attribute back to summary

public Class IfTrueAttribute.Unless

extends IfTrueAttribute
Class Inheritance

The unless version

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.apache.tools.ant.attribute.IfTrueAttribute:
isEnabled

Constructor Detail

Unlessback to summary
public Unless()