Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EStructuralFeature


      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();
View Full Code Here


      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();
View Full Code Here

      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();
View Full Code Here

      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();
View Full Code Here

   * @generated
   */
  private static ImageDescriptor getProvidedImageDescriptor(
      ENamedElement element) {
    if (element instanceof EStructuralFeature) {
      EStructuralFeature feature = ((EStructuralFeature) element);
      EClass eContainingClass = feature.getEContainingClass();
      EClassifier eType = feature.getEType();
      if (eContainingClass != null && !eContainingClass.isAbstract()) {
        element = eContainingClass;
      } else if (eType instanceof EClass
          && !((EClass) eType).isAbstract()) {
        element = eType;
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EList<Property> getAttribute() {
    EStructuralFeature eFeature = OntoUMLPackage.Literals.CLASSIFIER__ATTRIBUTE;
 
    if (attributeDeriveOCL == null) {
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.CLASSIFIER, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        attributeDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EList<Classifier> getGeneral() {
    EStructuralFeature eFeature = OntoUMLPackage.Literals.CLASSIFIER__GENERAL;
 
    if (generalDeriveOCL == null) {
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.CLASSIFIER, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        generalDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public EList<Generalization> getGeneralization() {
    EStructuralFeature eFeature = OntoUMLPackage.Literals.CLASSIFIER__GENERALIZATION;
 
    if (generalizationDeriveOCL == null) {
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.CLASSIFIER, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        generalizationDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public Classifier getSpecific() {
    if (specificDeriveOCL == null) {
      EStructuralFeature eFeature = (OntoUMLPackage.Literals.GENERALIZATION__SPECIFIC);
     
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.GENERALIZATION, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        specificDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public Classifier basicGetGeneral() {
    if (generalDeriveOCL == null) {
      EStructuralFeature eFeature = (OntoUMLPackage.Literals.GENERALIZATION__GENERAL);
     
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.GENERALIZATION, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        generalDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
View Full Code Here

TOP

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

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.