/**
* <copyright>
* </copyright>
*
*
*/
package org.feature.multi.perspective.mapping.viewmapping.resource.mtext.mopp;
/**
* A MtextContainedFeature represents a path element of a
* org.feature.multi.perspective.mapping.viewmapping.resource.mtext.grammar.MtextCo
* ntainmentTrace
*/
public class MtextContainedFeature {
/**
* 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 MtextContainedFeature(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());
}
}