antsnest.antbeans
Class AntBeanProperty

java.lang.Object
  extended by antsnest.antbeans.AntBeanProperty
All Implemented Interfaces:
Serializable

public class AntBeanProperty
extends Object
implements Serializable

A property of an Ant Bean

Author:
Chris Clohosy
See Also:
Serialized Form

Constructor Summary
AntBeanProperty()
          Constructs a new property
 
Method Summary
 void addAnswer(String answer)
          Adds a potential question answer to this property
 void addPath(String path)
          Adds an XPath address to an attribute that needs to be set to value
 boolean equals(Object obj)
           
 List getAnswers()
          Gets the potential answers to the question
 List getPaths()
          Gets the XPath addresses this property refers to
 String getQuestion()
          Gets the question for this property
 String getValue()
          Gets the value of this property
 void setAnswers(List answers)
          Sets the potential answers to the question
 void setPaths(List paths)
          Sets the XPath addresses to the attributes that need to be set to value
 void setQuestion(String question)
          Sets the question for this property
 void setValue(String value)
          Sets the value of this property
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AntBeanProperty

public AntBeanProperty()
Constructs a new property

Method Detail

getValue

public String getValue()
Gets the value of this property

Returns:
a String, the value

setValue

public void setValue(String value)
Sets the value of this property

Parameters:
value - the new value

getQuestion

public String getQuestion()
Gets the question for this property

Returns:
a String, the question

setQuestion

public void setQuestion(String question)
Sets the question for this property

Parameters:
question - the new question

getAnswers

public List getAnswers()
Gets the potential answers to the question

Returns:
a List, the answers

setAnswers

public void setAnswers(List answers)
Sets the potential answers to the question

Parameters:
answers - the potential answers

addAnswer

public void addAnswer(String answer)
Adds a potential question answer to this property

Parameters:
answer - a potential answer to the question

getPaths

public List getPaths()
Gets the XPath addresses this property refers to

Returns:
a List, the addresses

setPaths

public void setPaths(List paths)
Sets the XPath addresses to the attributes that need to be set to value

Parameters:
paths - the paths

addPath

public void addPath(String path)
Adds an XPath address to an attribute that needs to be set to value

Parameters:
path - the path to add

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object