Class Configuration
java.lang.Object
org.apache.ivy.util.extendable.UnmodifiableExtendableItem
org.apache.ivy.util.extendable.DefaultExtendableItem
org.apache.ivy.core.module.descriptor.Configuration
- All Implemented Interfaces:
InheritableItem
,ExtendableItem
- Direct Known Subclasses:
ConfigurationGroup
,ConfigurationIntersection
Represents a module configuration
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration
(String name) Creates a new configuration.Configuration
(String name, Configuration.Visibility visibility, String description, String[] ext, boolean transitive, String deprecated) Creates a new configuration.Configuration
(Configuration source, ModuleRevisionId sourceModule) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Collection<Configuration>
findConfigurationExtending
(String conf, Configuration[] confs) Returns the deprecation message, or null if not specified.String[]
getName()
int
hashCode()
final boolean
void
toString()
Methods inherited from class org.apache.ivy.util.extendable.DefaultExtendableItem
setExtraAttribute
Methods inherited from class org.apache.ivy.util.extendable.UnmodifiableExtendableItem
getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributes, setStandardAttribute
-
Constructor Details
-
Configuration
Creates a new configuration.- Parameters:
name
- the name of the configuration
-
Configuration
-
Configuration
public Configuration(String name, Configuration.Visibility visibility, String description, String[] ext, boolean transitive, String deprecated) Creates a new configuration.- Parameters:
name
- the name of the configurationvisibility
- the visibility of the configurationdescription
- a descriptionext
- the configurations to extend fromtransitive
- indicates if the configuration is transitivedeprecated
- the deprecation message
-
-
Method Details
-
findConfigurationExtending
public static Collection<Configuration> findConfigurationExtending(String conf, Configuration[] confs) -
getDeprecated
Returns the deprecation message, or null if not specified.- Returns:
- Returns the deprecation message.
-
getDescription
- Returns:
- Returns the description. It may be null.
-
getExtends
- Returns:
- Returns the extends. May be empty, but never null.
-
getName
- Returns:
- Returns the name. Never null;
-
getVisibility
- Returns:
- Returns the visibility. Never null.
-
isTransitive
public final boolean isTransitive()- Returns:
- Returns the transitive.
-
getSourceModule
- Specified by:
getSourceModule
in interfaceInheritableItem
- Returns:
- the module in which this item was actually defined, if different from the module in which the item appears. May be null.
-
toString
-
equals
-
hashCode
public int hashCode() -
replaceWildcards
-