public abstract class Card extends StoryboardItem
container, listener
Constructor and Description |
---|
Card() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addHTMLToContainer(org.concordion.api.Element listItem)
Add HTML to the storyboard to display the card details
|
protected abstract void |
captureData()
Write the data to a file
|
protected void |
cleanupData()
Override this method to clean up data belonging to this card - likely to be used in
conjunction with the shouldAppend() method
|
java.lang.String |
getDescription() |
protected java.lang.String |
getFileName(java.lang.String specificationName,
java.lang.String cardNumber,
java.lang.String fileExtension)
Gets a unique file name for data that is to be stored alongside a card
|
void |
setDescription(java.lang.String description) |
protected boolean |
shouldAppend(boolean hasFailure)
Override this method to update whether the card should be added to the storyboard or not.
|
getItemIndex, getResource, getResult, getTarget, getTitle, setContainer, setResult, setStoryboardListener, setTitle
protected abstract void captureData()
protected abstract void addHTMLToContainer(org.concordion.api.Element listItem)
listItem
- The card elementprotected java.lang.String getFileName(java.lang.String specificationName, java.lang.String cardNumber, java.lang.String fileExtension)
specificationName
- The name of the specificationcardNumber
- Index of the card in the listfileExtension
- Extension of the filepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
protected boolean shouldAppend(boolean hasFailure)
hasFailure
- True if the test failed, or if within a section break, the section was marked as failureprotected void cleanupData()