org.apache.ivy.core.module.descriptor
public class DefaultDependencyDescriptor extends Object implements DependencyDescriptor
Constructor Summary | |
---|---|
DefaultDependencyDescriptor(ModuleDescriptor md, ModuleRevisionId mrid, boolean force, boolean changing, boolean transitive) | |
DefaultDependencyDescriptor(ModuleRevisionId mrid, boolean force) | |
DefaultDependencyDescriptor(ModuleRevisionId mrid, boolean force, boolean changing) | |
DefaultDependencyDescriptor(ModuleDescriptor md, ModuleRevisionId mrid, ModuleRevisionId dynamicConstraint, boolean force, boolean changing, boolean transitive) |
Method Summary | |
---|---|
void | addDependencyArtifact(String masterConf, DependencyArtifactDescriptor dad) |
void | addDependencyConfiguration(String masterConf, String depConf) |
void | addExcludeRule(String masterConf, ExcludeRule rule) |
void | addIncludeRule(String masterConf, IncludeRule rule) |
DependencyDescriptor | asSystem() |
boolean | canExclude()
Returns true if this descriptor contains any exclusion rule
|
DependencyDescriptor | clone(ModuleRevisionId revision) |
boolean | doesExclude(String[] moduleConfigurations, ArtifactId artifactId)
only works when namespace is properly set. |
DependencyArtifactDescriptor[] | getAllDependencyArtifacts() |
ExcludeRule[] | getAllExcludeRules() |
IncludeRule[] | getAllIncludeRules() |
String | getAttribute(String attName) |
Map | getAttributes() |
DependencyArtifactDescriptor[] | getDependencyArtifacts(String moduleConfiguration) |
DependencyArtifactDescriptor[] | getDependencyArtifacts(String[] moduleConfigurations) |
String[] | getDependencyConfigurations(String moduleConfiguration) |
String[] | getDependencyConfigurations(String moduleConfiguration, String requestedConfiguration)
Return the dependency configurations mapped to the given moduleConfiguration, actually
resolved because of the given requestedConfiguration Usually requestedConfiguration and
moduleConfiguration are the same, except when a conf extends another, then the
moduleConfiguration is the configuration currently resolved (the extended one), and
requestedConfiguration is the one actually requested initially (the extending one). |
String[] | getDependencyConfigurations(String[] moduleConfigurations) |
ModuleId | getDependencyId() |
ModuleRevisionId | getDependencyRevisionId() |
ModuleRevisionId | getDynamicConstraintDependencyRevisionId() |
ExcludeRule[] | getExcludeRules(String moduleConfiguration) |
ExcludeRule[] | getExcludeRules(String[] moduleConfigurations) |
String | getExtraAttribute(String attName) |
Map | getExtraAttributes() |
IncludeRule[] | getIncludeRules(String moduleConfiguration) |
IncludeRule[] | getIncludeRules(String[] moduleConfigurations) |
String[] | getModuleConfigurations() |
Namespace | getNamespace() |
ModuleRevisionId | getParentRevisionId() |
Map | getQualifiedExtraAttributes() |
boolean | isChanging() |
boolean | isForce() |
boolean | isTransitive() |
protected static String | replaceFallbackConfigurationPattern(Pattern pattern, String conf, String moduleConfiguration)
Replaces fallback patterns with correct values if fallback pattern exists.
|
protected static String | replaceSelfFallbackPattern(String conf, String moduleConfiguration) |
protected static String | replaceThisFallbackPattern(String conf, String requestedConfiguration) |
String | toString() |
static DependencyDescriptor | transformInstance(DependencyDescriptor dd, Namespace ns)
Transforms the given dependency descriptor of the given namespace and return a new dependency
descriptor in the system namespace. |
static DefaultDependencyDescriptor | transformInstance(DependencyDescriptor dd, NamespaceTransformer t, boolean fromSystem)
Transforms a dependency descriptor using the given transformer. |
Returns:
Parameters: pattern pattern to look for conf configuration mapping from dependency element moduleConfiguration module's configuration to use for replacement
Returns: Replaced string if pattern matched. Otherwise null.
Parameters: dd ns
Returns:
Parameters: dd t
Returns: