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