1 package net.sourceforge.argval.packageinfo;
2
3
4 import java.util.Set;
5 import java.util.jar.JarFile;
6
7
8 /**
9 *
10 *
11 * @author <a href="http://sourceforge.net/users/verhagent/">T. Verhagen</a>
12 */
13 public interface PackageInfoManager {
14
15 /**
16 * Adds all the <code>Package</code> instances.
17 *
18 * @param packageArray Array containing <code>Package</code> instances.
19 */
20 void addPackage(Package[] packageArray);
21
22 /**
23 * Add a <code>Package</code> instance.
24 *
25 * @param pckg The <code>Package</code> instance.
26 */
27 void addPackage(Package pckg);
28
29 void addPackage(JarFile jarFile);
30
31 void addPackageInfo(PackageInfo packageInfo);
32
33 /**
34 *
35 * @param packageInfo
36 */
37 void addPackageInfo(PackageInfo packageInfo,
38 String packageName);
39
40 /**
41 * Returns a Set instance containing all the titles of the added
42 * <code>Package</code> instances.
43 *
44 * @return A Set containing the titles of the <code>Package</code> instances.
45 */
46 Set<String> getTitleSet();
47
48 /**
49 * Returns a <code>PackageInfo</code>, or <code>null</code> when nothing is found.
50 *
51 * @param title The title of the <code>Package</code> which should be returned.
52 * @return A <code>PackageInfo</code> instance, or null if nothing is found.
53 */
54 PackageInfo getPackage(String title);
55
56 }