1 /*
2 * $Id$
3 */
4
5 package org.apache.maven.toolchain.model;
6
7 //---------------------------------/
8 //- Imported classes and packages -/
9 //---------------------------------/
10
11 import java.util.Date;
12
13 /**
14 * Class ToolchainModel.
15 *
16 * @version $Revision$ $Date$
17 */
18 public class ToolchainModel implements java.io.Serializable {
19
20
21 //--------------------------/
22 //- Class/Member Variables -/
23 //--------------------------/
24
25 /**
26 *
27 * Type of toolchain.
28 */
29 private String type;
30
31 /**
32 * Field provides.
33 */
34 private Object provides;
35
36 /**
37 * Field configuration.
38 */
39 private Object configuration;
40
41
42 //-----------/
43 //- Methods -/
44 //-----------/
45
46 /**
47 * Get the configuration field.
48 *
49 * @return Object
50 */
51 public Object getConfiguration()
52 {
53 return this.configuration;
54 } //-- Object getConfiguration()
55
56 /**
57 * Get the provides field.
58 *
59 * @return Object
60 */
61 public Object getProvides()
62 {
63 return this.provides;
64 } //-- Object getProvides()
65
66 /**
67 * Get
68 * Type of toolchain.
69 *
70 * @return String
71 */
72 public String getType()
73 {
74 return this.type;
75 } //-- String getType()
76
77 /**
78 * Set the configuration field.
79 *
80 * @param configuration
81 */
82 public void setConfiguration( Object configuration )
83 {
84 this.configuration = configuration;
85 } //-- void setConfiguration( Object )
86
87 /**
88 * Set the provides field.
89 *
90 * @param provides
91 */
92 public void setProvides( Object provides )
93 {
94 this.provides = provides;
95 } //-- void setProvides( Object )
96
97 /**
98 * Set
99 * Type of toolchain.
100 *
101 * @param type
102 */
103 public void setType( String type )
104 {
105 this.type = type;
106 } //-- void setType( String )
107
108
109 private String modelEncoding = "UTF-8";
110
111 /**
112 * Set an encoding used for reading/writing the model.
113 *
114 * @param modelEncoding the encoding used when reading/writing the model.
115 */
116 public void setModelEncoding( String modelEncoding )
117 {
118 this.modelEncoding = modelEncoding;
119 }
120
121 /**
122 * @return the current encoding used when reading/writing this model.
123 */
124 public String getModelEncoding()
125 {
126 return modelEncoding;
127 }
128 }