/** * <copyright> * </copyright> * * */ package robot.resource.robot.grammar; /** * A class to represent boolean terminals in a grammar. */ public class RobotBooleanTerminal extends robot.resource.robot.grammar.RobotTerminal { private String trueLiteral; private String falseLiteral; public RobotBooleanTerminal(org.eclipse.emf.ecore.EStructuralFeature attribute, String trueLiteral, String falseLiteral, robot.resource.robot.grammar.RobotCardinality 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(); } }