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    * @version $Id: ComponentRequirementList.java 7828 2008-11-14 22:07:56Z dain $
10   * @since 1.0
11   */
12  public class ComponentRequirementList
13      extends ComponentRequirement 
14  {
15      private List<String> roleHints;
16  
17      public List<String> getRoleHints()
18      {
19          return roleHints;
20      }
21  
22      public void setRoleHints(List<String> roleHints)
23      {
24          this.roleHints = roleHints;
25      }
26  
27      public String getRoleHint()
28      {
29          StringBuilder buffer = new StringBuilder();
30          for ( String hint : roleHints )
31          {
32              if (buffer.length() > 0)
33              {
34                  buffer.append(",");
35              }
36  
37              buffer.append(hint);
38  
39          }
40  
41          return buffer.toString();
42      }
43  }