예제 #1
0
        public override Environment getEnvironmentWithoutParents()
        {
            if (getIsDirty() || this.environmentWithoutParents == null)
            {
                try {
                    this.environmentWithoutParents = EnvironmentFactoryManager.getInstance(this.getOclPackage()).getEnvironmentInstance();
                    this.environmentWithoutParents = this.environmentWithoutParents.addEnvironment(OclTypesDefinition.getEnvironment());

                    populateEnvironment(this.environmentWithoutParents);
                    isDirty = false;
                } catch (NameClashException e) {
                    Console.WriteLine(e.StackTrace);
                }
            }

            return(this.environmentWithoutParents);
        }
예제 #2
0
 private CoreClassifier getPrimitiveType(CoreModelElement element)
 {
     return((element is CoreClassifierImpl)
                 ? (CoreClassifier)OclTypesDefinition.getEnvironment().lookup(element.getName())
                 : null);
 }
예제 #3
0
 public static void setUp(TestContext testContext)
 {
     OclTypesDefinition.getEnvironment();
 }