001    // =================== DO NOT EDIT THIS FILE ====================
002    // Generated by Modello 1.7,
003    // any modifications will be overwritten.
004    // ==============================================================
005    
006    package org.apache.archiva.configuration;
007    
008    /**
009     * Class RepositoryScanningConfiguration.
010     * 
011     * @version $Revision$ $Date$
012     */
013    @SuppressWarnings( "all" )
014    public class RepositoryScanningConfiguration
015        implements java.io.Serializable
016    {
017    
018          //--------------------------/
019         //- Class/Member Variables -/
020        //--------------------------/
021    
022        /**
023         * Field fileTypes.
024         */
025        private java.util.List<FileType> fileTypes;
026    
027        /**
028         * Field knownContentConsumers.
029         */
030        private java.util.List<String> knownContentConsumers;
031    
032        /**
033         * Field invalidContentConsumers.
034         */
035        private java.util.List<String> invalidContentConsumers;
036    
037    
038          //-----------/
039         //- Methods -/
040        //-----------/
041    
042        /**
043         * Method addFileType.
044         * 
045         * @param fileType
046         */
047        public void addFileType( FileType fileType )
048        {
049            getFileTypes().add( fileType );
050        } //-- void addFileType( FileType )
051    
052        /**
053         * Method addInvalidContentConsumer.
054         * 
055         * @param string
056         */
057        public void addInvalidContentConsumer( String string )
058        {
059            getInvalidContentConsumers().add( string );
060        } //-- void addInvalidContentConsumer( String )
061    
062        /**
063         * Method addKnownContentConsumer.
064         * 
065         * @param string
066         */
067        public void addKnownContentConsumer( String string )
068        {
069            getKnownContentConsumers().add( string );
070        } //-- void addKnownContentConsumer( String )
071    
072        /**
073         * Method getFileTypes.
074         * 
075         * @return List
076         */
077        public java.util.List<FileType> getFileTypes()
078        {
079            if ( this.fileTypes == null )
080            {
081                this.fileTypes = new java.util.ArrayList<FileType>();
082            }
083    
084            return this.fileTypes;
085        } //-- java.util.List<FileType> getFileTypes()
086    
087        /**
088         * Method getInvalidContentConsumers.
089         * 
090         * @return List
091         */
092        public java.util.List<String> getInvalidContentConsumers()
093        {
094            if ( this.invalidContentConsumers == null )
095            {
096                this.invalidContentConsumers = new java.util.ArrayList<String>();
097            }
098    
099            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    }