Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EObject


      final List<AbstractValidationDiagnostic> diagnotics = IterableExtensions.<AbstractValidationDiagnostic>toList(_filter);
      int _size = diagnotics.size();
      Assert.assertEquals(1, _size);
      final Function1<AbstractValidationDiagnostic, Boolean> _function = new Function1<AbstractValidationDiagnostic, Boolean>() {
        public Boolean apply(final AbstractValidationDiagnostic it) {
          EObject _sourceEObject = it.getSourceEObject();
          return Boolean.valueOf((_sourceEObject instanceof IU));
        }
      };
      boolean _forall = IterableExtensions.<AbstractValidationDiagnostic>forall(diagnotics, _function);
      Assert.assertTrue(_forall);
      final Procedure1<AbstractValidationDiagnostic> _function_1 = new Procedure1<AbstractValidationDiagnostic>() {
        public void apply(final AbstractValidationDiagnostic it) {
          String _issueCode = it.getIssueCode();
          Assert.assertEquals(TargetPlatformValidator.CHECK__IU_IN_LOCATION, _issueCode);
          EObject _sourceEObject = it.getSourceEObject();
          String _iD = ((IU) _sourceEObject).getID();
          Assert.assertEquals("org.iu2", _iD);
        }
      };
      IterableExtensions.<AbstractValidationDiagnostic>forEach(diagnotics, _function_1);
View Full Code Here


      final List<AbstractValidationDiagnostic> diagnotics = IterableExtensions.<AbstractValidationDiagnostic>toList(_filter);
      int _size = diagnotics.size();
      Assert.assertEquals(3, _size);
      final Function1<AbstractValidationDiagnostic, Boolean> _function_1 = new Function1<AbstractValidationDiagnostic, Boolean>() {
        public Boolean apply(final AbstractValidationDiagnostic it) {
          EObject _sourceEObject = it.getSourceEObject();
          return Boolean.valueOf((_sourceEObject instanceof IU));
        }
      };
      boolean _forall = IterableExtensions.<AbstractValidationDiagnostic>forall(diagnotics, _function_1);
      Assert.assertTrue(_forall);
View Full Code Here

      final List<AbstractValidationDiagnostic> diagnotics = IterableExtensions.<AbstractValidationDiagnostic>toList(_filter);
      int _size = diagnotics.size();
      Assert.assertEquals(1, _size);
      final Function1<AbstractValidationDiagnostic, Boolean> _function_1 = new Function1<AbstractValidationDiagnostic, Boolean>() {
        public Boolean apply(final AbstractValidationDiagnostic it) {
          EObject _sourceEObject = it.getSourceEObject();
          return Boolean.valueOf((_sourceEObject instanceof IU));
        }
      };
      boolean _forall = IterableExtensions.<AbstractValidationDiagnostic>forall(diagnotics, _function_1);
      Assert.assertTrue(_forall);
      final Procedure1<AbstractValidationDiagnostic> _function_2 = new Procedure1<AbstractValidationDiagnostic>() {
        public void apply(final AbstractValidationDiagnostic it) {
          String _issueCode = it.getIssueCode();
          Assert.assertEquals(TargetPlatformValidator.CHECK__IU_IN_LOCATION, _issueCode);
          EObject _sourceEObject = it.getSourceEObject();
          String _iD = ((IU) _sourceEObject).getID();
          Assert.assertEquals("org.iu1", _iD);
        }
      };
      IterableExtensions.<AbstractValidationDiagnostic>forEach(diagnotics, _function_2);
View Full Code Here

      Assert.assertEquals(1, _size);
      final Procedure1<AbstractValidationDiagnostic> _function_1 = new Procedure1<AbstractValidationDiagnostic>() {
        public void apply(final AbstractValidationDiagnostic it) {
          String _issueCode = it.getIssueCode();
          Assert.assertEquals(TargetPlatformValidator.CHECK__LOCATION_URI, _issueCode);
          EObject _sourceEObject = it.getSourceEObject();
          String _uri = ((Location) _sourceEObject).getUri();
          Assert.assertEquals("badLocation", _uri);
        }
      };
      IterableExtensions.<AbstractValidationDiagnostic>forEach(diagnotics, _function_1);
View Full Code Here

          Assert.assertEquals(TargetPlatformValidator.CHECK__ENVIRONMENT_UNICITY, _issueCode);
          int _severity = it.getSeverity();
          Assert.assertEquals(Diagnostic.WARNING, _severity);
          EList<TargetContent> _contents = targetPlatform.getContents();
          TargetContent _get = _contents.get(1);
          EObject _sourceEObject = it.getSourceEObject();
          EStructuralFeature _feature = it.getFeature();
          Object _eGet = _sourceEObject.eGet(_feature);
          int _index = it.getIndex();
          Object _get_1 = ((List<?>) _eGet).get(_index);
          Assert.assertEquals(_get, _get_1);
        }
      };
View Full Code Here

      Assert.assertEquals(TargetPlatformValidator.CHECK__ENVIRONMENT_UNICITY, _issueCode);
      int _severity = it.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity);
      EList<TargetContent> _contents = targetPlatform.getContents();
      TargetContent _get = _contents.get(1);
      EObject _sourceEObject = it.getSourceEObject();
      EStructuralFeature _feature = it.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      int _index = it.getIndex();
      Object _get_1 = ((List<?>) _eGet).get(_index);
      Assert.assertEquals(_get, _get_1);
      FeatureBasedDiagnostic _get_2 = diagnostics.get(1);
      it = _get_2;
      String _issueCode_1 = it.getIssueCode();
      Assert.assertEquals(TargetPlatformValidator.CHECK__ENVIRONMENT_UNICITY, _issueCode_1);
      int _severity_1 = it.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity_1);
      EList<TargetContent> _contents_1 = targetPlatform.getContents();
      TargetContent _get_3 = _contents_1.get(3);
      EObject _sourceEObject_1 = it.getSourceEObject();
      EStructuralFeature _feature_1 = it.getFeature();
      Object _eGet_1 = _sourceEObject_1.eGet(_feature_1);
      int _index_1 = it.getIndex();
      Object _get_4 = ((List<?>) _eGet_1).get(_index_1);
      Assert.assertEquals(_get_3, _get_4);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
View Full Code Here

          Assert.assertEquals(TargetPlatformValidator.CHECK__OPTIONS_UNICITY, _issueCode);
          int _severity = it.getSeverity();
          Assert.assertEquals(Diagnostic.WARNING, _severity);
          EList<TargetContent> _contents = targetPlatform.getContents();
          TargetContent _get = _contents.get(1);
          EObject _sourceEObject = it.getSourceEObject();
          EStructuralFeature _feature = it.getFeature();
          Object _eGet = _sourceEObject.eGet(_feature);
          int _index = it.getIndex();
          Object _get_1 = ((List<?>) _eGet).get(_index);
          Assert.assertEquals(_get, _get_1);
        }
      };
View Full Code Here

      Assert.assertEquals(TargetPlatformValidator.CHECK__OPTIONS_UNICITY, _issueCode);
      int _severity = it.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity);
      EList<TargetContent> _contents = targetPlatform.getContents();
      TargetContent _get = _contents.get(1);
      EObject _sourceEObject = it.getSourceEObject();
      EStructuralFeature _feature = it.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      int _index = it.getIndex();
      Object _get_1 = ((List<?>) _eGet).get(_index);
      Assert.assertEquals(_get, _get_1);
      FeatureBasedDiagnostic _get_2 = diagnostics.get(1);
      it = _get_2;
      String _issueCode_1 = it.getIssueCode();
      Assert.assertEquals(TargetPlatformValidator.CHECK__OPTIONS_UNICITY, _issueCode_1);
      int _severity_1 = it.getSeverity();
      Assert.assertEquals(Diagnostic.WARNING, _severity_1);
      EList<TargetContent> _contents_1 = targetPlatform.getContents();
      TargetContent _get_3 = _contents_1.get(3);
      EObject _sourceEObject_1 = it.getSourceEObject();
      EStructuralFeature _feature_1 = it.getFeature();
      Object _eGet_1 = _sourceEObject_1.eGet(_feature_1);
      int _index_1 = it.getIndex();
      Object _get_4 = ((List<?>) _eGet_1).get(_index_1);
      Assert.assertEquals(_get_3, _get_4);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
View Full Code Here

      int _severity = it.getSeverity();
      Assert.assertEquals(Diagnostic.ERROR, _severity);
      Environment _environment = targetPlatform.getEnvironment();
      EList<String> _env = _environment.getEnv();
      String _get = _env.get(1);
      EObject _sourceEObject = it.getSourceEObject();
      EStructuralFeature _feature = it.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      int _index = it.getIndex();
      Object _get_1 = ((List<?>) _eGet).get(_index);
      Assert.assertEquals(_get, _get_1);
      FeatureBasedDiagnostic it_1 = diagnostics.get(1);
      String _issueCode_1 = it_1.getIssueCode();
      Assert.assertEquals(TargetPlatformValidator.CHECK__NO_DUPLICATE_ENVIRONMENT_OPTIONS, _issueCode_1);
      int _severity_1 = it_1.getSeverity();
      Assert.assertEquals(Diagnostic.ERROR, _severity_1);
      Environment _environment_1 = targetPlatform.getEnvironment();
      EList<String> _env_1 = _environment_1.getEnv();
      String _get_2 = _env_1.get(2);
      EObject _sourceEObject_1 = it_1.getSourceEObject();
      EStructuralFeature _feature_1 = it_1.getFeature();
      Object _eGet_1 = _sourceEObject_1.eGet(_feature_1);
      int _index_1 = it_1.getIndex();
      Object _get_3 = ((List<?>) _eGet_1).get(_index_1);
      Assert.assertEquals(_get_2, _get_3);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
View Full Code Here

      Assert.assertEquals(Diagnostic.ERROR, _severity);
      EList<TargetContent> _contents = targetPlatform.getContents();
      TargetContent _get = _contents.get(0);
      EList<String> _env = ((Environment) _get).getEnv();
      String _get_1 = _env.get(1);
      EObject _sourceEObject = it.getSourceEObject();
      EStructuralFeature _feature = it.getFeature();
      Object _eGet = _sourceEObject.eGet(_feature);
      int _index = it.getIndex();
      Object _get_2 = ((List<?>) _eGet).get(_index);
      Assert.assertEquals(_get_1, _get_2);
      FeatureBasedDiagnostic it_1 = diagnostics.get(1);
      String _issueCode_1 = it_1.getIssueCode();
      Assert.assertEquals(TargetPlatformValidator.CHECK__NO_DUPLICATE_ENVIRONMENT_OPTIONS, _issueCode_1);
      int _severity_1 = it_1.getSeverity();
      Assert.assertEquals(Diagnostic.ERROR, _severity_1);
      EList<TargetContent> _contents_1 = targetPlatform.getContents();
      TargetContent _get_3 = _contents_1.get(1);
      EList<String> _env_1 = ((Environment) _get_3).getEnv();
      String _head = IterableExtensions.<String>head(_env_1);
      EObject _sourceEObject_1 = it_1.getSourceEObject();
      EStructuralFeature _feature_1 = it_1.getFeature();
      Object _eGet_1 = _sourceEObject_1.eGet(_feature_1);
      int _index_1 = it_1.getIndex();
      Object _get_4 = ((List<?>) _eGet_1).get(_index_1);
      Assert.assertEquals(_head, _get_4);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
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.