org.specrunner.source.text
Class NamedSentences

java.lang.Object
  extended by org.specrunner.source.text.NamedSentences
All Implemented Interfaces:
IValidable
Direct Known Subclasses:
Feature, Scenario

public abstract class NamedSentences
extends Object
implements IValidable

Any object with a name as a group of sentences.

Author:
Thiago Santos

Field Summary
protected  String name
          Group name.
protected  List<Sentence> sentences
          Sentences set.
 
Constructor Summary
NamedSentences(String name)
          The object name.
 
Method Summary
 NamedSentences addSentence(Sentence sentence)
          Add a description.
 String getName()
          Get the name.
 List<Sentence> getSentences()
          Get the list of sentences.
 NamedSentences setName(String name)
          Set the name.
 NamedSentences setSentences(List<Sentence> sentences)
          Set the sentences list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.specrunner.source.text.IValidable
validate
 

Field Detail

name

protected String name
Group name.


sentences

protected List<Sentence> sentences
Sentences set.

Constructor Detail

NamedSentences

public NamedSentences(String name)
The object name.

Parameters:
name - The name.
Method Detail

getName

public String getName()
Get the name.

Returns:
The name.

setName

public NamedSentences setName(String name)
Set the name.

Parameters:
name - The name.
Returns:
The object itself.

getSentences

public List<Sentence> getSentences()
Get the list of sentences.

Returns:
The list.

setSentences

public NamedSentences setSentences(List<Sentence> sentences)
Set the sentences list.

Parameters:
sentences - The sentences.
Returns:
The object itself.

addSentence

public NamedSentences addSentence(Sentence sentence)
Add a description.

Parameters:
sentence - A sentence.
Returns:
The object itself.


Copyright © 2015. All rights reserved.