org.apache.ivy.core.module.descriptor

Class ConfigurationIntersection

public class ConfigurationIntersection extends Configuration

A configuration which is actually the intersection of several configurations.
Constructor Summary
ConfigurationIntersection(String confName, Map intersectedConfs)
Method Summary
ConfigurationgetIntersectedConfiguration(String confName)
Returns the intersected Configuration object for the given conf name, or null if the given conf name is not part of this intersection or if this conf name isn't defined in the module in which this intersection has been built.
String[]getIntersectedConfigurationNames()
Returns the list of configurations' names this object is an intersection of.
VisibilitygetVisibility()

Constructor Detail

ConfigurationIntersection

public ConfigurationIntersection(String confName, Map intersectedConfs)

Method Detail

getIntersectedConfiguration

public Configuration getIntersectedConfiguration(String confName)
Returns the intersected Configuration object for the given conf name, or null if the given conf name is not part of this intersection or if this conf name isn't defined in the module in which this intersection has been built.

Parameters: confName the name of the configuration to return.

Returns: the intersected Configuration object for the given conf name

getIntersectedConfigurationNames

public String[] getIntersectedConfigurationNames()
Returns the list of configurations' names this object is an intersection of.

This list is built from the configuration name, if some of these configuration names have actually not been recognized in the module, they will be null when accessed from getIntersectedConfiguration.

Returns: the list of configurations' names this object is an intersection of.

getVisibility

public Visibility getVisibility()