net.sf.fikin.ant.types
Class Parameter

java.lang.Object
  extended by net.sf.fikin.ant.types.IfUnless
      extended by net.sf.fikin.ant.types.Parameter
All Implemented Interfaces:
Type
Direct Known Subclasses:
XsltParam

public class Parameter
extends IfUnless

An extended version of Ant's Parameter type with ability to set if="property" and unless="property" created on Dec 28, 2006

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

Field Summary
protected  java.lang.String name
           
protected  java.lang.String type
           
protected  java.lang.String value
           
 
Constructor Summary
Parameter()
           
 
Method Summary
 void check(org.apache.tools.ant.Task task)
          test that name has been set
 java.lang.String getName()
          get the name
 java.lang.String getType()
          type of the parameter
 java.lang.String getValue()
          value of the parameter
 void setName(java.lang.String name)
          name of the parameter
 void setType(java.lang.String type)
          type of the parameter
 void setValue(java.lang.String value)
          value of the parameter
 
Methods inherited from class net.sf.fikin.ant.types.IfUnless
setIf, setUnless, shouldUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

type

protected java.lang.String type

value

protected java.lang.String value
Constructor Detail

Parameter

public Parameter()
Method Detail

setName

public final void setName(java.lang.String name)
name of the parameter

Parameters:
name - of the parameter
Ant Task Param Required:
true

setType

public final void setType(java.lang.String type)
type of the parameter

Parameters:
type - of the parameter
Ant Task Param Required:
false

setValue

public final void setValue(java.lang.String value)
value of the parameter

Parameters:
value - of the parameter
Ant Task Param Required:
false

getName

public final java.lang.String getName()
get the name

Returns:
name of the parameter

getType

public final java.lang.String getType()
type of the parameter

Returns:
type of the parameter

getValue

public final java.lang.String getValue()
value of the parameter

Returns:
value of the parameter

check

public void check(org.apache.tools.ant.Task task)
           throws org.apache.tools.ant.BuildException
test that name has been set

Parameters:
task - is enclosing ant task
Throws:
org.apache.tools.ant.BuildException


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