Examples of RoleTypeMapping


Examples of archmapper.main.model.stylemapping.RoleTypeMapping

    styleMapping.getPortTypeMapping().add(ptMapping);
    ptMapping.setTypeName("PortType2");
    ptMapping.getExportedTypes().add(classType);
    //ptMapping.setExport(PortTypeExportOption.all);
   
    RoleTypeMapping rtMapping1 = new RoleTypeMapping();
    styleMapping.getRoleTypeMapping().add(rtMapping1);
    rtMapping1.setTypeName("CalleeRole");
    rtMapping1.setDirection(RoleTypeDirection.in);
   
    RoleTypeMapping rtMapping2 = new RoleTypeMapping();
    styleMapping.getRoleTypeMapping().add(rtMapping2);
    rtMapping2.setTypeName("CallerRole");
    rtMapping2.setDirection(RoleTypeDirection.out);
   
    // Set the role information from the style mapping
    model.setRoleDirectionInArchitecture(true);
  }
View Full Code Here

Examples of archmapper.main.model.stylemapping.RoleTypeMapping

      for (Role role : conn.getRoles()) {
        if (role.getDirection() != null && !overwriteArchitecture) {
          continue;
        }
       
        RoleTypeMapping mapping = styleMapping.getRoleTypeMapping(role.getStyleType());
       
        if (mapping != null && mapping.getDirection() != null) {
          role.setDirection(Role.RoleDirection.valueOf(mapping.getDirection().name()));
        } else {
          role.setDirection(Role.RoleDirection.unknown);
        }
      }
    }
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.