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 TypeMethodDescriptionbooleanstatic Collection<Configuration> findConfigurationExtending(String conf, Configuration[] confs) Returns the deprecation message, or null if not specified.String[]getName()inthashCode()final booleanvoidtoString()Methods inherited from class DefaultExtendableItem
setExtraAttributeMethods inherited from class 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:
getSourceModulein 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
-
replaceWildcards
-