View Javadoc
1   package org.codehaus.plexus.component.repository;
2   
3   import java.util.List;
4   
5   /**
6    * Created by IntelliJ IDEA.
7    *
8    * @author Andrew Williams
9    * @since 1.0
10   */
11  public class ComponentRequirementList extends ComponentRequirement {
12      private List<String> roleHints;
13  
14      public List<String> getRoleHints() {
15          return roleHints;
16      }
17  
18      public void setRoleHints(List<String> roleHints) {
19          this.roleHints = roleHints;
20      }
21  
22      public String getRoleHint() {
23          StringBuilder buffer = new StringBuilder();
24          for (String hint : roleHints) {
25              if (buffer.length() > 0) {
26                  buffer.append(",");
27              }
28  
29              buffer.append(hint);
30          }
31  
32          return buffer.toString();
33      }
34  }