Package org.acmestudio.acme.element

Examples of org.acmestudio.acme.element.IAcmeRole


  }

  private void addPortAttachments(IAcmePort acmePort, Port port,
      IAcmeSystem system) {
    for (IAcmeAttachment att : system.getAttachments(acmePort)) {
      IAcmeRole acmeRole = att.getRole();

      Role role = new Role();
      port.getRoles().add(role);
      role.setPort(port);

      if (acmeRole.getDeclaredTypes().size() > 0) {
        IAcmeElementTypeRef<IAcmeRoleType> type = acmeRole
            .getDeclaredTypes().iterator().next();
        role.setStyleType(type.getReferencedName());
      }

      addProperties(role, acmeRole.getProperties());

      IAcmeConnector acmeConn = (IAcmeConnector) acmeRole.getParent();
      Connector conn = conf
          .getConnectorByName(getQualifiedName(acmeConn));
      role.setConnector(conn);
      conn.getRoles().add(role);
    }
View Full Code Here

TOP

Related Classes of org.acmestudio.acme.element.IAcmeRole

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.