Coverage Report - org.apache.maven.artifact.repository.metadata.Snapshot
 
Classes in this File Line Coverage Branch Coverage Complexity
Snapshot
0%
0/16
N/A
1
 
 1  
 /*
 2  
  * $Id$
 3  
  */
 4  
 
 5  
 package org.apache.maven.artifact.repository.metadata;
 6  
 
 7  
   //---------------------------------/
 8  
  //- Imported classes and packages -/
 9  
 //---------------------------------/
 10  
 
 11  
 import java.util.Date;
 12  
 
 13  
 /**
 14  
  * Snapshot data for the current version.
 15  
  * 
 16  
  * @version $Revision$ $Date$
 17  
  */
 18  0
 public class Snapshot implements java.io.Serializable {
 19  
 
 20  
 
 21  
       //--------------------------/
 22  
      //- Class/Member Variables -/
 23  
     //--------------------------/
 24  
 
 25  
     /**
 26  
      * The time it was deployed.
 27  
      */
 28  
     private String timestamp;
 29  
 
 30  
     /**
 31  
      * The incremental build number.
 32  
      */
 33  0
     private int buildNumber = 0;
 34  
 
 35  
     /**
 36  
      * Whether to use a local copy instead (with filename that
 37  
      * includes the base version).
 38  
      */
 39  0
     private boolean localCopy = false;
 40  
 
 41  
 
 42  
       //-----------/
 43  
      //- Methods -/
 44  
     //-----------/
 45  
 
 46  
     /**
 47  
      * Get the incremental build number.
 48  
      * 
 49  
      * @return int
 50  
      */
 51  
     public int getBuildNumber()
 52  
     {
 53  0
         return this.buildNumber;
 54  
     } //-- int getBuildNumber() 
 55  
 
 56  
     /**
 57  
      * Get the time it was deployed.
 58  
      * 
 59  
      * @return String
 60  
      */
 61  
     public String getTimestamp()
 62  
     {
 63  0
         return this.timestamp;
 64  
     } //-- String getTimestamp() 
 65  
 
 66  
     /**
 67  
      * Get whether to use a local copy instead (with filename that
 68  
      * includes the base version).
 69  
      * 
 70  
      * @return boolean
 71  
      */
 72  
     public boolean isLocalCopy()
 73  
     {
 74  0
         return this.localCopy;
 75  
     } //-- boolean isLocalCopy() 
 76  
 
 77  
     /**
 78  
      * Set the incremental build number.
 79  
      * 
 80  
      * @param buildNumber
 81  
      */
 82  
     public void setBuildNumber( int buildNumber )
 83  
     {
 84  0
         this.buildNumber = buildNumber;
 85  0
     } //-- void setBuildNumber( int ) 
 86  
 
 87  
     /**
 88  
      * Set whether to use a local copy instead (with filename that
 89  
      * includes the base version).
 90  
      * 
 91  
      * @param localCopy
 92  
      */
 93  
     public void setLocalCopy( boolean localCopy )
 94  
     {
 95  0
         this.localCopy = localCopy;
 96  0
     } //-- void setLocalCopy( boolean ) 
 97  
 
 98  
     /**
 99  
      * Set the time it was deployed.
 100  
      * 
 101  
      * @param timestamp
 102  
      */
 103  
     public void setTimestamp( String timestamp )
 104  
     {
 105  0
         this.timestamp = timestamp;
 106  0
     } //-- void setTimestamp( String ) 
 107  
 
 108  
 
 109  0
     private String modelEncoding = "UTF-8";
 110  
 
 111  
     /**
 112  
      * Set an encoding used for reading/writing the model.
 113  
      *
 114  
      * @param modelEncoding the encoding used when reading/writing the model.
 115  
      */
 116  
     public void setModelEncoding( String modelEncoding )
 117  
     {
 118  0
         this.modelEncoding = modelEncoding;
 119  0
     }
 120  
 
 121  
     /**
 122  
      * @return the current encoding used when reading/writing this model.
 123  
      */
 124  
     public String getModelEncoding()
 125  
     {
 126  0
         return modelEncoding;
 127  
     }
 128  
 }