Methods Summary |
---|
java.lang.String | getName()Retrieve name of parameter.
return name;
|
java.lang.String | getValue()Retrieve the value of parameter.
return value;
|
public void | setName(java.lang.String name)Set the name of the parameter.
this.name = name;
|
public void | setValue(java.lang.String value)Set the value of the parameter.
this.value = value;
|
public void | validate()Make sure that neither the name or the value
is null.
if (null == name) {
final String message = "Missing name from parameter.";
throw new BuildException(message);
} else if (null == value) {
final String message = "Missing value from parameter " + name + ".";
throw new BuildException(message);
}
|