Coverage Report - org.apache.maven.archiva.configuration.RepositoryScanningConfiguration
 
Classes in this File Line Coverage Branch Coverage Complexity
RepositoryScanningConfiguration
0%
0/40
0%
0/18
0
 
 1  
 /*
 2  
  * $Id$
 3  
  */
 4  
 
 5  
 package org.apache.maven.archiva.configuration;
 6  
 
 7  
   //---------------------------------/
 8  
  //- Imported classes and packages -/
 9  
 //---------------------------------/
 10  
 
 11  
 import java.util.Date;
 12  
 
 13  
 /**
 14  
  * Class RepositoryScanningConfiguration.
 15  
  * 
 16  
  * @version $Revision$ $Date$
 17  
  */
 18  0
 public class RepositoryScanningConfiguration
 19  
     implements java.io.Serializable
 20  
 {
 21  
 
 22  
       //--------------------------/
 23  
      //- Class/Member Variables -/
 24  
     //--------------------------/
 25  
 
 26  
     /**
 27  
      * Field fileTypes.
 28  
      */
 29  
     private java.util.List<FileType> fileTypes;
 30  
 
 31  
     /**
 32  
      * Field knownContentConsumers.
 33  
      */
 34  
     private java.util.List<String> knownContentConsumers;
 35  
 
 36  
     /**
 37  
      * Field invalidContentConsumers.
 38  
      */
 39  
     private java.util.List<String> invalidContentConsumers;
 40  
 
 41  
 
 42  
       //-----------/
 43  
      //- Methods -/
 44  
     //-----------/
 45  
 
 46  
     /**
 47  
      * Method addFileType.
 48  
      * 
 49  
      * @param fileType
 50  
      */
 51  
     public void addFileType( FileType fileType )
 52  
     {
 53  0
         if ( !(fileType instanceof FileType) )
 54  
         {
 55  0
             throw new ClassCastException( "RepositoryScanningConfiguration.addFileTypes(fileType) parameter must be instanceof " + FileType.class.getName() );
 56  
         }
 57  0
         getFileTypes().add( fileType );
 58  0
     } //-- void addFileType( FileType )
 59  
 
 60  
     /**
 61  
      * Method addInvalidContentConsumer.
 62  
      * 
 63  
      * @param string
 64  
      */
 65  
     public void addInvalidContentConsumer( String string )
 66  
     {
 67  0
         if ( !(string instanceof String) )
 68  
         {
 69  0
             throw new ClassCastException( "RepositoryScanningConfiguration.addInvalidContentConsumers(string) parameter must be instanceof " + String.class.getName() );
 70  
         }
 71  0
         getInvalidContentConsumers().add( string );
 72  0
     } //-- void addInvalidContentConsumer( String )
 73  
 
 74  
     /**
 75  
      * Method addKnownContentConsumer.
 76  
      * 
 77  
      * @param string
 78  
      */
 79  
     public void addKnownContentConsumer( String string )
 80  
     {
 81  0
         if ( !(string instanceof String) )
 82  
         {
 83  0
             throw new ClassCastException( "RepositoryScanningConfiguration.addKnownContentConsumers(string) parameter must be instanceof " + String.class.getName() );
 84  
         }
 85  0
         getKnownContentConsumers().add( string );
 86  0
     } //-- void addKnownContentConsumer( String )
 87  
 
 88  
     /**
 89  
      * Method getFileTypes.
 90  
      * 
 91  
      * @return List
 92  
      */
 93  
     public java.util.List<FileType> getFileTypes()
 94  
     {
 95  0
         if ( this.fileTypes == null )
 96  
         {
 97  0
             this.fileTypes = new java.util.ArrayList<FileType>();
 98  
         }
 99  
 
 100  0
         return this.fileTypes;
 101  
     } //-- java.util.List<FileType> getFileTypes()
 102  
 
 103  
     /**
 104  
      * Method getInvalidContentConsumers.
 105  
      * 
 106  
      * @return List
 107  
      */
 108  
     public java.util.List<String> getInvalidContentConsumers()
 109  
     {
 110  0
         if ( this.invalidContentConsumers == null )
 111  
         {
 112  0
             this.invalidContentConsumers = new java.util.ArrayList<String>();
 113  
         }
 114  
 
 115  0
         return this.invalidContentConsumers;
 116  
     } //-- java.util.List<String> getInvalidContentConsumers()
 117  
 
 118  
     /**
 119  
      * Method getKnownContentConsumers.
 120  
      * 
 121  
      * @return List
 122  
      */
 123  
     public java.util.List<String> getKnownContentConsumers()
 124  
     {
 125  0
         if ( this.knownContentConsumers == null )
 126  
         {
 127  0
             this.knownContentConsumers = new java.util.ArrayList<String>();
 128  
         }
 129  
 
 130  0
         return this.knownContentConsumers;
 131  
     } //-- java.util.List<String> getKnownContentConsumers()
 132  
 
 133  
     /**
 134  
      * Method removeFileType.
 135  
      * 
 136  
      * @param fileType
 137  
      */
 138  
     public void removeFileType( FileType fileType )
 139  
     {
 140  0
         if ( !(fileType instanceof FileType) )
 141  
         {
 142  0
             throw new ClassCastException( "RepositoryScanningConfiguration.removeFileTypes(fileType) parameter must be instanceof " + FileType.class.getName() );
 143  
         }
 144  0
         getFileTypes().remove( fileType );
 145  0
     } //-- void removeFileType( FileType )
 146  
 
 147  
     /**
 148  
      * Method removeInvalidContentConsumer.
 149  
      * 
 150  
      * @param string
 151  
      */
 152  
     public void removeInvalidContentConsumer( String string )
 153  
     {
 154  0
         if ( !(string instanceof String) )
 155  
         {
 156  0
             throw new ClassCastException( "RepositoryScanningConfiguration.removeInvalidContentConsumers(string) parameter must be instanceof " + String.class.getName() );
 157  
         }
 158  0
         getInvalidContentConsumers().remove( string );
 159  0
     } //-- void removeInvalidContentConsumer( String )
 160  
 
 161  
     /**
 162  
      * Method removeKnownContentConsumer.
 163  
      * 
 164  
      * @param string
 165  
      */
 166  
     public void removeKnownContentConsumer( String string )
 167  
     {
 168  0
         if ( !(string instanceof String) )
 169  
         {
 170  0
             throw new ClassCastException( "RepositoryScanningConfiguration.removeKnownContentConsumers(string) parameter must be instanceof " + String.class.getName() );
 171  
         }
 172  0
         getKnownContentConsumers().remove( string );
 173  0
     } //-- void removeKnownContentConsumer( String )
 174  
 
 175  
     /**
 176  
      * Set 
 177  
      *             The FileTypes for the repository scanning
 178  
      * configuration.
 179  
      *           
 180  
      * 
 181  
      * @param fileTypes
 182  
      */
 183  
     public void setFileTypes( java.util.List<FileType> fileTypes )
 184  
     {
 185  0
         this.fileTypes = fileTypes;
 186  0
     } //-- void setFileTypes( java.util.List )
 187  
 
 188  
     /**
 189  
      * Set 
 190  
      *             The list of active consumer IDs for invalid
 191  
      * content.
 192  
      *           
 193  
      * 
 194  
      * @param invalidContentConsumers
 195  
      */
 196  
     public void setInvalidContentConsumers( java.util.List<String> invalidContentConsumers )
 197  
     {
 198  0
         this.invalidContentConsumers = invalidContentConsumers;
 199  0
     } //-- void setInvalidContentConsumers( java.util.List )
 200  
 
 201  
     /**
 202  
      * Set 
 203  
      *             The list of active consumers IDs for known
 204  
      * content.
 205  
      *           
 206  
      * 
 207  
      * @param knownContentConsumers
 208  
      */
 209  
     public void setKnownContentConsumers( java.util.List<String> knownContentConsumers )
 210  
     {
 211  0
         this.knownContentConsumers = knownContentConsumers;
 212  0
     } //-- void setKnownContentConsumers( java.util.List )
 213  
 
 214  
 
 215  
 }