This project has retired. For details please refer to its Attic page.
RepositoryScanningConfiguration xref
View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.7,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.archiva.configuration;
7   
8   /**
9    * Class RepositoryScanningConfiguration.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class RepositoryScanningConfiguration
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Field fileTypes.
24       */
25      private java.util.List<FileType> fileTypes;
26  
27      /**
28       * Field knownContentConsumers.
29       */
30      private java.util.List<String> knownContentConsumers;
31  
32      /**
33       * Field invalidContentConsumers.
34       */
35      private java.util.List<String> invalidContentConsumers;
36  
37  
38        //-----------/
39       //- Methods -/
40      //-----------/
41  
42      /**
43       * Method addFileType.
44       * 
45       * @param fileType
46       */
47      public void addFileType( FileType fileType )
48      {
49          getFileTypes().add( fileType );
50      } //-- void addFileType( FileType )
51  
52      /**
53       * Method addInvalidContentConsumer.
54       * 
55       * @param string
56       */
57      public void addInvalidContentConsumer( String string )
58      {
59          getInvalidContentConsumers().add( string );
60      } //-- void addInvalidContentConsumer( String )
61  
62      /**
63       * Method addKnownContentConsumer.
64       * 
65       * @param string
66       */
67      public void addKnownContentConsumer( String string )
68      {
69          getKnownContentConsumers().add( string );
70      } //-- void addKnownContentConsumer( String )
71  
72      /**
73       * Method getFileTypes.
74       * 
75       * @return List
76       */
77      public java.util.List<FileType> getFileTypes()
78      {
79          if ( this.fileTypes == null )
80          {
81              this.fileTypes = new java.util.ArrayList<FileType>();
82          }
83  
84          return this.fileTypes;
85      } //-- java.util.List<FileType> getFileTypes()
86  
87      /**
88       * Method getInvalidContentConsumers.
89       * 
90       * @return List
91       */
92      public java.util.List<String> getInvalidContentConsumers()
93      {
94          if ( this.invalidContentConsumers == null )
95          {
96              this.invalidContentConsumers = new java.util.ArrayList<String>();
97          }
98  
99          return this.invalidContentConsumers;
100     } //-- java.util.List<String> getInvalidContentConsumers()
101 
102     /**
103      * Method getKnownContentConsumers.
104      * 
105      * @return List
106      */
107     public java.util.List<String> getKnownContentConsumers()
108     {
109         if ( this.knownContentConsumers == null )
110         {
111             this.knownContentConsumers = new java.util.ArrayList<String>();
112         }
113 
114         return this.knownContentConsumers;
115     } //-- java.util.List<String> getKnownContentConsumers()
116 
117     /**
118      * Method removeFileType.
119      * 
120      * @param fileType
121      */
122     public void removeFileType( FileType fileType )
123     {
124         getFileTypes().remove( fileType );
125     } //-- void removeFileType( FileType )
126 
127     /**
128      * Method removeInvalidContentConsumer.
129      * 
130      * @param string
131      */
132     public void removeInvalidContentConsumer( String string )
133     {
134         getInvalidContentConsumers().remove( string );
135     } //-- void removeInvalidContentConsumer( String )
136 
137     /**
138      * Method removeKnownContentConsumer.
139      * 
140      * @param string
141      */
142     public void removeKnownContentConsumer( String string )
143     {
144         getKnownContentConsumers().remove( string );
145     } //-- void removeKnownContentConsumer( String )
146 
147     /**
148      * Set the FileTypes for the repository scanning configuration.
149      * 
150      * @param fileTypes
151      */
152     public void setFileTypes( java.util.List<FileType> fileTypes )
153     {
154         this.fileTypes = fileTypes;
155     } //-- void setFileTypes( java.util.List )
156 
157     /**
158      * Set the list of active consumer IDs for invalid content.
159      * 
160      * @param invalidContentConsumers
161      */
162     public void setInvalidContentConsumers( java.util.List<String> invalidContentConsumers )
163     {
164         this.invalidContentConsumers = invalidContentConsumers;
165     } //-- void setInvalidContentConsumers( java.util.List )
166 
167     /**
168      * Set the list of active consumers IDs for known content.
169      * 
170      * @param knownContentConsumers
171      */
172     public void setKnownContentConsumers( java.util.List<String> knownContentConsumers )
173     {
174         this.knownContentConsumers = knownContentConsumers;
175     } //-- void setKnownContentConsumers( java.util.List )
176 
177 }