View Javadoc

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