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 bothIncludeRuleandExcludeRule, 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 voidaddConfiguration(java.lang.String conf)Add a configuration for this rulebooleanequals(java.lang.Object obj)java.lang.String[]getConfigurations()Returns the configurations of the module to which the object is attachedArtifactIdgetId()PatternMatchergetMatcher()inthashCode()java.lang.StringtoString()-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
addConfiguration
public void addConfiguration(java.lang.String conf)
Add a configuration for this rule- Specified by:
addConfigurationin interfaceConfigurationAware- Parameters:
conf- String
-
getId
public ArtifactId getId()
-
getConfigurations
public java.lang.String[] getConfigurations()
Description copied from interface:ConfigurationAwareReturns the configurations of the module to which the object is attached- Specified by:
getConfigurationsin interfaceConfigurationAware- Returns:
- an array of configuration names to which the object is attached
-
getMatcher
public PatternMatcher getMatcher()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-