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