All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.plexus.component.repository.ComponentRequirementList Maven / Gradle / Ivy

The newest version!
package org.codehaus.plexus.component.repository;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Andrew Williams
 * @since 1.0
 */
public class ComponentRequirementList
    extends ComponentRequirement 
{
    private List roleHints;

    public List getRoleHints()
    {
        return roleHints;
    }

    public void setRoleHints(List roleHints)
    {
        this.roleHints = roleHints;
    }

    public String getRoleHint()
    {
        StringBuilder buffer = new StringBuilder();
        for ( String hint : roleHints )
        {
            if (buffer.length() > 0)
            {
                buffer.append(",");
            }

            buffer.append(hint);

        }

        return buffer.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy