KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.net.URL JavaDoc;
9
10 import fr.jayasoft.ivy.matcher.PatternMatcher;
11
12 /**
13  * This describes an artifact that is asked for a dependency.
14  *
15  * It is used to resctrict the artifacts asked for a dependency, or describe them
16  * when there is no ivy file.
17  */

18 public interface DependencyArtifactDescriptor {
19     /**
20      * Returns the dependency descriptor in which this artifact is asked
21      * @return
22      */

23     public DependencyDescriptor getDependency();
24
25     /**
26      * Returns the id of the described artifact, without revision information
27      * @return
28      */

29     public ArtifactId getId();
30     /**
31      * Returns the name of the artifact asked
32      * @return
33      */

34     public String JavaDoc getName();
35     /**
36      * Returns the type of the artifact asked
37      * @return
38      */

39     public String JavaDoc getType();
40     /**
41      * Returns the ext of the artifact asked
42      * @return
43      */

44     public String JavaDoc getExt();
45     /**
46      * Returns the url to look this artifact at
47      * @return
48      */

49     public URL JavaDoc getUrl();
50     /**
51      * Returns the configurations of the module in which the artifact is asked
52      * @return an array of configuration names in which the artifact is asked
53      */

54     public String JavaDoc[] getConfigurations();
55     
56     /**
57      * Returns the matcher to use to know if an artifact match the current descriptor
58      * @return
59      */

60     public PatternMatcher getMatcher();
61 }
62
Popular Tags