FileDocCategorySizeDatePackage
ExtraAttribute.javaAPI DocApache Ant 1.702388Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.optional.extension

ExtraAttribute

public class ExtraAttribute extends Object
Simple holder for extra attributes in main section of manifest.
todo
Refactor this and all the other parameter, sysproperty, property etc into a single class in framework

Fields Summary
private String
name
private String
value
Constructors Summary
Methods Summary
java.lang.StringgetName()
Retrieve name of parameter.

return
the name of parameter.

        return name;
    
java.lang.StringgetValue()
Retrieve the value of parameter.

return
the value of parameter.

        return value;
    
public voidsetName(java.lang.String name)
Set the name of the parameter.

param
name the name of parameter

        this.name = name;
    
public voidsetValue(java.lang.String value)
Set the value of the parameter.

param
value the parameter value

        this.value = value;
    
public voidvalidate()
Make sure that neither the name or the value is null.

throws
BuildException if the attribute is invalid.

        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);
        }