net.sf.fikin.ant.types
Class IfUnless

java.lang.Object
  extended by net.sf.fikin.ant.types.IfUnless
All Implemented Interfaces:
Type
Direct Known Subclasses:
Depends, FactoryType, Namespace, Parameter, XPathTask.Select, XsltTask.Factory

public abstract class IfUnless
extends java.lang.Object
implements Type

An Ant-type class providing with ability to set if="property" and/or unless="property" created on Dec 28, 2006

Since:
Version:
$Revision: 1.3 $
Author:
fiykov

Constructor Summary
IfUnless()
           
 
Method Summary
 void setIf(java.lang.String ifProperty)
          Set whether this param should be used.
 void setUnless(java.lang.String unlessProperty)
          Set whether this param should NOT be used.
 boolean shouldUse(org.apache.tools.ant.Task task)
          Ensures that the param passes the conditions placed on it with if and unless properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.fikin.ant.types.Type
check
 

Constructor Detail

IfUnless

public IfUnless()
Method Detail

setIf

public void setIf(java.lang.String ifProperty)
Set whether this param should be used. It will be used if the property has been set, otherwise it won't.

Parameters:
ifProperty - name of property
Ant Task Param Required:
false

setUnless

public void setUnless(java.lang.String unlessProperty)
Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used.

Parameters:
unlessProperty - name of property
Ant Task Param Required:
false

shouldUse

public boolean shouldUse(org.apache.tools.ant.Task task)
Ensures that the param passes the conditions placed on it with if and unless properties.



Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.