Coverage Report - org.apache.maven.archiver.ManifestSection
 
Classes in this File Line Coverage Branch Coverage Complexity
ManifestSection
83%
10/12
N/A
1
 
 1  
 package org.apache.maven.archiver;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *   http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import java.util.HashMap;
 23  
 import java.util.Map;
 24  
 
 25  
 /**
 26  
  * 
 27  
  * @version $Id: ManifestSection.java 1233956 2012-01-20 15:27:43Z olamy $
 28  
  */
 29  2
 public class ManifestSection 
 30  
 {
 31  
 
 32  2
     private String name = null;
 33  
 
 34  2
     private Map<String,String> manifestEntries = new HashMap<String,String>();
 35  
 
 36  
     public void addManifestEntry( String key, String value )
 37  
     {
 38  2
         manifestEntries.put( key, value );
 39  2
     }
 40  
 
 41  
     public Map<String,String> getManifestEntries()
 42  
     {
 43  2
         return manifestEntries;
 44  
     }
 45  
 
 46  
     public String getName()
 47  
     {
 48  2
         return name;
 49  
     }
 50  
 
 51  
     public void setName( String name )
 52  
     {
 53  2
         this.name = name;
 54  2
     }
 55  
 
 56  
     public void addManifestEntries( Map<String,String> map )
 57  
     {
 58  0
         manifestEntries.putAll( map );
 59  0
     }
 60  
 
 61  
     public boolean isManifestEntriesEmpty()
 62  
     {
 63  2
         return manifestEntries.isEmpty();
 64  
     }
 65  
 }