Examples of IAcmeRole


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
Copyright © 2018 www.massapi.com. 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.