Examples of TypedElement


Examples of OntoUML.TypedElement

        if (result == null) result = caseElement(type);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.TYPED_ELEMENT: {
        TypedElement typedElement = (TypedElement)theEObject;
        T result = caseTypedElement(typedElement);
        if (result == null) result = caseNamedElement(typedElement);
        if (result == null) result = caseElement(typedElement);
        if (result == null) result = defaultCase(theEObject);
        return result;
View Full Code Here

Examples of de.loskutov.bco.compare.TypedElement

            methodName = JdtUtils.getMethodSignature(javaElement);
            if(methodName != null){
                name += ":" + methodName;
            }
        }
        return new TypedElement(name, methodName, TypedElement.TYPE_BYTECODE, javaElement, modes);
    }
View Full Code Here

Examples of eu.admire.dispel.types.TypedElement

        if (result == null) result = caseCommentable(type);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case TypesPackage.TYPED_ELEMENT: {
        TypedElement typedElement = (TypedElement)theEObject;
        T result = caseTypedElement(typedElement);
        if (result == null) result = caseCommentable(typedElement);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
View Full Code Here

Examples of eu.admire.dispel.types.TypedElement

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setValue(TypedElement newValue) {
    TypedElement oldValue = value;
    value = newValue;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, MembersPackage.FIELD__VALUE, oldValue, value));
  }
View Full Code Here

Examples of eu.admire.dispel.types.TypedElement

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setValue(TypedElement newValue) {
    TypedElement oldValue = value;
    value = newValue;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, VariablesPackage.VARIABLE__VALUE, oldValue, value));
  }
View Full Code Here

Examples of fr.tm.elibel.smartqvt.qvt.emof.TypedElement

          if ((t.eContainer() != null)
              && (t.eContainer() instanceof NamedElement))
            description = ((NamedElement) t.eContainer()).getName();
        }
        if (elem instanceof TypedElement) {
          TypedElement typedElem = (TypedElement) elem;
          image_id = UiPlugin.getImage(UiPlugin.IMAGE_TYPE);
          if (typedElem.getType() != null) {
            if (typedElem.getType().getName() != null) {
              description = typedElem.getType().getName();
            }
            if (typedElem.getType() instanceof PrimitiveType)
              description = typedElem.getType().getClass()
                  .getSimpleName();
          }
        }
        if (elem instanceof ContextualProperty)
          image_id = UiPlugin.getImage(UiPlugin.IMAGE_PROPERTY);
View Full Code Here

Examples of org.eclipse.uml2.uml.TypedElement

    if(in_oExpression instanceof TCGOCLAtom)
    {
      TCGOCLAtom oAtom = (TCGOCLAtom)in_oExpression;
      // adding the reference from the atom to the containing transition
      if(oAtom.getElement() instanceof TypedElement) {
        TypedElement oTypedElement = (TypedElement)oAtom.getElement();
        Type oType = oTypedElement.getType();
        List<String> colBasicUnorderedTypeNames = new ArrayList<String>();
        colBasicUnorderedTypeNames.add("int");
        colBasicUnorderedTypeNames.add("integer");
        colBasicUnorderedTypeNames.add("double");
        for(String sTypeName : colBasicUnorderedTypeNames) {
View Full Code Here

Examples of org.eclipse.uml2.uml.TypedElement

          {
            in_oFormattedOutput.append(
                TCGParameterHelperClass.
                getFullParameterInstanceAttributeName(oParameterInstance));
            if(oParameterInstance.getParameter().getValueType() instanceof TypedElement) {
              TypedElement oVT = (TypedElement)oParameterInstance.getParameter().getValueType();
              in_oFormattedOutput.append(getTypeNameAccessFunction(oVT.getType().getName()));
            }
            bFoundMatchingParameterInstance = true;
          }
        }
        // found no actually used parameter instance for the property reference
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.TypedElement

            // Fields with this persistent modifier shouldn't stay in JDO Metadata
            if (field.persistenceStatus == SpeedoField.NONE)
                continue;

            TypedElement tElem = classJorm.getTypedElement(fieldName);
            if (tElem == null) {
                throw new SpeedoXMLError("Field '" + fieldName
                    + "' not defined in JORM metadata of the class '"
                    + clas.getFQName() + "'");
            }

            // for application identity key fields have to be compared
            if (field.primaryKey) {
                boolean found = false;
                for (Iterator it = pName.iterateField(); it.hasNext() && !found;) {
                    found = fieldName.equals(it.next());
                }
                if (!found) {
                    throw new SpeedoXMLError("Field '" + fieldName
                        + "' not defined in Class NameDef's Fields of the class '"
                        + clas.getFQName() + "'");
                }
            }

            if (tElem instanceof GenClassRef && field.jdoTuple == null)
                throw new SpeedoXMLError("field '" + fieldName + "' should be a tuple in JDO metadata of the class '" + clas.getFQName() + "'");
        }

        // Comparison from JORM
        for (Iterator jormfield = classJorm.getFields().iterator(); jormfield.hasNext();) {
            TypedElement te = (TypedElement) jormfield.next();
            String fieldName = te.getName();
            if (!clas.fields.containsKey(fieldName)
                    && !isContainerIdField(classJorm, te, clas))
                throw new SpeedoXMLError("Field '" + fieldName + "' of the class '"
                            + clas.getFQName() + "' is not defined in the '"
                            + clas.moPackage.xmlDescriptor.xmlFile
View Full Code Here

Examples of org.objectweb.jorm.metainfo.api.TypedElement

                SpeedoInheritedField sif = (SpeedoInheritedField) it.next();
        if (debug) {
          logger.log(BasicLevel.DEBUG, "Map the inherited field '"
            + sif.name + "'.");
        }
                TypedElement te = sif.inheritedField.moClass.jormclass.getTypedElement(sif.inheritedField.name);
                if (te == null) {
                    throw new SpeedoException("No inherited field '"
                            + sif.name + "' found from "
                            + sc.getSourceDesc());
                } else if (te instanceof PrimitiveElement) {
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.