View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.1.2,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.buildcache.xml.diff;
7   
8   /**
9    * Class Diff.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class Diff
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Field mismatches.
24       */
25      private java.util.List<Mismatch> mismatches;
26  
27      /**
28       * Field modelEncoding.
29       */
30      private String modelEncoding = "UTF-8";
31  
32  
33        //-----------/
34       //- Methods -/
35      //-----------/
36  
37      /**
38       * Method addMismatch.
39       * 
40       * @param mismatch a mismatch object.
41       */
42      public void addMismatch( Mismatch mismatch )
43      {
44          getMismatches().add( mismatch );
45      } //-- void addMismatch( Mismatch )
46  
47      /**
48       * Method getMismatches.
49       * 
50       * @return List
51       */
52      public java.util.List<Mismatch> getMismatches()
53      {
54          if ( this.mismatches == null )
55          {
56              this.mismatches = new java.util.ArrayList<Mismatch>();
57          }
58  
59          return this.mismatches;
60      } //-- java.util.List<Mismatch> getMismatches()
61  
62      /**
63       * Get the modelEncoding field.
64       * 
65       * @return String
66       */
67      public String getModelEncoding()
68      {
69          return this.modelEncoding;
70      } //-- String getModelEncoding()
71  
72      /**
73       * Method removeMismatch.
74       * 
75       * @param mismatch a mismatch object.
76       */
77      public void removeMismatch( Mismatch mismatch )
78      {
79          getMismatches().remove( mismatch );
80      } //-- void removeMismatch( Mismatch )
81  
82      /**
83       * Set the mismatches field.
84       * 
85       * @param mismatches a mismatches object.
86       */
87      public void setMismatches( java.util.List<Mismatch> mismatches )
88      {
89          this.mismatches = mismatches;
90      } //-- void setMismatches( java.util.List )
91  
92      /**
93       * Set the modelEncoding field.
94       * 
95       * @param modelEncoding a modelEncoding object.
96       */
97      public void setModelEncoding( String modelEncoding )
98      {
99          this.modelEncoding = modelEncoding;
100     } //-- void setModelEncoding( String )
101 
102 }