Examples of EnumLiteralExp


Examples of org.eclipse.ocl.uml.EnumLiteralExp

            in_sOCLTypeId, oContextClass, oContextClass));
        oTCGOCLExpression = oTCGIfExp;
      }
      else if(in_oExpression instanceof EnumLiteralExp)
      {
        EnumLiteralExp oEnumExp = (EnumLiteralExp)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(
//            oEnumExp.getReferredEnumLiteral(), oContextClass));
        oAtom.setElement(oEnumExp.getReferredEnumLiteral());
        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(VariableClassification.INDEPENDENT);
      }
      else if(in_oExpression instanceof BooleanLiteralExp) {
        BooleanLiteralExp oBooleanExp = (BooleanLiteralExp)in_oExpression;
View Full Code Here

Examples of org.eclipse.ocl.uml.EnumLiteralExp

 
  @Override
  public String getValueString(LiteralExp in_oLiteralExp)
  {
    if(in_oLiteralExp instanceof EnumLiteralExp){
      EnumLiteralExp oExp = (EnumLiteralExp)in_oLiteralExp;
      return TestCaseGraphHelper.getFullEnumerationLiteralName(oExp.getReferredEnumLiteral());
    }
    else if(in_oLiteralExp instanceof IntegerLiteralExp) {
      IntegerLiteralExp oExp = (IntegerLiteralExp)in_oLiteralExp;
      return oExp.getIntegerSymbol().toString();     
    }
    else if(in_oLiteralExp instanceof BooleanLiteralExp) {
      BooleanLiteralExp oExp = (BooleanLiteralExp)in_oLiteralExp;
      return oExp.getBooleanSymbol().toString();     
    }
    return "";
  }
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.