Coverage Report - org.apache.maven.archetype.catalog.ArchetypeCatalog
 
Classes in this File Line Coverage Branch Coverage Complexity
ArchetypeCatalog
87 %
13/15
100 %
2/2
0
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.4 on 2010-10-28 03:23:59,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.archetype.catalog;
 9  
 
 10  
 /**
 11  
  * Class ArchetypeCatalog.
 12  
  * 
 13  
  * @version $Revision$ $Date$
 14  
  */
 15  
 @SuppressWarnings( "all" )
 16  12
 public class ArchetypeCatalog
 17  
     implements java.io.Serializable
 18  
 {
 19  
 
 20  
       //--------------------------/
 21  
      //- Class/Member Variables -/
 22  
     //--------------------------/
 23  
 
 24  
     /**
 25  
      * Field archetypes.
 26  
      */
 27  
     private java.util.List<Archetype> archetypes;
 28  
 
 29  
     /**
 30  
      * Field modelEncoding.
 31  
      */
 32  12
     private String modelEncoding = "UTF-8";
 33  
 
 34  
 
 35  
       //-----------/
 36  
      //- Methods -/
 37  
     //-----------/
 38  
 
 39  
     /**
 40  
      * Method addArchetype.
 41  
      * 
 42  
      * @param archetype
 43  
      */
 44  
     public void addArchetype( Archetype archetype )
 45  
     {
 46  14
         getArchetypes().add( archetype );
 47  14
     } //-- void addArchetype( Archetype )
 48  
 
 49  
     /**
 50  
      * Method getArchetypes.
 51  
      * 
 52  
      * @return List
 53  
      */
 54  
     public java.util.List<Archetype> getArchetypes()
 55  
     {
 56  54
         if ( this.archetypes == null )
 57  
         {
 58  7
             this.archetypes = new java.util.ArrayList<Archetype>();
 59  
         }
 60  
 
 61  54
         return this.archetypes;
 62  
     } //-- java.util.List<Archetype> getArchetypes()
 63  
 
 64  
     /**
 65  
      * Get the modelEncoding field.
 66  
      * 
 67  
      * @return String
 68  
      */
 69  
     public String getModelEncoding()
 70  
     {
 71  6
         return this.modelEncoding;
 72  
     } //-- String getModelEncoding()
 73  
 
 74  
     /**
 75  
      * Method removeArchetype.
 76  
      * 
 77  
      * @param archetype
 78  
      */
 79  
     public void removeArchetype( Archetype archetype )
 80  
     {
 81  0
         getArchetypes().remove( archetype );
 82  0
     } //-- void removeArchetype( Archetype )
 83  
 
 84  
     /**
 85  
      * Set list of Acthetypes available in this catalog.
 86  
      * 
 87  
      * @param archetypes
 88  
      */
 89  
     public void setArchetypes( java.util.List<Archetype> archetypes )
 90  
     {
 91  5
         this.archetypes = archetypes;
 92  5
     } //-- void setArchetypes( java.util.List )
 93  
 
 94  
     /**
 95  
      * Set the modelEncoding field.
 96  
      * 
 97  
      * @param modelEncoding
 98  
      */
 99  
     public void setModelEncoding( String modelEncoding )
 100  
     {
 101  4
         this.modelEncoding = modelEncoding;
 102  4
     } //-- void setModelEncoding( String )
 103  
 
 104  
     
 105  
     public String toString()
 106  
     {
 107  1
         return archetypes.toString();
 108  
     }
 109  
           
 110  
 }