public class DefaultDependencyDescriptor extends java.lang.Object implements DependencyDescriptor
| Constructor and Description |
|---|
DefaultDependencyDescriptor(DependencyDescriptor dd,
java.lang.String revision) |
DefaultDependencyDescriptor(ModuleDescriptor md,
ModuleRevisionId mrid,
boolean force,
boolean changing,
boolean transitive) |
DefaultDependencyDescriptor(ModuleRevisionId mrid,
boolean force) |
DefaultDependencyDescriptor(ModuleRevisionId mrid,
boolean force,
boolean changing) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencyArtifactExcludes(java.lang.String masterConf,
DependencyArtifactDescriptor dad) |
void |
addDependencyArtifactIncludes(java.lang.String masterConf,
DependencyArtifactDescriptor dad) |
void |
addDependencyConfiguration(java.lang.String masterConf,
java.lang.String depConf) |
void |
addExtends(java.lang.String conf) |
boolean |
canExclude()
Returns true if this descriptor contains any exclusion rule
|
boolean |
doesExclude(java.lang.String[] moduleConfigurations,
ArtifactId artifactId)
only works when namespace is properly set.
|
DependencyArtifactDescriptor[] |
getAllDependencyArtifactsExcludes() |
DependencyArtifactDescriptor[] |
getAllDependencyArtifactsIncludes() |
DependencyArtifactDescriptor[] |
getDependencyArtifactsExcludes(java.lang.String moduleConfiguration) |
DependencyArtifactDescriptor[] |
getDependencyArtifactsExcludes(java.lang.String[] moduleConfigurations) |
DependencyArtifactDescriptor[] |
getDependencyArtifactsIncludes(java.lang.String moduleConfiguration) |
DependencyArtifactDescriptor[] |
getDependencyArtifactsIncludes(java.lang.String[] moduleConfigurations) |
java.lang.String[] |
getDependencyConfigurations(java.lang.String moduleConfiguration) |
java.lang.String[] |
getDependencyConfigurations(java.lang.String[] moduleConfigurations) |
ModuleId |
getDependencyId() |
ModuleRevisionId |
getDependencyRevisionId() |
java.lang.String[] |
getModuleConfigurations() |
fr.jayasoft.ivy.namespace.Namespace |
getNamespace() |
ModuleRevisionId |
getParentRevisionId() |
boolean |
isChanging()
Used to indicate that this dependency is a changing one.
|
boolean |
isForce()
Used to indicate that this revision must be used in case of conflicts, independently
of conflicts manager.
|
boolean |
isTransitive() |
java.lang.String |
toString() |
static DependencyDescriptor |
transformInstance(DependencyDescriptor dd,
fr.jayasoft.ivy.namespace.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,
fr.jayasoft.ivy.namespace.NamespaceTransformer t)
Transforms a dependency descriptor using the given transformer.
|
public DefaultDependencyDescriptor(DependencyDescriptor dd, java.lang.String revision)
public DefaultDependencyDescriptor(ModuleDescriptor md, ModuleRevisionId mrid, boolean force, boolean changing, boolean transitive)
public DefaultDependencyDescriptor(ModuleRevisionId mrid, boolean force)
public DefaultDependencyDescriptor(ModuleRevisionId mrid, boolean force, boolean changing)
public static DependencyDescriptor transformInstance(DependencyDescriptor dd, fr.jayasoft.ivy.namespace.Namespace ns)
md - ns - public static DefaultDependencyDescriptor transformInstance(DependencyDescriptor dd, fr.jayasoft.ivy.namespace.NamespaceTransformer t)
dd - t - public ModuleId getDependencyId()
getDependencyId in interface DependencyDescriptorpublic ModuleRevisionId getDependencyRevisionId()
getDependencyRevisionId in interface DependencyDescriptorpublic java.lang.String[] getModuleConfigurations()
getModuleConfigurations in interface DependencyDescriptorpublic java.lang.String[] getDependencyConfigurations(java.lang.String moduleConfiguration)
getDependencyConfigurations in interface DependencyDescriptorpublic java.lang.String[] getDependencyConfigurations(java.lang.String[] moduleConfigurations)
getDependencyConfigurations in interface DependencyDescriptorpublic DependencyArtifactDescriptor[] getDependencyArtifactsIncludes(java.lang.String moduleConfiguration)
getDependencyArtifactsIncludes in interface DependencyDescriptorpublic DependencyArtifactDescriptor[] getDependencyArtifactsExcludes(java.lang.String moduleConfiguration)
getDependencyArtifactsExcludes in interface DependencyDescriptorpublic DependencyArtifactDescriptor[] getDependencyArtifactsIncludes(java.lang.String[] moduleConfigurations)
getDependencyArtifactsIncludes in interface DependencyDescriptorpublic DependencyArtifactDescriptor[] getDependencyArtifactsExcludes(java.lang.String[] moduleConfigurations)
getDependencyArtifactsExcludes in interface DependencyDescriptorpublic DependencyArtifactDescriptor[] getAllDependencyArtifactsIncludes()
getAllDependencyArtifactsIncludes in interface DependencyDescriptorpublic DependencyArtifactDescriptor[] getAllDependencyArtifactsExcludes()
getAllDependencyArtifactsExcludes in interface DependencyDescriptorpublic void addDependencyConfiguration(java.lang.String masterConf,
java.lang.String depConf)
public void addDependencyArtifactIncludes(java.lang.String masterConf,
DependencyArtifactDescriptor dad)
public void addDependencyArtifactExcludes(java.lang.String masterConf,
DependencyArtifactDescriptor dad)
public boolean doesExclude(java.lang.String[] moduleConfigurations,
ArtifactId artifactId)
doesExclude in interface DependencyDescriptorpublic boolean canExclude()
canExclude in interface DependencyDescriptorpublic void addExtends(java.lang.String conf)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isForce()
DependencyDescriptorisForce in interface DependencyDescriptorpublic ModuleRevisionId getParentRevisionId()
getParentRevisionId in interface DependencyDescriptorpublic boolean isChanging()
DependencyDescriptorisChanging in interface DependencyDescriptorpublic boolean isTransitive()
isTransitive in interface DependencyDescriptorpublic fr.jayasoft.ivy.namespace.Namespace getNamespace()
getNamespace in interface DependencyDescriptor