1 /*
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 =================== DO NOT EDIT THIS FILE ====================
19 Generated by Modello 2.5.1,
20 any modifications will be overwritten.
21 ==============================================================
22 */
23
24 package org.apache.maven.buildcache.xml.diff;
25
26 /**
27 * Class Mismatch.
28 *
29 * @version $Revision$ $Date$
30 */
31 @SuppressWarnings( "all" )
32 public class Mismatch
33 implements java.io.Serializable
34 {
35
36 //--------------------------/
37 //- Class/Member Variables -/
38 //--------------------------/
39
40 /**
41 * Field detail.
42 */
43 private java.util.List<MismatchDetail> detail;
44
45 /**
46 * Field item.
47 */
48 private String item;
49
50 /**
51 * Field current.
52 */
53 private String current;
54
55 /**
56 * Field baseline.
57 */
58 private String baseline;
59
60 /**
61 * Field reason.
62 */
63 private String reason;
64
65 /**
66 * Field resolution.
67 */
68 private String resolution;
69
70 /**
71 * Field context.
72 */
73 private String context;
74
75
76 //-----------/
77 //- Methods -/
78 //-----------/
79
80 /**
81 * Method addDetail.
82 *
83 * @param mismatchDetail a mismatchDetail object.
84 */
85 public void addDetail( MismatchDetail mismatchDetail )
86 {
87 getDetail().add( mismatchDetail );
88 } //-- void addDetail( MismatchDetail )
89
90 /**
91 * Get the baseline field.
92 *
93 * @return String
94 */
95 public String getBaseline()
96 {
97 return this.baseline;
98 } //-- String getBaseline()
99
100 /**
101 * Get the context field.
102 *
103 * @return String
104 */
105 public String getContext()
106 {
107 return this.context;
108 } //-- String getContext()
109
110 /**
111 * Get the current field.
112 *
113 * @return String
114 */
115 public String getCurrent()
116 {
117 return this.current;
118 } //-- String getCurrent()
119
120 /**
121 * Method getDetail.
122 *
123 * @return List
124 */
125 public java.util.List<MismatchDetail> getDetail()
126 {
127 if ( this.detail == null )
128 {
129 this.detail = new java.util.ArrayList<MismatchDetail>();
130 }
131
132 return this.detail;
133 } //-- java.util.List<MismatchDetail> getDetail()
134
135 /**
136 * Get the item field.
137 *
138 * @return String
139 */
140 public String getItem()
141 {
142 return this.item;
143 } //-- String getItem()
144
145 /**
146 * Get the reason field.
147 *
148 * @return String
149 */
150 public String getReason()
151 {
152 return this.reason;
153 } //-- String getReason()
154
155 /**
156 * Get the resolution field.
157 *
158 * @return String
159 */
160 public String getResolution()
161 {
162 return this.resolution;
163 } //-- String getResolution()
164
165 /**
166 * Method removeDetail.
167 *
168 * @param mismatchDetail a mismatchDetail object.
169 */
170 public void removeDetail( MismatchDetail mismatchDetail )
171 {
172 getDetail().remove( mismatchDetail );
173 } //-- void removeDetail( MismatchDetail )
174
175 /**
176 * Set the baseline field.
177 *
178 * @param baseline a baseline object.
179 */
180 public void setBaseline( String baseline )
181 {
182 this.baseline = baseline;
183 } //-- void setBaseline( String )
184
185 /**
186 * Set the context field.
187 *
188 * @param context a context object.
189 */
190 public void setContext( String context )
191 {
192 this.context = context;
193 } //-- void setContext( String )
194
195 /**
196 * Set the current field.
197 *
198 * @param current a current object.
199 */
200 public void setCurrent( String current )
201 {
202 this.current = current;
203 } //-- void setCurrent( String )
204
205 /**
206 * Set the detail field.
207 *
208 * @param detail a detail object.
209 */
210 public void setDetail( java.util.List<MismatchDetail> detail )
211 {
212 this.detail = detail;
213 } //-- void setDetail( java.util.List )
214
215 /**
216 * Set the item field.
217 *
218 * @param item a item object.
219 */
220 public void setItem( String item )
221 {
222 this.item = item;
223 } //-- void setItem( String )
224
225 /**
226 * Set the reason field.
227 *
228 * @param reason a reason object.
229 */
230 public void setReason( String reason )
231 {
232 this.reason = reason;
233 } //-- void setReason( String )
234
235 /**
236 * Set the resolution field.
237 *
238 * @param resolution a resolution object.
239 */
240 public void setResolution( String resolution )
241 {
242 this.resolution = resolution;
243 } //-- void setResolution( String )
244
245 }