1 /*
2 * $Id$
3 */
4
5 package org.apache.maven.model;
6
7 //---------------------------------/
8 //- Imported classes and packages -/
9 //---------------------------------/
10
11 import java.util.Date;
12
13 /**
14 * Describes the prerequisites a project can have.
15 *
16 * @version $Revision$ $Date$
17 */
18 public class Prerequisites implements java.io.Serializable {
19
20
21 //--------------------------/
22 //- Class/Member Variables -/
23 //--------------------------/
24
25 /**
26 * The minimum version of Maven required to build the project,
27 * or to use this
28 * plugin.
29 */
30 private String maven = "2.0";
31
32
33 //-----------/
34 //- Methods -/
35 //-----------/
36
37 /**
38 * Get the minimum version of Maven required to build the
39 * project, or to use this
40 * plugin.
41 *
42 * @return String
43 */
44 public String getMaven()
45 {
46 return this.maven;
47 } //-- String getMaven()
48
49 /**
50 * Set the minimum version of Maven required to build the
51 * project, or to use this
52 * plugin.
53 *
54 * @param maven
55 */
56 public void setMaven( String maven )
57 {
58 this.maven = maven;
59 } //-- void setMaven( String )
60
61
62 private String modelEncoding = "UTF-8";
63
64 /**
65 * Set an encoding used for reading/writing the model.
66 *
67 * @param modelEncoding the encoding used when reading/writing the model.
68 */
69 public void setModelEncoding( String modelEncoding )
70 {
71 this.modelEncoding = modelEncoding;
72 }
73
74 /**
75 * @return the current encoding used when reading/writing this model.
76 */
77 public String getModelEncoding()
78 {
79 return modelEncoding;
80 }
81 }