Package org.tinyuml.model

Examples of org.tinyuml.model.UmlAssociation


    UmlModelElement target = (UmlModelElement) mockTarget.proxy();   
    assoc.setElement1(source);
    assoc.setElement2(target);
    assoc.setName("name");
   
    UmlAssociation cloned = (UmlAssociation) assoc.clone();
    assertEquals(assoc.getName(), cloned.getName());
    assertEquals(assoc.getElement1(), cloned.getElement1());
    assertEquals(assoc.getElement2(), cloned.getElement2());
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public Connection createDependency(Node sourceNode, Node targetNode) {
    UmlAssociation association = (UmlAssociation)
      modelElementFactory.create(ElementType.DEPENDENCY);
    association.setSource(sourceNode.getModelElement());
    association.setTarget(targetNode.getModelElement());
    Connection connection = new Dependency(association);
    connection.setNode0(sourceNode);
    connection.setNode1(targetNode);
    return connection;
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.model.UmlAssociation

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.