Coverage Report - org.apache.maven.plugin.resources.remote.RemoteResourcesBundle
 
Classes in this File Line Coverage Branch Coverage Complexity
RemoteResourcesBundle
88%
15/17
100%
2/2
1,125
 
 1  
 /*
 2  
  =================== DO NOT EDIT THIS FILE ====================
 3  
  Generated by Modello 1.4.1 on 2012-10-24 23:15:59,
 4  
  any modifications will be overwritten.
 5  
  ==============================================================
 6  
  */
 7  
 
 8  
 package org.apache.maven.plugin.resources.remote;
 9  
 
 10  
 /**
 11  
  * Root element of the remote-resources.xml file.
 12  
  * 
 13  
  * @version $Revision$ $Date$
 14  
  */
 15  
 @SuppressWarnings( "all" )
 16  17
 public class RemoteResourcesBundle
 17  
     implements java.io.Serializable
 18  
 {
 19  
 
 20  
       //--------------------------/
 21  
      //- Class/Member Variables -/
 22  
     //--------------------------/
 23  
 
 24  
     /**
 25  
      * Field remoteResources.
 26  
      */
 27  
     private java.util.List<String> remoteResources;
 28  
 
 29  
     /**
 30  
      * 
 31  
      *             Source encoding of the remote resources
 32  
      * contained in the bundle.
 33  
      *           
 34  
      */
 35  
     private String sourceEncoding;
 36  
 
 37  
     /**
 38  
      * Field modelEncoding.
 39  
      */
 40  17
     private String modelEncoding = "UTF-8";
 41  
 
 42  
 
 43  
       //-----------/
 44  
      //- Methods -/
 45  
     //-----------/
 46  
 
 47  
     /**
 48  
      * Method addRemoteResource.
 49  
      * 
 50  
      * @param string
 51  
      */
 52  
     public void addRemoteResource( String string )
 53  
     {
 54  8
         getRemoteResources().add( string );
 55  8
     } //-- void addRemoteResource( String )
 56  
 
 57  
     /**
 58  
      * Get the modelEncoding field.
 59  
      * 
 60  
      * @return String
 61  
      */
 62  
     public String getModelEncoding()
 63  
     {
 64  8
         return this.modelEncoding;
 65  
     } //-- String getModelEncoding()
 66  
 
 67  
     /**
 68  
      * Method getRemoteResources.
 69  
      * 
 70  
      * @return List
 71  
      */
 72  
     public java.util.List<String> getRemoteResources()
 73  
     {
 74  41
         if ( this.remoteResources == null )
 75  
         {
 76  8
             this.remoteResources = new java.util.ArrayList<String>();
 77  
         }
 78  
 
 79  41
         return this.remoteResources;
 80  
     } //-- java.util.List<String> getRemoteResources()
 81  
 
 82  
     /**
 83  
      * Get source encoding of the remote resources contained in the
 84  
      * bundle.
 85  
      * 
 86  
      * @return String
 87  
      */
 88  
     public String getSourceEncoding()
 89  
     {
 90  26
         return this.sourceEncoding;
 91  
     } //-- String getSourceEncoding()
 92  
 
 93  
     /**
 94  
      * Method removeRemoteResource.
 95  
      * 
 96  
      * @param string
 97  
      */
 98  
     public void removeRemoteResource( String string )
 99  
     {
 100  0
         getRemoteResources().remove( string );
 101  0
     } //-- void removeRemoteResource( String )
 102  
 
 103  
     /**
 104  
      * Set the modelEncoding field.
 105  
      * 
 106  
      * @param modelEncoding
 107  
      */
 108  
     public void setModelEncoding( String modelEncoding )
 109  
     {
 110  9
         this.modelEncoding = modelEncoding;
 111  9
     } //-- void setModelEncoding( String )
 112  
 
 113  
     /**
 114  
      * Set remote resources that are contained in a remote
 115  
      * resources bundle.
 116  
      * 
 117  
      * @param remoteResources
 118  
      */
 119  
     public void setRemoteResources( java.util.List<String> remoteResources )
 120  
     {
 121  9
         this.remoteResources = remoteResources;
 122  9
     } //-- void setRemoteResources( java.util.List )
 123  
 
 124  
     /**
 125  
      * Set source encoding of the remote resources contained in the
 126  
      * bundle.
 127  
      * 
 128  
      * @param sourceEncoding
 129  
      */
 130  
     public void setSourceEncoding( String sourceEncoding )
 131  
     {
 132  10
         this.sourceEncoding = sourceEncoding;
 133  10
     } //-- void setSourceEncoding( String )
 134  
 
 135  
 }