KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > archiver > ManifestSection


1 package org.apache.maven.archiver;
2
3 import java.util.HashMap JavaDoc;
4 import java.util.Map JavaDoc;
5
6 public class ManifestSection {
7
8     private String JavaDoc name = null;
9     
10     private Map JavaDoc manifestEntries = new HashMap JavaDoc();
11     
12     public void setName( String JavaDoc name ) {
13         this.name = name;
14     }
15     
16     public String JavaDoc getName() {
17         return name;
18     }
19     
20     public void addManifestEntry( Object JavaDoc key, Object JavaDoc value )
21     {
22         manifestEntries.put( key, value );
23     }
24
25     public void addManifestEntries( Map JavaDoc map )
26     {
27         manifestEntries.putAll( map );
28     }
29
30     public boolean isManifestEntriesEmpty()
31     {
32         return manifestEntries.isEmpty();
33     }
34
35     public Map JavaDoc getManifestEntries()
36     {
37         return manifestEntries;
38     }
39
40 }
41
Popular Tags