Package OntoUML

Examples of OntoUML.subQuantityOf


     * <!-- end-user-doc -->
     * @generated NOT
     */
    protected boolean updateFaceIsEssential(
        SubQuantityOfEditPart subquantityofeditpart) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      return c.isIsEssential();
    }
View Full Code Here


     * <!-- end-user-doc -->
     * @generated NOT
     */
    protected boolean updateFaceIsInseparable(
        SubQuantityOfEditPart subquantityofeditpart) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      return c.isIsInseparable();
    }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated NOT
     */
    protected boolean updateFaceIsImmutablePart(
        SubQuantityOfEditPart subquantityofeditpart) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      if (!c.isIsEssential() && c.isIsImmutablePart())
        return true;
      else
        return false;
    }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated NOT
     */
    protected boolean updateFaceIsImmutableWhole(
        SubQuantityOfEditPart subquantityofeditpart) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      if (!c.isIsInseparable() && c.isIsImmutableWhole())
        return true;
      else
        return false;
    }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated NOT
     */
    protected Integer initialSourceLowerCardinality(
        SubQuantityOfEditPart subquantityofeditpart) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      if (!c.getSource().isEmpty()) {
        Property p = (Property) c.getSource().get(0);
        p.setAux(p);
        p.setContainer(c.getContainer());
        //p.setOwner(c);
        return (p.getLower());
      } else
        return 0;
    }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated NOT
     */
    protected Integer initialSourceUpperCardinality(
        SubQuantityOfEditPart subquantityofeditpart) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      if (!c.getSource().isEmpty())
        return (((Property) c.getSource().get(0)).getUpper());
      else
        return 0;
    }
View Full Code Here

     * <!-- end-user-doc -->
     * @generated NOT
     */
    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

     * <!-- end-user-doc -->
     * @generated NOT
     */
    protected Integer initialTargetUpperCardinality(
        SubQuantityOfEditPart subquantityofeditpart) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      if (!c.getTarget().isEmpty())
        return (((Property) c.getTarget().get(0)).getUpper());
      else
        return 0;
    }
View Full Code Here

     * @generated NOT
     */
    protected void updatePropertyCardinality(
        SubQuantityOfEditPart subquantityofeditpart, int source_lower,
        int source_upper, int target_lower, int target_upper) {
      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      if (!c.getSource().isEmpty()) {
        ((Property) c.getSource().get(0)).setLower(source_lower);
        ((Property) c.getSource().get(0)).setUpper(source_upper);
      }
      if (!c.getTarget().isEmpty()) {
        ((Property) c.getTarget().get(0)).setLower(target_lower);
        ((Property) c.getTarget().get(0)).setUpper(target_upper);
      }
    }
View Full Code Here

      else
        text = text.concat("}");
      fFigureSubQuantityOfMetaAttributesLabelFigure.setText(text);
      this.add(fFigureSubQuantityOfMetaAttributesLabelFigure);

      subQuantityOf c = (subQuantityOf) ((View) subquantityofeditpart
          .getModel()).getElement();
      if (!c.getSource().isEmpty())
        ((Property) c.getSource().get(0))
            .setContainer(c.getContainer());
      if (!c.getTarget().isEmpty())
        ((Property) c.getTarget().get(0))
            .setContainer(c.getContainer());
    }
View Full Code Here

TOP

Related Classes of OntoUML.subQuantityOf

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.