jtl-eclipse-master/ASPT.resource.aspt/src-gen/ASPT/resource/aspt/grammar/AsptBooleanTerminal.java
/**
 * <copyright>
 * </copyright>
 *
 * 
 */
package ASPT.resource.aspt.grammar;

/**
 * A class to represent boolean terminals in a grammar.
 */
public class AsptBooleanTerminal extends ASPT.resource.aspt.grammar.AsptTerminal {
	
	private String trueLiteral;
	private String falseLiteral;
	
	public AsptBooleanTerminal(org.eclipse.emf.ecore.EStructuralFeature attribute, String trueLiteral, String falseLiteral, ASPT.resource.aspt.grammar.AsptCardinality cardinality, int mandatoryOccurrencesAfter) {
		super(attribute, cardinality, mandatoryOccurrencesAfter);
		assert attribute instanceof org.eclipse.emf.ecore.EAttribute;
		this.trueLiteral = trueLiteral;
		this.falseLiteral = falseLiteral;
	}
	
	public String getTrueLiteral() {
		return trueLiteral;
	}
	
	public String getFalseLiteral() {
		return falseLiteral;
	}
	
	public org.eclipse.emf.ecore.EAttribute getAttribute() {
		return (org.eclipse.emf.ecore.EAttribute) getFeature();
	}
	
}
