Examples of NamedElement


Examples of org.eclipse.uml2.NamedElement

        for (TreeIterator iterator = UmlUtilities.findModel(this.model).eAllContents(); iterator.hasNext();)
        {
            final EObject object = (EObject)iterator.next();
            if (object instanceof NamedElement)
            {
                final NamedElement element = (NamedElement)object;
                if (UmlUtilities.containsStereotype(
                        element,
                        name))
                {
                    elements.add(element);
View Full Code Here

Examples of org.eclipse.uml2.NamedElement

                    public boolean evaluate(final Object element)
                    {
                        boolean valid = false;
                        if (element instanceof NamedElement)
                        {
                            final NamedElement modelElement = (NamedElement)element;
                            final StringBuffer packageName =
                                new StringBuffer(
                                    UmlUtilities.getPackageName(
                                        modelElement,
                                        MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR,
                                        true));

                            // - if the model element is a package then the package name will be the name
                            // of the package with its package name
                            if (element instanceof org.eclipse.uml2.Package)
                            {
                                final String name = modelElement.getName();
                                if (StringUtils.isNotBlank(name))
                                {
                                    packageName.append(MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR);
                                    packageName.append(name);
                                }
View Full Code Here

Examples of org.eclipse.uml2.NamedElement

        AndroMDALogger.initialize();
    }

    public Collection getStereotypeNames(Object modelElement)
    {
        NamedElement element = (NamedElement)modelElement;
        Set stereotypes = element.getAppliedStereotypes();
        ArrayList names = new ArrayList();
        for (final Iterator iterator = stereotypes.iterator(); iterator.hasNext();)
        {
            Stereotype stereotype = (Stereotype)iterator.next();
            names.add(stereotype.getName());
View Full Code Here

Examples of org.eclipse.uml2.uml.NamedElement

  }

  protected static String getDiagramName(EObject diagramDomainElement) {
    String result = null;
    if (diagramDomainElement instanceof NamedElement) {
      NamedElement named = (NamedElement) diagramDomainElement;
      result = named.getQualifiedName();
      if (result == null || result.length() == 0) {
        result = named.getName();
      }
    }
    return result;
  }
View Full Code Here

Examples of org.eclipse.uml2.uml.NamedElement

  }

  protected static String getDiagramName(EObject diagramDomainElement) {
    String result = null;
    if (diagramDomainElement instanceof NamedElement) {
      NamedElement named = (NamedElement) diagramDomainElement;
      result = named.getQualifiedName();
      if (result == null || result.length() == 0) {
        result = named.getName();
      }
    }
    return result;
  }
View Full Code Here

Examples of org.eclipse.uml2.uml.NamedElement

    if(in_oRegion.getClientDependencies().size() == 1)
    {
      Dependency oDep = in_oRegion.getClientDependencies().get(0);
      if(oDep.getSuppliers().size() == 1)
      {
        NamedElement oElem = oDep.getSuppliers().get(0);
        if(oElem instanceof org.eclipse.uml2.uml.Class)
        {
          return (org.eclipse.uml2.uml.Class)oElem;
        }
      }
View Full Code Here

Examples of org.eclipse.uml2.uml.NamedElement

    if(in_oRegion.getClientDependencies().size() == 1)
    {
      Dependency oDep = in_oRegion.getClientDependencies().get(0);
      if(oDep.getSuppliers().size() == 1)
      {
        NamedElement oElem = oDep.getSuppliers().get(0);
        if(oElem instanceof org.eclipse.uml2.uml.Class)
        {
          return (org.eclipse.uml2.uml.Class)oElem;
        }
      }
View Full Code Here

Examples of org.eclipse.uml2.uml.NamedElement

        if(colMatchedEventParameters.contains(oParameterInstance.getParameter().getReference())) {
          in_oFormattedOutput.append(
              TCGParameterHelperClass.
              getFullParameterInstanceAttributeName(oParameterInstance));
          if(oParameterInstance.getParameter().getValueType() instanceof NamedElement) {
            NamedElement oVTN = (NamedElement)oParameterInstance.getParameter().getValueType();
            in_oFormattedOutput.append(getTypeNameAccessFunction(oVTN.getName()));
          }
        }
      }
    }
    else if(in_oAtomExp.getOclReference() instanceof LiteralExp) {
View Full Code Here

Examples of org.eclipse.uml2.uml.NamedElement

    List<?> children = p.getChildren();
    if(children!=null) {
      Object child = null;
      EditPart childEditPart = null;
      String childName = null;
      NamedElement childElement = null;
      Node childModel = null;
      IElementHandling childH = null;
      for(int i=0 ; i<children.size() ; i++) {
        child = children.get(i);
        if((child!=null)&&(child instanceof EditPart)) {
          childEditPart = (EditPart)child;
          if(childEditPart.getModel() instanceof Node) {
            childModel = (Node)childEditPart.getModel();
            if(
                childModel.getElement()
                instanceof NamedElement
            ) {
              childElement =
                (NamedElement)childModel.getElement();
              childName =
                name
                +
                Resources.getParameter(
                    "constants.editingFileNamePrefix"
                )
                + childElement.getName();
              childH = getElementHandler(childName);
              if(
                  (
                      childEditPart instanceof
                      IGraphicalEditPart
View Full Code Here

Examples of org.eclipse.uml2.uml.NamedElement

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated
   */
  public void setBase_NamedElement(NamedElement newBase_NamedElement) {
    NamedElement oldBase_NamedElement = base_NamedElement;
    base_NamedElement = newBase_NamedElement;
    if(eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, AllocationsPackage.ALLOCATED__BASE_NAMED_ELEMENT, oldBase_NamedElement, base_NamedElement));
  }
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.