org.apache.tools.ant.attribute

Class BaseIfAttribute

    • Constructor Detail

      • BaseIfAttribute

        public BaseIfAttribute()
    • Method Detail

      • setPositive

        protected void setPositive(boolean positive)
        Set the positive flag.
        Parameters:
        positive - the value to use.
      • isPositive

        protected boolean isPositive()
        Get the positive flag.
        Returns:
        the flag.
      • convertResult

        protected boolean convertResult(boolean val)
        convert the result.
        Parameters:
        val - the result to convert
        Returns:
        val if positive or !val if not.
      • getParams

        protected java.util.Map getParams(UnknownElement el)
        Get all the attributes in the ant-attribute:param namespace and place them in a map.
        Parameters:
        el - the element this attribute is in.
        Returns:
        a map of attributes.