All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.verifier.components.QualifiedIdentifierRestriction Maven / Gradle / Ivy

There is a newer version: 9.44.0.Final
Show newest version
package org.drools.verifier.components;


/**
 * 
 * @author Toni Rikkola
 */
public class QualifiedIdentifierRestriction extends Restriction  {

	private int variableId;
	private String variableName;
	private String variablePath;

	@Override
	public RestrictionType getRestrictionType() {
		return RestrictionType.QUALIFIED_IDENTIFIER;
	}

	public String getValueAsString() {
		return variablePath + "." + variableName;
	}

	public int getVariableId() {
		return variableId;
	}

	public void setVariableId(int variableId) {
		this.variableId = variableId;
	}

	public String getVariableName() {
		return variableName;
	}

	public void setVariableName(String variableName) {
		this.variableName = variableName;
	}

	public String getVariablePath() {
		return variablePath;
	}

	public void setVariablePath(String variablePath) {
		this.variablePath = variablePath;
	}

	@Override
	public String toString() {
		return "QualifiedIdentifierRestriction name: " + variableName
				+ variablePath;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy