antsnest.datastructure
Interface AntAttribute

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultAntAttribute

public interface AntAttribute
extends Serializable

Represents an attribute in an Ant build file

Author:
Chris Clohosy

Method Summary
 AntAttribute cloneAttribute()
          Clones this attribute
 String getName()
          Get the name of this attribute
 String getValue()
          Get the value of this attribute
 boolean isRequired()
          Whether this attribute is currently required
 void setName(String name)
          Set the name of this attribute
 void setRequired(boolean required)
          Set whether this attribute is required
 void setValue(String value)
          Set the value of this attribute
 

Method Detail

getName

String getName()
Get the name of this attribute

Returns:
a String, the name

setName

void setName(String name)
Set the name of this attribute

Parameters:
name - the new name

getValue

String getValue()
Get the value of this attribute

Returns:
a String, the value

setValue

void setValue(String value)
Set the value of this attribute

Parameters:
value - the new value

isRequired

boolean isRequired()
Whether this attribute is currently required

Returns:
a boolean, whether it's required

setRequired

void setRequired(boolean required)
Set whether this attribute is required

Parameters:
required - whether it's required

cloneAttribute

AntAttribute cloneAttribute()
Clones this attribute

Returns:
an AntAttribute, the clone