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