/**
* <copyright>
* </copyright>
*
*
*/
package org.emftext.term.propositional.expression.resource.expression.mopp;
/**
* A ExpressionContainedFeature represents a path element of a
* org.emftext.term.propositional.expression.resource.expression.grammar.Expression
* ContainmentTrace
*/
public class ExpressionContainedFeature {
/**
* The class to which the feature points.
*/
private org.eclipse.emf.ecore.EClass containerClass;
/**
* The feature that points to the container class.
*/
private org.eclipse.emf.ecore.EStructuralFeature feature;
public ExpressionContainedFeature(org.eclipse.emf.ecore.EClass containerClass, org.eclipse.emf.ecore.EStructuralFeature feature) {
super();
this.containerClass = containerClass;
this.feature = feature;
}
public org.eclipse.emf.ecore.EClass getContainerClass() {
return containerClass;
}
public org.eclipse.emf.ecore.EStructuralFeature getFeature() {
return feature;
}
public String toString() {
return (feature == null ? "null" : feature.getName()) + "->" + (containerClass == null ? "null" : containerClass.getName());
}
}