|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jameleon.bean.FunctionalPoint
public class FunctionalPoint
This class represents a Functional Point in a TestCase. This is currently used only for test case documentation generation. Please see the docs on the instance variables for a full understanding of what a FunctionalPoint is
Field Summary | |
---|---|
protected ArrayList |
applications
The applications supported by this functional point |
protected Map |
attributes
A list of attributes that this functional point uses |
protected String |
author
The name of the developer that wrote this FunctionalPoint |
protected String |
className
The name of the class that this tag represents. |
protected String |
description
A short summary about how this functional can be used |
protected String |
functionId
The description of how the functional point is being used |
protected String |
shortDescription
The first line of the description. |
protected ArrayList |
steps
A list of steps that this FunctionalPoint uses during execution |
protected ArrayList |
tagNames
The tags to be used in the test case macro language |
protected String |
type
The type of the functional point. |
Constructor Summary | |
---|---|
FunctionalPoint()
Default constructor only used to initialize variables |
Method Summary | |
---|---|
void |
addApplication(String applicationName)
Adds an application to the list of applications supported by this |
void |
addAttribute(Attribute attr)
Adds an Attribute to the list of attributes used by this |
void |
addStep(String step)
Adds a step to the list of steps required to execute this |
void |
addTagName(String tagName)
Adds a tag name - a name used in the test case macro language Functional points can have multiple tag names |
Object |
clone()
|
FunctionalPoint |
cloneFP()
|
boolean |
equals(Object obj)
|
ArrayList |
getApplications()
Gets the applications supported by this functional point |
Attribute |
getAttribute(String name)
Gets a particular attribute. |
Map |
getAttributes()
|
String |
getAuthor()
|
String |
getClassName()
|
String |
getDefaultTagName()
|
String |
getDescription()
|
String |
getFunctionId()
|
String |
getShortDescription()
Gets the first line of the javadoc class comments. |
List |
getSteps()
|
List |
getTagNames()
Gets all tag names registered for this functional point Functional points can have multiple tag names |
String |
getType()
|
int |
hashCode()
|
void |
setAttributes(Map attributes)
Sets A list of attributes that this functional point uses |
void |
setAuthor(String author)
Sets the name of the developer that wrote this FunctionalPoint |
void |
setClassName(String className)
Sets the name of the class that represents this FunctionalPoint |
void |
setDescription(String description)
Sets a short summary about how this functional can be used |
void |
setFunctionId(String functionId)
Sets a short summary about how this functional point is used |
void |
setShortDescription(String shortDescription)
Sets the first line of the description |
void |
setSteps(ArrayList steps)
Sets a list of steps that this FunctionalPoint uses during execution |
void |
setType(String type)
Sets he type of the functional point |
String |
toString()
|
String |
toXML()
Implement this method the same way the toString method would be implemented, except
the object's information should be in a valid XML format. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String author
FunctionalPoint
protected ArrayList applications
protected String className
protected ArrayList tagNames
protected String description
protected String shortDescription
protected String type
action
,
validation
, navigation
protected String functionId
protected Map attributes
protected ArrayList steps
Constructor Detail |
---|
public FunctionalPoint()
Method Detail |
---|
public void addAttribute(Attribute attr)
Attribute
to the list of attributes used by this
attr
- - An attribute used by this FunctionalPoint
public void addApplication(String applicationName)
applicationName
- - The name of the application supportedpublic void addStep(String step)
step
- - A simple instruction to execute this functional pointpublic Attribute getAttribute(String name)
public ArrayList getApplications()
public String getAuthor()
FunctionalPoint
public void setAuthor(String author)
FunctionalPoint
author
- - The name of the developer that wrote this FunctionalPoint
public String getClassName()
FunctionalPoint
public void setClassName(String className)
FunctionalPoint
className
- - the name of the class that represents this FunctionalPoint
public String getDefaultTagName()
public List getTagNames()
public void addTagName(String tagName)
tagName
- - The tag name to be used in the test case macro languagepublic String getDescription()
public void setDescription(String description)
description
- - A short summary about how this functional can be usedpublic String getShortDescription()
public void setShortDescription(String shortDescription)
shortDescription
- - the first line on the javadoc class comment.public String getFunctionId()
public void setFunctionId(String functionId)
functionId
- - A short summary about how this functional point is usedpublic String getType() throws JameleonException
JameleonException
- if the type is set and it isn't action, validation, nor navigation
public void setType(String type)
type
- - Valid values are action
, validation
, navigation
public Map getAttributes()
public void setAttributes(Map attributes)
attributes
- A list of attributes that this functional point usespublic List getSteps()
public void setSteps(ArrayList steps)
steps
- - A list of steps that this FunctionalPoint uses during executionpublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public FunctionalPoint cloneFP()
public String toXML()
XMLable
toString
method would be implemented, except
the object's information should be in a valid XML format.
toXML
in interface XMLable
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |