org.apache.ddlutils.task
Class Parameter

java.lang.Object
  extended byorg.apache.ddlutils.task.Parameter
Direct Known Subclasses:
TableSpecificParameter

public class Parameter
extends Object

A parameter which consists of a name-value pair and an optional list of platforms for which the parameter is applicable.

Version:
$Revision: 231306 $
Author:
Thomas Dudziak

Constructor Summary
Parameter()
           
 
Method Summary
 String getName()
          Returns the name.
 String getValue()
          Returns the value.
 boolean isForPlatform(String platformName)
          Determines whether this parameter is applicable for the indicated platform.
 void setName(String name)
          Sets the name.
 void setPlatforms(String platforms)
          Sets the platforms - a comma-separated list of platform names - for which this parameter shall be used.
 void setValue(String value)
          Sets the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter()
Method Detail

getName

public String getName()
Returns the name.

Returns:
The name

setName

public void setName(String name)
Sets the name.

Parameters:
name - The name

getValue

public String getValue()
Returns the value.

Returns:
The value

setValue

public void setValue(String value)
Sets the value.

Parameters:
value - The value

setPlatforms

public void setPlatforms(String platforms)
Sets the platforms - a comma-separated list of platform names - for which this parameter shall be used.

Parameters:
platforms - The platforms

isForPlatform

public boolean isForPlatform(String platformName)
Determines whether this parameter is applicable for the indicated platform.

Parameters:
platformName - The platform name
Returns:
true if this parameter is defined for the platform


Copyright © 2005 Apache Software Foundation. All Rights Reserved.