Package org.eclipse.emf.ecore

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


 
    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) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

 
    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) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

 
    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) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

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

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

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

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

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

  /**
   * Returns the listing of alias names as specified by the sdo:aliasNames
   * property.
   */
  public List getAliasNames(EModelElement modelElement) {
    EAnnotation eAnnotation = getAnnotation(modelElement, false);
    List list = null;
    if (eAnnotation != null) {
      String aliasNames = (String)eAnnotation.getDetails().get("aliasNames");
      if (aliasNames != null) {
        list = new ArrayList();
        StringTokenizer st = new StringTokenizer(aliasNames, " ");
        while (st.hasMoreTokens()) {
          String t = st.nextToken();
View Full Code Here

TOP

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

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.