Class IfBlankAttribute

All Implemented Interfaces:
Cloneable, EnableAttribute
Direct Known Subclasses:
IfBlankAttribute.Unless

public class IfBlankAttribute extends BaseIfAttribute
Check if an attribute is blank or not.
Since:
Ant 1.9.1
  • Constructor Details

    • IfBlankAttribute

      public IfBlankAttribute()
  • Method Details

    • isEnabled

      public boolean isEnabled(UnknownElement el, String value)
      check if the attribute value is blank 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.