KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > kirkk > analyzer > framework > JarCollectionDecorator


1 package com.kirkk.analyzer.framework;
2
3 public abstract class JarCollectionDecorator implements JarCollection {
4     protected JarCollection jarCollection;
5
6     public JarCollectionDecorator(JarCollection jarCollection) {
7         this.jarCollection = jarCollection;
8     }
9
10     public int getJarCount() {
11         return this.jarCollection.getJarCount();
12     }
13
14     public boolean hasNext() {
15         return this.jarCollection.hasNext();
16     }
17
18     public Jar nextJar() {
19         return this.jarCollection.nextJar();
20     }
21
22     public Jar getJarContainingPackage(String JavaDoc packageName) {
23         return this.jarCollection.getJarContainingPackage(packageName);
24     }
25
26     public void first() {
27         this.jarCollection.first();
28     }
29
30     public Jar getJar(String JavaDoc jarName) {
31         return this.jarCollection.getJar(jarName);
32     }
33
34     public Jar[] toArray() {
35         return this.jarCollection.toArray();
36     }
37
38 }
Popular Tags