org.eclipse.gmt.umlx.eqvtr.cst.environment
Class QVTrTopLevelEnvironment
java.lang.Object
org.eclipse.ocl.AbstractEnvironment<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,org.eclipse.ocl.ecore.CallOperationAction,org.eclipse.ocl.ecore.SendSignalAction,org.eclipse.ocl.ecore.Constraint,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject>
org.eclipse.ocl.ecore.EcoreEnvironment
org.eclipse.gmt.umlx.cst.environment.CSTEnvironment
org.eclipse.gmt.umlx.eqvt.cst.environment.QVTEnvironment
org.eclipse.gmt.umlx.eqvtr.cst.environment.QVTrEnvironment
org.eclipse.gmt.umlx.eqvtr.cst.environment.QVTrTopLevelEnvironment
- All Implemented Interfaces:
- org.eclipse.ocl.Environment<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,org.eclipse.ocl.ecore.CallOperationAction,org.eclipse.ocl.ecore.SendSignalAction,org.eclipse.ocl.ecore.Constraint,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject>
- Direct Known Subclasses:
- QVTrFileEnvironment
public class QVTrTopLevelEnvironment
- extends QVTrEnvironment
Nested classes/interfaces inherited from interface org.eclipse.ocl.Environment |
org.eclipse.ocl.Environment.Registry |
Fields inherited from interface org.eclipse.ocl.Environment |
OCL_NAMESPACE_URI, RESULT_VARIABLE_NAME, SELF_VARIABLE_NAME |
Constructor Summary |
QVTrTopLevelEnvironment(org.eclipse.emf.ecore.EPackage.Registry reg,
org.eclipse.ocl.internal.cst.CSTNode cstNode)
|
Methods inherited from class org.eclipse.gmt.umlx.eqvt.cst.environment.QVTEnvironment |
checkFeatureCompatibility, getMapping, getMetaModelClassifier, getMetaModelClassifiers, getMetaModelContents, getMetaModelContents, getTypeResolver, getVariable, isAssignableTo, lookupClassifier, lookupImplicitSourceForOperation |
Methods inherited from class org.eclipse.gmt.umlx.cst.environment.CSTEnvironment |
formatName, formatPath, formatString, formatType, getCSTNode, getUMLReflection |
Methods inherited from class org.eclipse.ocl.ecore.EcoreEnvironment |
defineAttribute, defineOperation, findPackage, findPackage, getDefinition, getFactory, getOCLFactory, getOCLStandardLibrary, getStates, isInPostcondition, lookupPackage, setParent, undefine |
Methods inherited from class org.eclipse.ocl.AbstractEnvironment |
addElement, deleteElement, getAdditionalAttributes, getAdditionalOperations, getBodyCondition, getContextClassifier, getContextOperation, getContextPackage, getContextProperty, getDeriveConstraint, getInitConstraint, getSelfVariable, getVariables, isEmpty, lookup, lookupAssociationClassReference, lookupImplicitSourceForAssociationClass, lookupImplicitSourceForProperty, lookupImplicitSourceForSignal, lookupImplicitSourceForState, lookupLocal, lookupProperty, lookupSignal, lookupState, setBodyCondition, setDeriveConstraint, setInitConstraint, setSelfVariable |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
QVTrTopLevelEnvironment
public QVTrTopLevelEnvironment(org.eclipse.emf.ecore.EPackage.Registry reg,
org.eclipse.ocl.internal.cst.CSTNode cstNode)
createASTResource
public org.eclipse.emf.ecore.resource.Resource createASTResource(java.util.Collection<? extends org.eclipse.emf.ecore.EObject> asts,
org.eclipse.emf.common.util.URI uri)
createEnvironment
public QVTrTransformationEnvironment createEnvironment(TransformationCS transformationCS)
getEPackages
public java.util.List<org.eclipse.emf.ecore.EPackage> getEPackages()
getEnvironment
public QVTrTransformationEnvironment getEnvironment(TransformationCS transformationCS)
getErrorHandler
public org.eclipse.gmt.umlx.cst.parser.ErrorHandler getErrorHandler()
- Overrides:
getErrorHandler
in class org.eclipse.gmt.umlx.cst.environment.CSTEnvironment
getMetaModel
public java.util.List<org.eclipse.emf.ecore.EPackage> getMetaModel(java.lang.String metaModelId)
getRelationalTransformation
public org.eclipse.gmt.umlx.eqvtrelation.RelationalTransformation getRelationalTransformation(java.util.List<java.lang.String> pathName)
- Overrides:
getRelationalTransformation
in class QVTrEnvironment
getResourceSet
public org.eclipse.gmt.umlx.alien.adapter.AlienXMIResourceSet getResourceSet()
lookupImportedClass
public org.eclipse.emf.ecore.EClass lookupImportedClass(java.lang.String name)
lookupImportedClassifier
public org.eclipse.emf.ecore.EClassifier lookupImportedClassifier(java.lang.String name)
lookupImportedTransformation
public org.eclipse.gmt.umlx.eqvtbase.Transformation lookupImportedTransformation(java.lang.String name)
- Overrides:
lookupImportedTransformation
in class QVTEnvironment
lookupOperation
public org.eclipse.emf.ecore.EOperation lookupOperation(org.eclipse.emf.ecore.EClassifier owner,
java.lang.String name,
java.util.List<? extends org.eclipse.ocl.utilities.TypedElement<org.eclipse.emf.ecore.EClassifier>> args)
- Specified by:
lookupOperation
in interface org.eclipse.ocl.Environment<org.eclipse.emf.ecore.EPackage,org.eclipse.emf.ecore.EClassifier,org.eclipse.emf.ecore.EOperation,org.eclipse.emf.ecore.EStructuralFeature,org.eclipse.emf.ecore.EEnumLiteral,org.eclipse.emf.ecore.EParameter,org.eclipse.emf.ecore.EObject,org.eclipse.ocl.ecore.CallOperationAction,org.eclipse.ocl.ecore.SendSignalAction,org.eclipse.ocl.ecore.Constraint,org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EObject>
- Overrides:
lookupOperation
in class QVTEnvironment
putMetaModel
public void putMetaModel(IdentifierCS metaModelIdCS,
java.util.List<org.eclipse.emf.ecore.EPackage> ePackages)
saveCST
public void saveCST(org.eclipse.ocl.internal.cst.CSTNode cstNode,
org.eclipse.emf.common.util.URI uri)
throws java.io.IOException
- Throws:
java.io.IOException
semanticError
public void semanticError(org.eclipse.ocl.internal.cst.CSTNode cstNode,
java.lang.String rule,
java.lang.String errorMessage)
- Overrides:
semanticError
in class org.eclipse.gmt.umlx.cst.environment.CSTEnvironment
setErrorHandler
public void setErrorHandler(org.eclipse.gmt.umlx.cst.parser.ErrorHandler errorHandler)