Examples of BooleanLiteralExp


Examples of org.eclipse.ocl.uml.BooleanLiteralExp

    else if(tcgOCLAtomConstraint.getElement() instanceof RealLiteralExp){
      RealLiteralExp oRealExp = (RealLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oRealExp.getRealSymbol());
    }
    else if(tcgOCLAtomConstraint.getElement() instanceof BooleanLiteralExp){
      BooleanLiteralExp oBoolExp = (BooleanLiteralExp) tcgOCLAtomConstraint.getElement();
      if(oBoolExp.getBooleanSymbol().booleanValue())
        result.append("1");
      else
        result.append("0");
    }
    else if (tcgOCLAtomConstraint.getElement() instanceof IntegerLiteralExp) {
View Full Code Here

Examples of org.eclipse.ocl.uml.BooleanLiteralExp

        oAtom.setElement(oEnumExp.getReferredEnumLiteral());
        oTCGOCLExpression = oAtom;
        oTCGOCLExpression.setClassification(VariableClassification.INDEPENDENT);
      }
      else if(in_oExpression instanceof BooleanLiteralExp) {
        BooleanLiteralExp oBooleanExp = (BooleanLiteralExp)in_oExpression;
        TCGOCLAtom oAtom = GeneratedFactory.eINSTANCE.createTCGOCLAtom();
//        for(Boolean oBoolean : PrimitiveTypeEObjectReferenceHelper.sm_colEObjectToBoolean.keySet())
//        {
//          if(oBoolean.equals(oBooleanExp.getBooleanSymbol())) {
//            oAtom.setElement(PrimitiveTypeEObjectReferenceHelper.sm_colEObjectToBoolean.get(oBoolean));
View Full Code Here

Examples of org.eclipse.ocl.uml.BooleanLiteralExp

    else if(tcgOCLAtomConstraint.getElement() instanceof RealLiteralExp){
      RealLiteralExp oRealExp = (RealLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oRealExp.getRealSymbol());
    }
    else if(tcgOCLAtomConstraint.getElement() instanceof BooleanLiteralExp){
      BooleanLiteralExp oBoolExp = (BooleanLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oBoolExp.getBooleanSymbol());
    }
    else if (tcgOCLAtomConstraint.getElement() instanceof IntegerLiteralExp) {
      IntegerLiteralExp oIntExp = (IntegerLiteralExp) tcgOCLAtomConstraint.getElement();
      result.append(oIntExp.getIntegerSymbol());
    }     
View Full Code Here

Examples of org.eclipse.ocl.uml.BooleanLiteralExp

      if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return Boolean.parseBoolean(oRef.getDefaultValueLiteral());
      }
      if (oPropExp.getElement() instanceof BooleanLiteralExp) {
        BooleanLiteralExp oBLExp = (BooleanLiteralExp) oPropExp.getElement();
        return oBLExp.getBooleanSymbol();
      }
    }
    else if (in_oTCGOCLExpression instanceof TCGOCLOperation) {
      TCGOCLOperation oOpExp = (TCGOCLOperation) in_oTCGOCLExpression;
      if (oOpExp.getOperationName().equals("and")) {
View Full Code Here

Examples of org.eclipse.ocl.uml.BooleanLiteralExp

      if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return Boolean.parseBoolean(oRef.getDefaultValueLiteral());
      }
      if (oPropExp.getElement() instanceof BooleanLiteralExp) {
        BooleanLiteralExp oBLExp = (BooleanLiteralExp) oPropExp.getElement();
        return oBLExp.getBooleanSymbol();
      }
    }
    else if (in_oTCGOCLExpression instanceof TCGOCLOperation) {
      TCGOCLOperation oOpExp = (TCGOCLOperation) in_oTCGOCLExpression;
      if (oOpExp.getOperationName().compareTo("and") == 0) {
View Full Code Here

Examples of org.eclipse.ocl.uml.BooleanLiteralExp

    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.