View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2012-01-20 18:05:12,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.artifact.repository.metadata;
9   
10  /**
11   * Versioning information for a snapshot artifact.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class SnapshotVersion
17      implements java.io.Serializable, java.lang.Cloneable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * The classifier of the snapshot artifact this version
26       * information belongs to.
27       */
28      private String classifier = "";
29  
30      /**
31       * The file extension of the snapshot artifact this version
32       * information belongs to.
33       */
34      private String extension;
35  
36      /**
37       * The resolved snapshot version of the artifact.
38       */
39      private String version;
40  
41      /**
42       * The timestamp when this version information was last
43       * updated. The timestamp is expressed using UTC in the format
44       * yyyyMMddHHmmss.
45       */
46      private String updated;
47  
48  
49        //-----------/
50       //- Methods -/
51      //-----------/
52  
53      /**
54       * Method clone.
55       * 
56       * @return SnapshotVersion
57       */
58      public SnapshotVersion clone()
59      {
60          try
61          {
62              SnapshotVersion copy = (SnapshotVersion) super.clone();
63  
64              return copy;
65          }
66          catch ( java.lang.Exception ex )
67          {
68              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
69                  + " does not support clone()" ).initCause( ex );
70          }
71      } //-- SnapshotVersion clone()
72  
73      /**
74       * Get the classifier of the snapshot artifact this version
75       * information belongs to.
76       * 
77       * @return String
78       */
79      public String getClassifier()
80      {
81          return this.classifier;
82      } //-- String getClassifier()
83  
84      /**
85       * Get the file extension of the snapshot artifact this version
86       * information belongs to.
87       * 
88       * @return String
89       */
90      public String getExtension()
91      {
92          return this.extension;
93      } //-- String getExtension()
94  
95      /**
96       * Get the timestamp when this version information was last
97       * updated. The timestamp is expressed using UTC in the format
98       * yyyyMMddHHmmss.
99       * 
100      * @return String
101      */
102     public String getUpdated()
103     {
104         return this.updated;
105     } //-- String getUpdated()
106 
107     /**
108      * Get the resolved snapshot version of the artifact.
109      * 
110      * @return String
111      */
112     public String getVersion()
113     {
114         return this.version;
115     } //-- String getVersion()
116 
117     /**
118      * Set the classifier of the snapshot artifact this version
119      * information belongs to.
120      * 
121      * @param classifier
122      */
123     public void setClassifier( String classifier )
124     {
125         this.classifier = classifier;
126     } //-- void setClassifier( String )
127 
128     /**
129      * Set the file extension of the snapshot artifact this version
130      * information belongs to.
131      * 
132      * @param extension
133      */
134     public void setExtension( String extension )
135     {
136         this.extension = extension;
137     } //-- void setExtension( String )
138 
139     /**
140      * Set the timestamp when this version information was last
141      * updated. The timestamp is expressed using UTC in the format
142      * yyyyMMddHHmmss.
143      * 
144      * @param updated
145      */
146     public void setUpdated( String updated )
147     {
148         this.updated = updated;
149     } //-- void setUpdated( String )
150 
151     /**
152      * Set the resolved snapshot version of the artifact.
153      * 
154      * @param version
155      */
156     public void setVersion( String version )
157     {
158         this.version = version;
159     } //-- void setVersion( String )
160 
161 }