Package org.eclipse.ocl.uml

Examples of org.eclipse.ocl.uml.PropertyCallExp


          return (VariableExp)in_oExpression;
    }
    // parameter is an abstract data type - in expression only an attribute is referenced
    else if(in_oExpression instanceof PropertyCallExp)
    {
      PropertyCallExp oPropExp = (PropertyCallExp)in_oExpression;
      return getVariableExp(oPropExp.getSource());
    }
    return null;
  }
View Full Code Here


        OCLExpression oExpression = OCLParser.parseCondition(
            sPostExpression, oOperation, Configuration.getOCLPostId());
       
        // resolve variables and build up map from variable to operation
        if(oExpression instanceof PropertyCallExp) {
          PropertyCallExp oPropCallExp = (PropertyCallExp)oExpression;
          put(oPropCallExp.getReferredProperty(), oOperation);
        }
      }
    }
  }
View Full Code Here

        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(classifyOCLExpression(oVarExp, in_sOCLTypeId));
      }
      else if(in_oExpression instanceof PropertyCallExp)
      {
        PropertyCallExp oPropExp = (PropertyCallExp)in_oExpression;
 
        TCGOCLAtom oAtom = GeneratedFactory.eINSTANCE.createTCGOCLAtom();
        // do not use the directly referenced property but the property closest to the given context
        oAtom.setElement((EObject)TestCaseGraphHelper.findMatchingPropertyInContext(
            oPropExp.getReferredProperty(), oContextClass));
        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(classifyOCLExpression(oPropExp, in_sOCLTypeId));
      }
      else if(in_oExpression instanceof OperationCallExp)
      {
View Full Code Here

        return oVarExp;
    }
    // parameter is an abstract data type - in expression only an attribute is referenced
    else if(in_oExpression instanceof PropertyCallExp)
    {
      PropertyCallExp oPropExp = (PropertyCallExp)in_oExpression;
      return getVariableExp(oPropExp.getSource());
    }
    return null;
  }
View Full Code Here

        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(classifyOCLExpression(oVarExp, in_sOCLTypeId));
      }
      else if(in_oExpression instanceof PropertyCallExp)
      {
        PropertyCallExp oPropExp = (PropertyCallExp)in_oExpression;
 
        TCGOCLAtom oAtom = GeneratedFactory.eINSTANCE.createTCGOCLAtom();
        // do not use the directly referenced property but the property closest to the given context
        oAtom.setElement((EObject)TestCaseGraphHelper.findMatchingPropertyInContext(
            oPropExp.getReferredProperty(), oContextClass));
        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(classifyOCLExpression(oPropExp, in_sOCLTypeId));
      }
      else if(in_oExpression instanceof OperationCallExp)
      {
View Full Code Here

TOP

Related Classes of org.eclipse.ocl.uml.PropertyCallExp

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.