Package org.eclipse.uml2.uml

Examples of org.eclipse.uml2.uml.Activity


    {
        // TODO: Be sure it works with RSM / MD11.5
        Collection templateParameters = new ArrayList();
        if (this.metaObject instanceof TemplateableElement)
        {
            TemplateableElement templateableElement = (TemplateableElement)this.metaObject;
            TemplateSignature templateSignature = templateableElement.getOwnedTemplateSignature();
            if (templateSignature != null)
            {
                templateParameters.addAll(templateSignature.getParameters());
            }
        }
View Full Code Here


                    type,
                    MetafacadeConstants.NAMESPACE_SCOPE_OPERATOR,
                    true);
            if (modelElement instanceof Type)
            {
                Type element = (Type)modelElement;
                final Property property = umlClass.createOwnedAttribute(
                        name,
                        element,
                        1,
                        1);
View Full Code Here

        }
        boolean isEntityAssociation = true;
        for (Iterator ends = ((Association)this.metaObject).getMemberEnds().iterator(); ends.hasNext();)
        {
            final Property prop = (Property)ends.next();
            final Type propertyType = prop.getType();
            if (propertyType == null || !UmlUtilities.containsStereotype(
                    propertyType,
                    UMLProfile.STEREOTYPE_ENTITY))
            {
                isEntityAssociation = false;
View Full Code Here

        if (tagValue != null)
        {
            valueAsString = tagValue.toString();
            if (tagValue instanceof ValueSpecification)
            {
                ValueSpecification literal = (ValueSpecification)tagValue;
                valueAsString = literal.stringValue();
            }
            else if (tagValue instanceof InstanceSpecification)
            {
                InstanceSpecification instance = (InstanceSpecification)tagValue;
                valueAsString = instance.getName();
View Full Code Here

                final Property property = umlClass.createOwnedAttribute(
                        name,
                        element,
                        1,
                        1);
                VisibilityKind kind = VisibilityKind.PUBLIC_LITERAL;
                if (visibility.equalsIgnoreCase("package"))
                {
                    kind = VisibilityKind.PACKAGE_LITERAL;
                }
                if (visibility.equalsIgnoreCase("private"))
View Full Code Here

    protected java.lang.String handleGetVisibility()
    {
        if (this.metaObject instanceof NamedElement)
        {
            final NamedElement element = (NamedElement)this.metaObject;
            final VisibilityKind kind = element.getVisibility();
            String visibility = null;
            if (kind.equals(VisibilityKind.PACKAGE_LITERAL))
            {
                visibility = "package";
            }
            if (kind.equals(VisibilityKind.PRIVATE_LITERAL))
            {
                visibility = "private";
            }
            if (kind.equals(VisibilityKind.PROTECTED_LITERAL))
            {
                visibility = "protected";
            }
            if (kind.equals(VisibilityKind.PUBLIC_LITERAL))
            {
                visibility = "public";
            }
            final TypeMappings languageMappings = this.getLanguageMappings();
            if (languageMappings != null)
View Full Code Here

   */
  static Operation getContextOperation(Constraint localPostcondition) {
    // XXX you could perform a proper search in all places where an
    // Operation specifiing some activity could hide
    Action action = (Action) localPostcondition.getOwner();
    Activity activity = action.getActivity();
    Operation contextOp = null;
    if (activity.getSpecification() instanceof Operation) {
      contextOp = (Operation) activity.getSpecification();
    } else if (activity.getOwner() instanceof Class) {
      Class oClass = (Class) activity.getOwner();
      contextOp = oClass.getOperation(activity.getName(), null, null);
    }
    return contextOp;
  }
View Full Code Here

  }

  static Operation getContextOperation(ActivityEdge guardedEdge) {
    // XXX you could perform a proper search in all places where an
    // Operation specifiing some activity could hide
    Activity activity = guardedEdge.getActivity();
    Logging.debug(""+activity, guardedEdge);
    Operation contextOp = null;
    if (activity.getSpecification() instanceof Operation) {
      contextOp = (Operation) activity.getSpecification();
    } else if (activity.getOwner() instanceof Class) {
      Class oClass = (Class) activity.getOwner();
      contextOp = oClass.getOperation(activity.getName(), null, null);
    }
    return contextOp;
  }
View Full Code Here

    // read Model
    Model model = (Model) load(inFile).get(0);
    out("ModelName: " + model.getName()); //$NON-NLS-1$

    // select one activity
    Activity activity = selectActivity(model);

    ActivityTestCaseGraphResourceFactoryImpl resFactory = new ActivityTestCaseGraphResourceFactoryImpl();
    Resource res = resFactory.createResource(URI.createFileURI(outFile));
    try {
      TCGActivity tcgActivity = UML2TCGActivity.transform(activity);
View Full Code Here

    // read Model
    Model model = (Model) load(inFile).get(0);
    out("ModelName: " + model.getName()); //$NON-NLS-1$

    // select one activity
    Activity activity = selectActivity(model);
    System.out.println("you selected: " + activity.getLabel()); //$NON-NLS-1$

    out("The following Members were found within the selected Activity");
    for (NamedElement e : activity.getMembers()) {
      out(e.toString());
      if (e instanceof Constraint) {
        out("\t" //$NON-NLS-1$
            + ((Constraint) e).getConstrainedElements());
        for (Element constrainee : ((Constraint) e)
View Full Code Here

TOP

Related Classes of org.eclipse.uml2.uml.Activity

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.