org.codehaus.plexus.component.repository

Class ComponentSetDescriptor

public class ComponentSetDescriptor extends Object

Contains a set of ComponentDescriptors and the set's dependencies.

Version: $Id: ComponentSetDescriptor.java 6965 2007-10-21 05:32:27Z jvanzyl $

Author: Jason van Zyl Trygve Laugstøl

Field Summary
Listcomponents
Listdependencies
Stringid
booleanisolatedRealm
Method Summary
voidaddComponentDescriptor(ComponentDescriptor cd)
Add a new ComponentDescriptor to this set.
voidaddDependency(ComponentDependency cd)
Add a depenency to this set's contents.
ListgetComponents()
Returns a list of components in this set.
ListgetDependencies()
Returns a List of dependencies of this set of components.
StringgetId()
Returns the identifier of this set.
booleanisIsolatedRealm()
Returns true if this set may be in an isolated classrealm.
voidsetComponents(List components)
Sets a List of components as this set's contents.
voidsetDependencies(List dependencies)
Sets a List of dependencies as this set's component dependencies.
voidsetId(String id)
Sets the identifier of this set.
voidsetIsolatedRealm(boolean isolatedRealm)
Sets that this set of components may be in an isolated classrealm.
StringtoString()

Field Detail

components

private List components

dependencies

private List dependencies

id

private String id

isolatedRealm

private boolean isolatedRealm

Method Detail

addComponentDescriptor

public void addComponentDescriptor(ComponentDescriptor cd)
Add a new ComponentDescriptor to this set.

Parameters: cd the ComponentDescriptor to add

addDependency

public void addDependency(ComponentDependency cd)
Add a depenency to this set's contents.

Parameters: cd the ComponentDependency to add

getComponents

public List getComponents()
Returns a list of components in this set.

Returns: a list of components

getDependencies

public List getDependencies()
Returns a List of dependencies of this set of components.

Returns: a List of dependencies of this set of components

getId

public String getId()
Returns the identifier of this set.

Returns: the identifier of this set

isIsolatedRealm

public boolean isIsolatedRealm()
Returns true if this set may be in an isolated classrealm.

Returns: true if this set may be in an isolated classrealm

setComponents

public void setComponents(List components)
Sets a List of components as this set's contents.

Parameters: components the List of components to set

setDependencies

public void setDependencies(List dependencies)
Sets a List of dependencies as this set's component dependencies.

Parameters: dependencies the List of components to set

setId

public void setId(String id)
Sets the identifier of this set.

Parameters: id the identifier to set

setIsolatedRealm

public void setIsolatedRealm(boolean isolatedRealm)
Sets that this set of components may be in an isolated classrealm.

Parameters: isolatedRealm true if this set of components may be in an isolated classrealm

toString

public String toString()