KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > DependencyDescriptor


1 /*
2  * This file is subject to the license found in LICENCE.TXT in the root directory of the project.
3  *
4  * #SNAPSHOT#
5  */

6 package fr.jayasoft.ivy;
7
8 import fr.jayasoft.ivy.extendable.ExtendableItem;
9 import fr.jayasoft.ivy.namespace.Namespace;
10
11
12 /**
13  * @author x.hanin
14  *
15  */

16 public interface DependencyDescriptor extends ExtendableItem {
17     ModuleId getDependencyId();
18     /**
19      * Used to indicate that this revision must be used in case of conflicts, independently
20      * of conflicts manager. This only works for direct dependencies, and not transitive ones.
21      * @return true if this dependency should be used, false if conflicts manager
22      * can do its work.
23      */

24     boolean isForce();
25     /**
26      * Used to indicate that this dependency is a changing one.
27      * A changing dependency in ivy means that the revision may have its artifacts modified
28      * without revision change. When new artifacts are published a new ivy file should also
29      * be published with a new publication date to indicate to ivy that artifacts have changed and that they
30      * should be downloaded again.
31      * @return true if this dependency is a changing one
32      */

33     boolean isChanging();
34     boolean isTransitive();
35     ModuleRevisionId getParentRevisionId();
36     ModuleRevisionId getDependencyRevisionId();
37     String JavaDoc[] getModuleConfigurations();
38     String JavaDoc[] getDependencyConfigurations(String JavaDoc moduleConfiguration, String JavaDoc requestedConfiguration);
39     String JavaDoc[] getDependencyConfigurations(String JavaDoc moduleConfiguration);
40     String JavaDoc[] getDependencyConfigurations(String JavaDoc[] moduleConfigurations);
41     Namespace getNamespace();
42     DependencyArtifactDescriptor[] getAllDependencyArtifactsIncludes();
43     DependencyArtifactDescriptor[] getDependencyArtifactsIncludes(String JavaDoc moduleConfigurations);
44     DependencyArtifactDescriptor[] getDependencyArtifactsIncludes(String JavaDoc[] moduleConfigurations);
45     DependencyArtifactDescriptor[] getAllDependencyArtifactsExcludes();
46     DependencyArtifactDescriptor[] getDependencyArtifactsExcludes(String JavaDoc moduleConfigurations);
47     DependencyArtifactDescriptor[] getDependencyArtifactsExcludes(String JavaDoc[] moduleConfigurations);
48     boolean doesExclude(String JavaDoc[] moduleConfigurations, ArtifactId artifactId);
49     public boolean canExclude();
50     DependencyDescriptor asSystem();
51 }
52
Popular Tags