Class IfSetAttribute

java.lang.Object
All Implemented Interfaces:
java.lang.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

  • Method Details

    • isEnabled

      public boolean isEnabled​(UnknownElement el, java.lang.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.