Class AbstractIncludeExcludeRule
- java.lang.Object
-
- org.apache.ivy.util.extendable.UnmodifiableExtendableItem
-
- org.apache.ivy.core.module.descriptor.AbstractIncludeExcludeRule
-
- All Implemented Interfaces:
ConfigurationAware
,ExtendableItem
- Direct Known Subclasses:
DefaultExcludeRule
,DefaultIncludeRule
public abstract class AbstractIncludeExcludeRule extends UnmodifiableExtendableItem implements ConfigurationAware
Abstract class used as implementation for bothIncludeRule
andExcludeRule
, since their contract is almost identical
-
-
Constructor Summary
Constructors Constructor Description AbstractIncludeExcludeRule(ArtifactId aid, PatternMatcher matcher, java.util.Map<java.lang.String,java.lang.String> extraAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfiguration(java.lang.String conf)
Add a configuration for this ruleboolean
equals(java.lang.Object obj)
java.lang.String[]
getConfigurations()
Returns the configurations of the module to which the object is attachedArtifactId
getId()
PatternMatcher
getMatcher()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.apache.ivy.util.extendable.UnmodifiableExtendableItem
getAttribute, getAttributes, getExtraAttribute, getExtraAttributes, getQualifiedExtraAttributes, setExtraAttribute, setStandardAttribute
-
-
-
-
Constructor Detail
-
AbstractIncludeExcludeRule
public AbstractIncludeExcludeRule(ArtifactId aid, PatternMatcher matcher, java.util.Map<java.lang.String,java.lang.String> extraAttributes)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
addConfiguration
public void addConfiguration(java.lang.String conf)
Add a configuration for this rule- Specified by:
addConfiguration
in interfaceConfigurationAware
- Parameters:
conf
- String
-
getId
public ArtifactId getId()
-
getConfigurations
public java.lang.String[] getConfigurations()
Description copied from interface:ConfigurationAware
Returns the configurations of the module to which the object is attached- Specified by:
getConfigurations
in interfaceConfigurationAware
- Returns:
- an array of configuration names to which the object is attached
-
getMatcher
public PatternMatcher getMatcher()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-