Class IfTrueAttribute

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

public class IfTrueAttribute extends BaseIfAttribute
Check if an attribute value is true or not.
Since:
Ant 1.9.1
  • Constructor Details

    • IfTrueAttribute

      public IfTrueAttribute()
  • Method Details

    • isEnabled

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