Class IfSetAttribute

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

public class IfSetAttribute extends BaseIfAttribute
Check if an attribute value as a property is set or not
Since:
Ant 1.9.1
  • Constructor Details

    • IfSetAttribute

      public IfSetAttribute()
  • 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.