org.openxma.dsl.dom.DomDslPostProcessor Maven / Gradle / Ivy
package org.openxma.dsl.dom;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EPackage;
/**
* Java based extension for the dom dsl ecore post processor.
*/
public class DomDslPostProcessor {
public static EClassifier getType(EPackage ePackage) {
return ((EClass) ePackage.getEClassifier("Attribute")).getEStructuralFeature("type").getEType().getEPackage()
.getEClassifier("Type");
}
public static EClassifier getAttributePropertyType(EPackage ePackage) {
return ePackage.getEClassifier("AttributeProperty");
}
}