Package OntoUML

Examples of OntoUML.Property


    protected Integer initialTargetLowerCardinality(
        SubQuantityOfEditPart subquantityofeditpart) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      if (!c.getTarget().isEmpty()) {
        Property p = (Property) c.getTarget().get(0);
        p.setAux(p);
        p.setContainer(c.getContainer());
        //p.setOwner(c);
        return (p.getLower());
      } else
        return 0;
    }
View Full Code Here


        if (result == null) result = caseElement(phase);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.PROPERTY: {
        Property property = (Property)theEObject;
        T result = caseProperty(property);
        if (result == null) result = caseStructuralFeature(property);
        if (result == null) result = caseMultiplicityElement(property);
        if (result == null) result = caseFeature(property);
        if (result == null) result = caseTypedElement(property);
View Full Code Here

     */
    private void updateContents(ModeEditPart modeeditpart) {

      Mode s = (Mode) ((View) modeeditpart.getModel()).getElement();
      for (int i = 0; i < s.getAttribute().size(); i++) {
        Property p1 = (Property) s.getAttribute().get(i);
        if (p1.getAttribute().size() >= 2) {
          DatatypeAssociation d = (DatatypeAssociation) p1
              .getAttribute().get(0);
          Property p2 = (Property) p1.getAttribute().get(1);
          d.setOwner(null);
          d.setContainer(s.getContainer());
          d.setName("Name");
          p1.setAssociationEnd(d);
          p1.setName("Name");
          p2.setAssociationEnd(d);
          p2.setOwner(d);
          p2.setName("Name");
        }
      }
    }
View Full Code Here

     */
    private void updateContents(KindEditPart kindeditpart) {

      Kind s = (Kind) ((View) kindeditpart.getModel()).getElement();
      for (int i = 0; i < s.getAttribute().size(); i++) {
        Property p1 = (Property) s.getAttribute().get(i);
        if (p1.getAttribute().size() >= 2) {
          DatatypeAssociation d = (DatatypeAssociation) p1
              .getAttribute().get(0);
          Property p2 = (Property) p1.getAttribute().get(1);
          d.setOwner(null);
          d.setContainer(s.getContainer());
          d.setName("Name");
          p1.setAssociationEnd(d);
          p1.setName("Name");
          p2.setAssociationEnd(d);
          p2.setOwner(d);
          p2.setName("Name");
        }
      }
    }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated NOT
   */
  protected String getText() {
    String text = new String("");
    Property p = (Property) resolveSemanticElement();
    if (p.getEndType() != null)
      text = p.getName() + ": " + p.getEndType().getName() + " [";
    else
      return "Error!";

    if (p.getLower() == -1) {
      if (p.getUpper() == -1)
        text = text + "*..*";
      else
        text = text + "*.." + Integer.toString(p.getUpper());
    } else {
      if ((p.getLower() == 0) && (p.getUpper() == -1))
        text = text + "*";
      else {
        if (p.getLower() == p.getUpper())
          text = text + Integer.toString(p.getLower());
        else {
          if (p.getUpper() == -1)
            text = text + Integer.toString(p.getLower()) + "..*";
          else
            text = text + Integer.toString(p.getLower()) + ".."
                + Integer.toString(p.getUpper());
        }
      }
    }
    text = text + "]";
    return text;
View Full Code Here

    private void updateContents(RoleMixinEditPart rolemixineditpart) {

      RoleMixin s = (RoleMixin) ((View) rolemixineditpart.getModel())
          .getElement();
      for (int i = 0; i < s.getAttribute().size(); i++) {
        Property p1 = (Property) s.getAttribute().get(i);
        if (p1.getAttribute().size() >= 2) {
          DatatypeAssociation d = (DatatypeAssociation) p1
              .getAttribute().get(0);
          Property p2 = (Property) p1.getAttribute().get(1);
          d.setOwner(null);
          d.setContainer(s.getContainer());
          d.setName("Name");
          p1.setAssociationEnd(d);
          p1.setName("Name");
          p2.setAssociationEnd(d);
          p2.setOwner(d);
          p2.setName("Name");
        }
      }
    }
View Full Code Here

      this.add(fFigureCollectiveMetaAttributeLabelFigure);

      Collective s = (Collective) ((View) collectiveeditpart.getModel())
          .getElement();
      for (int i = 0; i < s.getAttribute().size(); i++) {
        Property p1 = (Property) s.getAttribute().get(i);
        if (p1.getAttribute().size() >= 2) {
          DatatypeAssociation d = (DatatypeAssociation) p1
              .getAttribute().get(0);
          Property p2 = (Property) p1.getAttribute().get(1);
          d.setOwner(null);
          d.setContainer(s.getContainer());
          d.setName("Name");
          p1.setAssociationEnd(d);
          p1.setName("Name");
          p2.setAssociationEnd(d);
          p2.setOwner(d);
          p2.setName("Name");
        }
      }
    }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated NOT
   */
  protected String getText() {
    String text = new String("");
    Property p = (Property) resolveSemanticElement();
    if (p.getEndType() != null)
      text = p.getName() + ": " + p.getEndType().getName() + " [";
    else
      return "Error!";

    if (p.getLower() == -1) {
      if (p.getUpper() == -1)
        text = text + "*..*";
      else
        text = text + "*.." + Integer.toString(p.getUpper());
    } else {
      if ((p.getLower() == 0) && (p.getUpper() == -1))
        text = text + "*";
      else {
        if (p.getLower() == p.getUpper())
          text = text + Integer.toString(p.getLower());
        else {
          if (p.getUpper() == -1)
            text = text + Integer.toString(p.getLower()) + "..*";
          else
            text = text + Integer.toString(p.getLower()) + ".."
                + Integer.toString(p.getUpper());
        }
      }
    }
    text = text + "]";
    return text;
View Full Code Here

    private void updateContents(QuantityEditPart quantityeditpart) {

      Quantity s = (Quantity) ((View) quantityeditpart.getModel())
          .getElement();
      for (int i = 0; i < s.getAttribute().size(); i++) {
        Property p1 = (Property) s.getAttribute().get(i);
        if (p1.getAttribute().size() >= 2) {
          DatatypeAssociation d = (DatatypeAssociation) p1
              .getAttribute().get(0);
          Property p2 = (Property) p1.getAttribute().get(1);
          d.setOwner(null);
          d.setContainer(s.getContainer());
          d.setName("Name");
          p1.setAssociationEnd(d);
          p1.setName("Name");
          p2.setAssociationEnd(d);
          p2.setOwner(d);
          p2.setName("Name");
        }
      }
    }
View Full Code Here

   * <!-- end-user-doc -->
   * @generated NOT
   */
  protected String getText() {
    String text = new String("");
    Property p = (Property) resolveSemanticElement();
    if (p.getEndType() != null)
      text = p.getName() + ": " + p.getEndType().getName() + " [";
    else
      return "Error!";

    if (p.getLower() == -1) {
      if (p.getUpper() == -1)
        text = text + "*..*";
      else
        text = text + "*.." + Integer.toString(p.getUpper());
    } else {
      if ((p.getLower() == 0) && (p.getUpper() == -1))
        text = text + "*";
      else {
        if (p.getLower() == p.getUpper())
          text = text + Integer.toString(p.getLower());
        else {
          if (p.getUpper() == -1)
            text = text + Integer.toString(p.getLower()) + "..*";
          else
            text = text + Integer.toString(p.getLower()) + ".."
                + Integer.toString(p.getUpper());
        }
      }
    }
    text = text + "]";
    return text;
View Full Code Here

TOP

Related Classes of OntoUML.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.