/*
* Demoiselle Framework
* Copyright (C) 2013 SERPRO
* ----------------------------------------------------------------------------
* This file is part of Demoiselle Framework.
*
* Demoiselle Framework is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License version 3
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License version 3
* along with this program; if not, see <http://www.gnu.org/licenses/>
* or write to the Free Software Foundation, Inc., 51 Franklin Street,
* Fifth Floor, Boston, MA 02110-1301, USA.
* ----------------------------------------------------------------------------
* Este arquivo é parte do Framework Demoiselle.
*
* O Framework Demoiselle é um software livre; você pode redistribuí-lo e/ou
* modificá-lo dentro dos termos da GNU LGPL versão 3 como publicada pela Fundação
* do Software Livre (FSF).
*
* Este programa é distribuído na esperança que possa ser útil, mas SEM NENHUMA
* GARANTIA; sem uma garantia implícita de ADEQUAÇÃO a qualquer MERCADO ou
* APLICAÇÃO EM PARTICULAR. Veja a Licença Pública Geral GNU/LGPL em português
* para maiores detalhes.
*
* Você deve ter recebido uma cópia da GNU LGPL versão 3, sob o título
* "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/>
* ou escreva para a Fundação do Software Livre (FSF) Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
*/
package br.gov.frameworkdemoiselle.behave.internal.parser;
import java.util.List;
/**
*
* @author SERPRO
*
*/
public class Scenario {
private String identification;
private String identificationWithoutParametersName;
private String declaration;
private List<String> sentences;
private Boolean converted; // Indica que um cenário teve suas sentenças
// reutilizadas já injetadas
private Boolean reusable = false;
public Scenario() {
}
public String getIdentification() {
return identification;
}
public void setIdentification(String identification) {
this.identification = identification;
}
public List<String> getSentences() {
return sentences;
}
public void setSentences(List<String> sentences) {
this.sentences = sentences;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((identification == null) ? 0 : identification.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Scenario other = (Scenario) obj;
if (identification == null) {
if (other.identification != null)
return false;
} else if (!identification.equals(other.identification))
return false;
return true;
}
public String getDeclaration() {
return declaration;
}
public void setDeclaration(String declaration) {
this.declaration = declaration;
}
public Boolean getConverted() {
return converted;
}
public void setConverted(Boolean converted) {
this.converted = converted;
}
public String getIdentificationWithoutParametersName() {
return identificationWithoutParametersName;
}
public void setIdentificationWithoutParametersName(String identificationWithoutParametersName) {
this.identificationWithoutParametersName = identificationWithoutParametersName;
}
public Boolean getReusable() {
return reusable;
}
public void setReusable(Boolean reusable) {
this.reusable = reusable;
}
}