Package org.eclipse.uml2.uml

Examples of org.eclipse.uml2.uml.Property


    {
        // 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

        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

   * <!-- begin-user-doc --> <!-- end-user-doc -->
   *
   * @generated
   */
  public void setBase_Property(Property newBase_Property) {
    Property oldBase_Property = base_Property;
    base_Property = newBase_Property;
    if(eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ConstraintsPackage.CONSTRAINT_PROPERTY__BASE_PROPERTY, oldBase_Property, base_Property));
  }
View Full Code Here

          // interesting value is passive dependent -> find matching active dependent and go on ...
          else if(oAtom.getElement() instanceof Property)
          {
            if(in_oBackTrackStartNode.getIncomingTransitions().size() == 1)
            {
              Property oProperty = (Property)oAtom.getElement();
              TCGTransition oTransition = findNextPrecedingTransition(in_oCurrentBackTrackNode.getIncomingTransitions().get(0), oProperty);
              if(oTransition != null) // is there a next preceding transition ?
              {
                // TODO ### future work: sort elements in expressions only if needed?
                ArrayList<TCGOCLExpression> colNewExpressions = new ArrayList<TCGOCLExpression>();
View Full Code Here

   */
  public static Property findMatchingPropertyInContext(
      Property in_oSuperProperty,
      org.eclipse.uml2.uml.Class in_oContext)
  {
    Property oProperty = in_oContext.getAttribute(in_oSuperProperty.getName(), in_oSuperProperty.getType());
    if(oProperty == null)
    {
      for(Generalization oGeneralization : in_oContext.getGeneralizations())
      {
        if(oGeneralization.getGeneral() instanceof org.eclipse.uml2.uml.Class)
View Full Code Here

      return "";
    else
    {
      if(in_oProperty.getOwner() instanceof Property)
      {
        Property oProp = (Property)in_oProperty.getOwner();
        return in_oProperty.getName() + "." + getFullPropertyName(oProp, in_oType);
      }
      else
        return in_oProperty.getName();
    }
View Full Code Here

      if (oVar != null) {
        result.append(oVar.getName());
      }   
    }
    else if (tcgOCLAtomConstraint.getElement() instanceof Property) {  //class property
      Property oProp = (Property) tcgOCLAtomConstraint.getElement();
      result.append(oProp.getName());
     
      boolean isPre = ((PropertyCallExp)(tcgOCLAtomConstraint.getOclReference())).isMarkedPre();     
      result.append("[i");
      if (isPre) {
        result.append("-1");
View Full Code Here

TOP

Related Classes of org.eclipse.uml2.uml.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.