001 // =================== DO NOT EDIT THIS FILE ====================
002 // Generated by Modello 1.7,
003 // any modifications will be overwritten.
004 // ==============================================================
005
006 package org.apache.maven.artifact.repository.metadata;
007
008 /**
009 * Snapshot data for the current artifact version.
010 *
011 * @version $Revision$ $Date$
012 */
013 @SuppressWarnings( "all" )
014 public class Snapshot
015 implements java.io.Serializable, java.lang.Cloneable
016 {
017
018 //--------------------------/
019 //- Class/Member Variables -/
020 //--------------------------/
021
022 /**
023 * The time it was deployed.
024 */
025 private String timestamp;
026
027 /**
028 * The incremental build number.
029 */
030 private int buildNumber = 0;
031
032 /**
033 * Whether to use a local copy instead (with filename that
034 * includes the base version).
035 */
036 private boolean localCopy = false;
037
038
039 //-----------/
040 //- Methods -/
041 //-----------/
042
043 /**
044 * Method clone.
045 *
046 * @return Snapshot
047 */
048 public Snapshot clone()
049 {
050 try
051 {
052 Snapshot copy = (Snapshot) super.clone();
053
054 return copy;
055 }
056 catch ( java.lang.Exception ex )
057 {
058 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
059 + " does not support clone()" ).initCause( ex );
060 }
061 } //-- Snapshot clone()
062
063 /**
064 * Get the incremental build number.
065 *
066 * @return int
067 */
068 public int getBuildNumber()
069 {
070 return this.buildNumber;
071 } //-- int getBuildNumber()
072
073 /**
074 * Get the time it was deployed.
075 *
076 * @return String
077 */
078 public String getTimestamp()
079 {
080 return this.timestamp;
081 } //-- String getTimestamp()
082
083 /**
084 * Get whether to use a local copy instead (with filename that
085 * includes the base version).
086 *
087 * @return boolean
088 */
089 public boolean isLocalCopy()
090 {
091 return this.localCopy;
092 } //-- boolean isLocalCopy()
093
094 /**
095 * Set the incremental build number.
096 *
097 * @param buildNumber
098 */
099 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 }