Package org.eclipse.uml2

Examples of org.eclipse.uml2.Property


        Collection behaviors = new ArrayList();
        behaviors.addAll(this.metaObject.getOwnedBehaviors()); // For MD11.5
        behaviors.addAll(this.metaObject.getOwnedStateMachines()); // For RSM
        for (final Iterator iterator = behaviors.iterator(); iterator.hasNext() && activityGraph == null;)
        {
            final Behavior modelElement = (Behavior)iterator.next();
            if (modelElement instanceof StateMachine)
            {
                activityGraph = (StateMachine)modelElement;
            }
        }
View Full Code Here


     */
    protected java.lang.String handleGetConcurrency()
    {
        String concurrency = null;

        final CallConcurrencyKind concurrencyKind = this.metaObject.getConcurrency();
        if (concurrencyKind == null || concurrencyKind.equals(CallConcurrencyKind.CONCURRENT_LITERAL))
        {
            concurrency = "concurrent";
        }
        else if (concurrencyKind.equals(CallConcurrencyKind.GUARDED_LITERAL))
        {
            concurrency = "guarded";
        }
        else// CallConcurrencyKindEnum.CCK_SEQUENTIAL
        {
View Full Code Here

     * @see org.andromda.metafacades.uml.FrontEndActivityGraph#getController()
     */
    protected java.lang.Object handleGetController()
    {
        // Take the frist class inside the FSM
        Class controller = null;
        for (Iterator it = ((StateMachine)this.metaObject).getOwnedMembers().iterator();
            it.hasNext() && controller == null;)
        {
            Object next = it.next();
            if (next instanceof Class)
View Full Code Here

        String commentString = "";
        EList comments = element.getOwnedComments();

        for (Iterator iterator = comments.iterator(); iterator.hasNext();)
        {
            final Comment comment = (Comment)iterator.next();
            if (!commentString.equalsIgnoreCase(""))
            {
                commentString = commentString + "\n\n";
            }
            commentString = commentString.concat(comment.getBody());
        }
        return cleanText(commentString);
    }
View Full Code Here

        final Collection comments = this.metaObject.getOwnedComments();
        if (comments != null && !comments.isEmpty())
        {
            for (final Iterator commentIterator = comments.iterator(); commentIterator.hasNext();)
            {
                final Comment comment = (Comment)commentIterator.next();
                String commentString = StringUtils.trimToEmpty(comment.getBody());

                if (StringUtils.isEmpty(commentString))
                {
                    commentString = StringUtils.trimToEmpty(comment.toString());
                }
                documentation.append(StringUtils.trimToEmpty(commentString));
                documentation.append(SystemUtils.LINE_SEPARATOR);
            }
        }
View Full Code Here

          constraints,
          new Predicate()
          {
            public boolean evaluate(final Object object)
            {
              Constraint constraint = (Constraint) object;
              return constraint.getConstrainedElements().contains(ModelElementFacadeLogicImpl.this.metaObject);
            }
          });
      return constraints;
    }
View Full Code Here

            dependencies,
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                  DirectedRelationship relation = (DirectedRelationship) object;
                  if(isAUml14Dependency(relation))
                  {
                    // we only check first, see dependency facade for more detail.
                    return ModelElementFacadeLogicImpl.this.metaObject.equals(relation.getTargets().get(0));
                  }
                  return false;
                }
            });
        return dependencies;
View Full Code Here

            dependencies,
            new Predicate()
            {
                public boolean evaluate(final Object object)
                {
                  DirectedRelationship relation = (DirectedRelationship) object;
                  if(isAUml14Dependency(relation))
                  {
                    // we only check first, see dependency facade for more detail.
                    return ModelElementFacadeLogicImpl.this.metaObject.equals(relation.getSources().get(0));
                  }
                  return false;
                }
            });
        return dependencies;
View Full Code Here

    /**
     * @see org.andromda.metafacades.uml.EventFacade#getTransition()
     */
    protected java.lang.Object handleGetTransition()
    {
        Element owner = this.metaObject.getOwner();
        if (owner instanceof Transition)
        {
            return owner;
        }
        return null;
View Full Code Here

    /**
     * @see org.andromda.metafacades.uml.EventFacade#getState()
     */
    protected java.lang.Object handleGetState()
    {
        Element owner = this.metaObject.getOwner();
        if (owner instanceof State)
        {
            return owner;
        }
        return null;
View Full Code Here

TOP

Related Classes of org.eclipse.uml2.Property

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.