Package org.eclipse.emf.ecore.impl

Examples of org.eclipse.emf.ecore.impl.EReferenceImpl


          return Double.valueOf(sValue).doubleValue();
        }
      }
      if(oPropExp.getElement() instanceof EReferenceImpl)
      {
        EReferenceImpl oRef = (EReferenceImpl)oPropExp.getElement();
        return Double.valueOf(oRef.getDefaultValueLiteral());
      }
    }
    else if(in_oTCGOCLExpression instanceof TCGOCLOperation)
    {
      TCGOCLOperation oOpExp = (TCGOCLOperation)in_oTCGOCLExpression;
View Full Code Here


          String sValue = oProp.getDefaultValue().stringValue();
          return Double.valueOf(sValue).doubleValue();
        }
      }
      if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return Double.valueOf(oRef.getDefaultValueLiteral());
      }
      if (oPropExp.getElement() instanceof RealLiteralExp) {
        RealLiteralExp oRealExp = (RealLiteralExp) oPropExp.getElement();
        return oRealExp.getRealSymbol();
      }
View Full Code Here

          String sValue = oProp.getDefaultValue().stringValue();
          return Double.valueOf(sValue).doubleValue();
        }
      }
      if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return Double.valueOf(oRef.getDefaultValueLiteral());
      }
      if (oPropExp.getElement() instanceof RealLiteralExp) {
        RealLiteralExp oRealExp = (RealLiteralExp) oPropExp.getElement();
        return oRealExp.getRealSymbol();
      }
View Full Code Here

          String sValue = oProp.getDefaultValue().stringValue();
          return Integer.valueOf(sValue).intValue();
        }
      }
      if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return Integer.valueOf(oRef.getDefaultValueLiteral());
      }
      if (oPropExp.getElement() instanceof IntegerLiteralExp) {
        IntegerLiteralExp oIntExp = (IntegerLiteralExp) oPropExp.getElement();
        return oIntExp.getIntegerSymbol();
      }     
View Full Code Here

          String sValue = oProp.getDefaultValue().stringValue();
          return Boolean.parseBoolean(sValue);
        }
      }
      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();
      }
View Full Code Here

          String sValue = oProp.getDefaultValue().stringValue();
          return Boolean.parseBoolean(sValue);
        }
      }
      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();
      }
View Full Code Here

          String sValue = oProp.getDefaultValue().stringValue();
          return sValue;
        }
      }
      else if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return oRef.getDefaultValueLiteral();
      }
      else if (oPropExp.getElement() instanceof EnumerationLiteral) {
        EnumerationLiteral oEnum = (EnumerationLiteral)oPropExp.getElement();
        return oEnum.getName();
      }
View Full Code Here

          String sValue = oProp.getDefaultValue().stringValue();
          return sValue;
        }
      }
      else if (oPropExp.getElement() instanceof EReferenceImpl) {
        EReferenceImpl oRef = (EReferenceImpl) oPropExp.getElement();
        return oRef.getDefaultValueLiteral();
      }
      else if (oPropExp.getElement() instanceof EnumerationLiteral) {
        EnumerationLiteral oEnum = (EnumerationLiteral)oPropExp.getElement();
        return oEnum.getName();
      }
View Full Code Here

      if (bo instanceof Flow) {
        deleteFlowFromModel((Flow) bo);
      } else if (bo instanceof AbstractNode) {
        deleteBOFromModel((AbstractNode)bo);
      } else if (bo instanceof EReferenceImpl) {
        EReferenceImpl eimpl = (EReferenceImpl) bo;
        EClassifier eType = eimpl.getEType();
        if (eType instanceof AbstractNode) {
          AbstractNode target = (AbstractNode) eType;
          Activator.getLogger().debug("==== trying to zap the target: " + target);
          EObject eContainer = eimpl.eContainer();
          if (eContainer instanceof AbstractNode) {
            AbstractNode source = (AbstractNode) eContainer;
            Activator.getLogger().debug("==== trying to source: " + source + " -> target: " + target);
            source.removeConnection(target);
          }
View Full Code Here

      if (bo instanceof Flow) {
        deleteFlowFromModel((Flow) bo);
      } else if (bo instanceof AbstractNode) {
        deleteBOFromModel((AbstractNode)bo);
      } else if (bo instanceof EReferenceImpl) {
        EReferenceImpl eimpl = (EReferenceImpl) bo;
        EClassifier eType = eimpl.getEType();
        if (eType instanceof AbstractNode) {
          AbstractNode target = (AbstractNode) eType;
          Activator.getLogger().debug("==== trying to zap the target: " + target);
          EObject eContainer = eimpl.eContainer();
          if (eContainer instanceof AbstractNode) {
            AbstractNode source = (AbstractNode) eContainer;
            Activator.getLogger().debug("==== trying to source: " + source + " -> target: " + target);
            source.removeConnection(target);
          }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.ecore.impl.EReferenceImpl

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.