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

public Class IfBlankAttribute

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

Check if an attribute is blank or not.
Since
Ant 1.9.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
IfBlankAttribute.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 blank or not is enabled.
Inherited from org.apache.tools.ant.attribute.BaseIfAttribute:
convertResultgetParamsisPositivesetPositive

Constructor Detail

IfBlankAttributeback to summary
public IfBlankAttribute()

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 blank 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 IfBlankAttribute.Unless

extends IfBlankAttribute
Class Inheritance

The unless version

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

Unlessback to summary
public Unless()