Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EObject


      final List<FeatureBasedDiagnostic> diagnostics = IterableExtensions.<FeatureBasedDiagnostic>toList(_filter);
      String _join = IterableExtensions.join(diagnostics, ", ");
      int _size = diagnostics.size();
      Assert.assertEquals(_join, 2, _size);
      FeatureBasedDiagnostic _get = diagnostics.get(0);
      EObject _sourceEObject = _get.getSourceEObject();
      FeatureBasedDiagnostic _get_1 = diagnostics.get(0);
      EStructuralFeature _feature = _get_1.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      FeatureBasedDiagnostic _get_2 = diagnostics.get(0);
      int _index = _get_2.getIndex();
      Object _get_3 = ((List<?>) _eGet).get(_index);
      Assert.assertEquals("cocoa", _get_3);
      FeatureBasedDiagnostic _get_4 = diagnostics.get(1);
      EObject _sourceEObject_1 = _get_4.getSourceEObject();
      FeatureBasedDiagnostic _get_5 = diagnostics.get(1);
      EStructuralFeature _feature_1 = _get_5.getFeature();
      Object _eGet_1 = _sourceEObject_1.eGet(_feature_1);
      FeatureBasedDiagnostic _get_6 = diagnostics.get(1);
      int _index_1 = _get_6.getIndex();
      Object _get_7 = ((List<?>) _eGet_1).get(_index_1);
      Assert.assertEquals("cocoa", _get_7);
    } catch (Throwable _e) {
View Full Code Here


      EList<Location> _locations = targetPlatform.getLocations();
      Location _head_1 = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head_1.getIus();
      IU _head_2 = IterableExtensions.<IU>head(_ius);
      FeatureBasedDiagnostic _get = diagnostics.get(0);
      EObject _sourceEObject = _get.getSourceEObject();
      FeatureBasedDiagnostic _get_1 = diagnostics.get(0);
      EStructuralFeature _feature = _get_1.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      Object _get_2 = ((List<?>) _eGet).get(0);
      Assert.assertEquals(_head_2, _get_2);
      FeatureBasedDiagnostic _get_3 = diagnostics.get(0);
      int _severity = _get_3.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity);
      EList<Location> _locations_1 = targetPlatform.getLocations();
      Location _get_4 = _locations_1.get(1);
      EList<IU> _ius_1 = _get_4.getIus();
      IU _head_3 = IterableExtensions.<IU>head(_ius_1);
      FeatureBasedDiagnostic _get_5 = diagnostics.get(1);
      EObject _sourceEObject_1 = _get_5.getSourceEObject();
      FeatureBasedDiagnostic _get_6 = diagnostics.get(1);
      EStructuralFeature _feature_1 = _get_6.getFeature();
      Object _eGet_1 = _sourceEObject_1.eGet(_feature_1);
      Object _get_7 = ((List<?>) _eGet_1).get(0);
      Assert.assertEquals(_head_3, _get_7);
      FeatureBasedDiagnostic _get_8 = diagnostics.get(1);
      int _severity_1 = _get_8.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity_1);
View Full Code Here

      EList<Location> _locations = targetPlatform.getLocations();
      Location _head_1 = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head_1.getIus();
      IU _head_2 = IterableExtensions.<IU>head(_ius);
      FeatureBasedDiagnostic _get = diagnostics.get(0);
      EObject _sourceEObject = _get.getSourceEObject();
      FeatureBasedDiagnostic _get_1 = diagnostics.get(0);
      EStructuralFeature _feature = _get_1.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      Object _get_2 = ((List<?>) _eGet).get(0);
      Assert.assertEquals(_head_2, _get_2);
      FeatureBasedDiagnostic _get_3 = diagnostics.get(0);
      int _severity = _get_3.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity);
      EList<Location> _locations_1 = targetPlatform.getLocations();
      Location _head_3 = IterableExtensions.<Location>head(_locations_1);
      EList<IU> _ius_1 = _head_3.getIus();
      IU _head_4 = IterableExtensions.<IU>head(_ius_1);
      FeatureBasedDiagnostic _get_4 = diagnostics.get(1);
      EObject _sourceEObject_1 = _get_4.getSourceEObject();
      FeatureBasedDiagnostic _get_5 = diagnostics.get(1);
      EStructuralFeature _feature_1 = _get_5.getFeature();
      Object _eGet_1 = _sourceEObject_1.eGet(_feature_1);
      Object _get_6 = ((List<?>) _eGet_1).get(0);
      Assert.assertEquals(_head_4, _get_6);
      FeatureBasedDiagnostic _get_7 = diagnostics.get(1);
      int _severity_1 = _get_7.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity_1);
View Full Code Here

      EList<Location> _locations = targetPlatform.getLocations();
      Location _head_1 = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head_1.getIus();
      IU _head_2 = IterableExtensions.<IU>head(_ius);
      FeatureBasedDiagnostic _get = diagnostics.get(0);
      EObject _sourceEObject = _get.getSourceEObject();
      FeatureBasedDiagnostic _get_1 = diagnostics.get(0);
      EStructuralFeature _feature = _get_1.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      Object _get_2 = ((List<?>) _eGet).get(0);
      Assert.assertEquals(_head_2, _get_2);
      FeatureBasedDiagnostic _get_3 = diagnostics.get(0);
      int _severity = _get_3.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity);
      EList<Location> _locations_1 = targetPlatform.getLocations();
      Location _get_4 = _locations_1.get(1);
      EList<IU> _ius_1 = _get_4.getIus();
      IU _head_3 = IterableExtensions.<IU>head(_ius_1);
      FeatureBasedDiagnostic _get_5 = diagnostics.get(1);
      EObject _sourceEObject_1 = _get_5.getSourceEObject();
      FeatureBasedDiagnostic _get_6 = diagnostics.get(1);
      EStructuralFeature _feature_1 = _get_6.getFeature();
      Object _eGet_1 = _sourceEObject_1.eGet(_feature_1);
      Object _get_7 = ((List<?>) _eGet_1).get(0);
      Assert.assertEquals(_head_3, _get_7);
      FeatureBasedDiagnostic _get_8 = diagnostics.get(1);
      int _severity_1 = _get_8.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity_1);
View Full Code Here

      EList<Location> _locations = tpa.getLocations();
      Location _head_1 = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head_1.getIus();
      IU _head_2 = IterableExtensions.<IU>head(_ius);
      FeatureBasedDiagnostic _get = diagnostics.get(0);
      EObject _sourceEObject = _get.getSourceEObject();
      FeatureBasedDiagnostic _get_1 = diagnostics.get(0);
      EStructuralFeature _feature = _get_1.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      Object _get_2 = ((List<?>) _eGet).get(0);
      Assert.assertEquals(_head_2, _get_2);
      FeatureBasedDiagnostic _get_3 = diagnostics.get(0);
      int _severity = _get_3.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity);
View Full Code Here

      EList<Location> _locations = tpa.getLocations();
      Location _head_1 = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = _head_1.getIus();
      IU _head_2 = IterableExtensions.<IU>head(_ius);
      FeatureBasedDiagnostic _get = diagnostics.get(0);
      EObject _sourceEObject = _get.getSourceEObject();
      FeatureBasedDiagnostic _get_1 = diagnostics.get(0);
      EStructuralFeature _feature = _get_1.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      Object _get_2 = ((List<?>) _eGet).get(0);
      Assert.assertEquals(_head_2, _get_2);
      FeatureBasedDiagnostic _get_3 = diagnostics.get(0);
      int _severity = _get_3.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity);
View Full Code Here

      AssertableDiagnostics _diagnose = tester.diagnose();
      Iterable<Diagnostic> _allDiagnostics = _diagnose.getAllDiagnostics();
      Iterable<AbstractValidationDiagnostic> _filter = Iterables.<AbstractValidationDiagnostic>filter(_allDiagnostics, AbstractValidationDiagnostic.class);
      for (final AbstractValidationDiagnostic diag : _filter) {
        {
          EObject _sourceEObject = diag.getSourceEObject();
          Assert.assertTrue((_sourceEObject instanceof Location));
          EObject _sourceEObject_1 = diag.getSourceEObject();
          String _uri = ((Location) _sourceEObject_1).getUri();
          Assert.assertEquals("my location URI", _uri);
          String _issueCode = diag.getIssueCode();
          Assert.assertEquals(TargetPlatformValidator.CHECK__OPTIONS_SELF_EXCLUDING_ALL_ENV_REQUIRED, _issueCode);
        }
View Full Code Here

      AssertableDiagnostics _diagnose = tester.diagnose();
      Iterable<Diagnostic> _allDiagnostics = _diagnose.getAllDiagnostics();
      Iterable<AbstractValidationDiagnostic> _filter = Iterables.<AbstractValidationDiagnostic>filter(_allDiagnostics, AbstractValidationDiagnostic.class);
      for (final AbstractValidationDiagnostic diag : _filter) {
        {
          EObject _sourceEObject = diag.getSourceEObject();
          Assert.assertTrue((_sourceEObject instanceof Options));
          String _issueCode = diag.getIssueCode();
          Assert.assertEquals(TargetPlatformValidator.CHECK__OPTIONS_SELF_EXCLUDING_ALL_ENV_REQUIRED, _issueCode);
        }
      }
View Full Code Here

      int _size = IterableExtensions.size(diag);
      Assert.assertEquals(2, _size);
      Iterable<AbstractValidationDiagnostic> _filter = Iterables.<AbstractValidationDiagnostic>filter(diag, AbstractValidationDiagnostic.class);
      final Procedure1<AbstractValidationDiagnostic> _function = new Procedure1<AbstractValidationDiagnostic>() {
        public void apply(final AbstractValidationDiagnostic it) {
          EObject _sourceEObject = it.getSourceEObject();
          Assert.assertTrue((_sourceEObject instanceof Options));
          String _issueCode = it.getIssueCode();
          Assert.assertEquals(TargetPlatformValidator.CHECK__OPTIONS_SELF_EXCLUDING_ALL_ENV_REQUIRED, _issueCode);
        }
      };
View Full Code Here

      return Collections.EMPTY_LIST;
    }
    Collection result = new LinkedList();
    for (Iterator links = container.getInstanciarElement().iterator(); links
        .hasNext();) {
      EObject linkObject = (EObject) links.next();
      if (false == linkObject instanceof OntoUML.Derivation) {
        continue;
      }
      OntoUML.Derivation link = (OntoUML.Derivation) linkObject;
      if (OntoUML.diagram.edit.parts.DerivationEditPart.VISUAL_ID != OntoUML.diagram.part.OntoUMLVisualIDRegistry
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.EObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.