1 // =================== DO NOT EDIT THIS FILE ==================== 2 // Generated by Modello 1.9.1, 3 // any modifications will be overwritten. 4 // ============================================================== 5 6 package org.apache.maven.artifact.repository.metadata; 7 8 /** 9 * Snapshot data for the current artifact version. 10 * 11 * @version $Revision: 1008624 $ $Date: 2017-03-19 14:17:57 +0000 (Sun, 19 Mar 2017) $ 12 */ 13 @SuppressWarnings( "all" ) 14 public class Snapshot 15 implements java.io.Serializable, java.lang.Cloneable 16 { 17 18 //--------------------------/ 19 //- Class/Member Variables -/ 20 //--------------------------/ 21 22 /** 23 * The time it was deployed. 24 */ 25 private String timestamp; 26 27 /** 28 * The incremental build number. 29 */ 30 private int buildNumber = 0; 31 32 /** 33 * Whether to use a local copy instead (with filename that 34 * includes the base version). 35 */ 36 private boolean localCopy = false; 37 38 39 //-----------/ 40 //- Methods -/ 41 //-----------/ 42 43 /** 44 * Method clone. 45 * 46 * @return Snapshot 47 */ 48 public Snapshot clone() 49 { 50 try 51 { 52 Snapshot copy = (Snapshot) super.clone(); 53 54 return copy; 55 } 56 catch ( java.lang.Exception ex ) 57 { 58 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 59 + " does not support clone()" ).initCause( ex ); 60 } 61 } //-- Snapshot clone() 62 63 /** 64 * Get the incremental build number. 65 * 66 * @return int 67 */ 68 public int getBuildNumber() 69 { 70 return this.buildNumber; 71 } //-- int getBuildNumber() 72 73 /** 74 * Get the time it was deployed. 75 * 76 * @return String 77 */ 78 public String getTimestamp() 79 { 80 return this.timestamp; 81 } //-- String getTimestamp() 82 83 /** 84 * Get whether to use a local copy instead (with filename that 85 * includes the base version). 86 * 87 * @return boolean 88 */ 89 public boolean isLocalCopy() 90 { 91 return this.localCopy; 92 } //-- boolean isLocalCopy() 93 94 /** 95 * Set the incremental build number. 96 * 97 * @param buildNumber 98 */ 99 public void setBuildNumber( int buildNumber ) 100 { 101 this.buildNumber = buildNumber; 102 } //-- void setBuildNumber( int ) 103 104 /** 105 * Set whether to use a local copy instead (with filename that 106 * includes the base version). 107 * 108 * @param localCopy 109 */ 110 public void setLocalCopy( boolean localCopy ) 111 { 112 this.localCopy = localCopy; 113 } //-- void setLocalCopy( boolean ) 114 115 /** 116 * Set the time it was deployed. 117 * 118 * @param timestamp 119 */ 120 public void setTimestamp( String timestamp ) 121 { 122 this.timestamp = timestamp; 123 } //-- void setTimestamp( String ) 124 125 }