Examples of EAnnotation


Examples of org.eclipse.emf.ecore.EAnnotation

  public boolean subInstanceType(Element x) {
    if (subInstanceTypeBodyOCL == null) {
      EOperation eOperation = OntoUMLPackage.Literals.ELEMENT.getEOperations().get(3);
      OCL.Helper helper = OCL_ENV.createOCLHelper();
      helper.setOperationContext(OntoUMLPackage.Literals.ELEMENT, eOperation);
      EAnnotation ocl = eOperation.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String body = ocl.getDetails().get("body");
     
      try {
        subInstanceTypeBodyOCL = helper.createQuery(body);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  public boolean subMetaTypeKind() {
    if (subMetaTypeKindBodyOCL == null) {
      EOperation eOperation = OntoUMLPackage.Literals.ELEMENT.getEOperations().get(4);
      OCL.Helper helper = OCL_ENV.createOCLHelper();
      helper.setOperationContext(OntoUMLPackage.Literals.ELEMENT, eOperation);
      EAnnotation ocl = eOperation.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String body = ocl.getDetails().get("body");
     
      try {
        subMetaTypeKindBodyOCL = helper.createQuery(body);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  public boolean subMetaTypeCollective() {
    if (subMetaTypeCollectiveBodyOCL == null) {
      EOperation eOperation = OntoUMLPackage.Literals.ELEMENT.getEOperations().get(5);
      OCL.Helper helper = OCL_ENV.createOCLHelper();
      helper.setOperationContext(OntoUMLPackage.Literals.ELEMENT, eOperation);
      EAnnotation ocl = eOperation.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String body = ocl.getDetails().get("body");
     
      try {
        subMetaTypeCollectiveBodyOCL = helper.createQuery(body);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  public boolean subMetaTypeQuantity() {
    if (subMetaTypeQuantityBodyOCL == null) {
      EOperation eOperation = OntoUMLPackage.Literals.ELEMENT.getEOperations().get(6);
      OCL.Helper helper = OCL_ENV.createOCLHelper();
      helper.setOperationContext(OntoUMLPackage.Literals.ELEMENT, eOperation);
      EAnnotation ocl = eOperation.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String body = ocl.getDetails().get("body");
     
      try {
        subMetaTypeQuantityBodyOCL = helper.createQuery(body);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  public boolean hasFunctionalComplexesInstances() {
    if (hasFunctionalComplexesInstancesBodyOCL == null) {
      EOperation eOperation = OntoUMLPackage.Literals.ELEMENT.getEOperations().get(7);
      OCL.Helper helper = OCL_ENV.createOCLHelper();
      helper.setOperationContext(OntoUMLPackage.Literals.ELEMENT, eOperation);
      EAnnotation ocl = eOperation.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String body = ocl.getDetails().get("body");
     
      try {
        hasFunctionalComplexesInstancesBodyOCL = helper.createQuery(body);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  public boolean hasCollectivesInstances() {
    if (hasCollectivesInstancesBodyOCL == null) {
      EOperation eOperation = OntoUMLPackage.Literals.ELEMENT.getEOperations().get(8);
      OCL.Helper helper = OCL_ENV.createOCLHelper();
      helper.setOperationContext(OntoUMLPackage.Literals.ELEMENT, eOperation);
      EAnnotation ocl = eOperation.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String body = ocl.getDetails().get("body");
     
      try {
        hasCollectivesInstancesBodyOCL = helper.createQuery(body);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  public boolean hasQuantitiesInstances() {
    if (hasQuantitiesInstancesBodyOCL == null) {
      EOperation eOperation = OntoUMLPackage.Literals.ELEMENT.getEOperations().get(9);
      OCL.Helper helper = OCL_ENV.createOCLHelper();
      helper.setOperationContext(OntoUMLPackage.Literals.ELEMENT, eOperation);
      EAnnotation ocl = eOperation.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String body = ocl.getDetails().get("body");
     
      try {
        hasQuantitiesInstancesBodyOCL = helper.createQuery(body);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  /**
   * @generated
   */
  protected void addDestroyChildNodesCommand(CompoundCommand cmd) {
    View view = (View) getHost().getModel();
    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
    if (annotation != null) {
      return;
    }
    for (Iterator it = view.getChildren().iterator(); it.hasNext();) {
      Node node = (Node) it.next();
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

 
    if (relatedElementDeriveOCL == null) {
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.RELATIONSHIP, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        relatedElementDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  /**
   * @generated
   */
  protected void addDestroyChildNodesCommand(CompoundCommand cmd) {
    View view = (View) getHost().getModel();
    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
    if (annotation != null) {
      return;
    }
    for (Iterator it = view.getChildren().iterator(); it.hasNext();) {
      Node node = (Node) it.next();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.