Package OntoUML

Examples of OntoUML.DatatypeRelationship


        if (result == null) result = caseElement(datatype);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case OntoUMLPackage.DATATYPE_RELATIONSHIP: {
        DatatypeRelationship datatypeRelationship = (DatatypeRelationship)theEObject;
        T result = caseDatatypeRelationship(datatypeRelationship);
        if (result == null) result = caseDirectedBinaryRelationship(datatypeRelationship);
        if (result == null) result = caseDirectedRelationship(datatypeRelationship);
        if (result == null) result = caseRelationalClassifier(datatypeRelationship);
        if (result == null) result = caseRelationship(datatypeRelationship);
View Full Code Here


    super.setName(newName);
   
    if (getContainer() != null)
      for (int i = 0; i < getContainer().getInstanciarElement().size(); ++i)
        if (getContainer().getInstanciarElement().get(i) instanceof DatatypeRelationship) {
          DatatypeRelationship d = (DatatypeRelationship) getContainer().getInstanciarElement().get(i);
          for (int j = 0; j < d.getTarget().size(); ++j)
            if (d.getTarget().get(j) instanceof Property)
              if (((Property) d.getTarget().get(j)).getEndType() == this) {         
                String name = ((Property) d.getTarget().get(j)).getName();
                ((Property) d.getTarget().get(j)).setName(name + "aux");
                ((Property) d.getTarget().get(j)).setName(name);
              }
        }
  }
View Full Code Here

    super.setName(newName);
   
    if (getContainer() != null)
      for (int i = 0; i < getContainer().getInstanciarElement().size(); ++i)
        if (getContainer().getInstanciarElement().get(i) instanceof DatatypeRelationship) {
          DatatypeRelationship d = (DatatypeRelationship) getContainer().getInstanciarElement().get(i);
          for (int j = 0; j < d.getTarget().size(); ++j)
            if (d.getTarget().get(j) instanceof Property)
              if (((Property) d.getTarget().get(j)).getEndType() == this) {
                String name = ((Property) d.getTarget().get(j)).getName();
                ((Property) d.getTarget().get(j)).setName(name + "aux");
                ((Property) d.getTarget().get(j)).setName(name);
              }
        }
  }
View Full Code Here

     * @generated NOT
     */
    private void createContents(
        DatatypeRelationshipEditPart datatyperelationshipeditpart) {

      DatatypeRelationship dr = (DatatypeRelationship) datatyperelationshipeditpart
          .resolveSemanticElement();
      for (int i = 0; i < dr.getSource().size(); ++i)
        if (((Property) dr.getSource().get(i)).getEndType() instanceof StructuralDatatype)
          for (int j = 0; j < dr.getTarget().size(); ++j)
            ((Property) dr.getTarget().get(j)).setIsReadOnly(true);

      fFigureDatatypeRelationshipLabelFigure = new WrappingLabel();
      fFigureDatatypeRelationshipLabelFigure
          .setText("«datatypeRelationship»");

View Full Code Here

     * @generated NOT
     */
    private void updateContents(
        DatatypeRelationshipEditPart datatyperelationshipeditpart) {

      DatatypeRelationship dr = (DatatypeRelationship) datatyperelationshipeditpart
          .resolveSemanticElement();
      for (int i = 0; i < dr.getSource().size(); ++i)
        if (((Property) dr.getSource().get(i)).getEndType() instanceof StructuralDatatype)
          for (int j = 0; j < dr.getTarget().size(); ++j)
            ((Property) dr.getTarget().get(j)).setIsReadOnly(true);
    }
View Full Code Here

TOP

Related Classes of OntoUML.DatatypeRelationship

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.