Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Verifications |
|
| 1.8333333333333333;1,833 |
1 | /* | |
2 | =================== DO NOT EDIT THIS FILE ==================== | |
3 | Generated by Modello 1.0.1 on 2010-01-21 22:42:55, | |
4 | any modifications will be overwritten. | |
5 | ============================================================== | |
6 | */ | |
7 | ||
8 | package org.apache.maven.plugin.verifier.model; | |
9 | ||
10 | /** | |
11 | * Root element of the verifications file. | |
12 | * | |
13 | * @version $Revision$ $Date$ | |
14 | */ | |
15 | 12 | public class Verifications |
16 | implements java.io.Serializable | |
17 | { | |
18 | ||
19 | //--------------------------/ | |
20 | //- Class/Member Variables -/ | |
21 | //--------------------------/ | |
22 | ||
23 | /** | |
24 | * Field files. | |
25 | */ | |
26 | private java.util.List/*<File>*/ files; | |
27 | ||
28 | /** | |
29 | * Field modelEncoding. | |
30 | */ | |
31 | 12 | private String modelEncoding = "UTF-8"; |
32 | ||
33 | ||
34 | //-----------/ | |
35 | //- Methods -/ | |
36 | //-----------/ | |
37 | ||
38 | /** | |
39 | * Method addFile. | |
40 | * | |
41 | * @param file | |
42 | */ | |
43 | public void addFile( File file ) | |
44 | { | |
45 | 0 | if ( !(file instanceof File) ) |
46 | { | |
47 | 0 | throw new ClassCastException( "Verifications.addFiles(file) parameter must be instanceof " + File.class.getName() ); |
48 | } | |
49 | 0 | getFiles().add( file ); |
50 | 0 | } //-- void addFile( File ) |
51 | ||
52 | /** | |
53 | * Method getFiles. | |
54 | * | |
55 | * @return List | |
56 | */ | |
57 | public java.util.List/*<File>*/ getFiles() | |
58 | { | |
59 | 12 | if ( this.files == null ) |
60 | { | |
61 | 0 | this.files = new java.util.ArrayList/*<File>*/(); |
62 | } | |
63 | ||
64 | 12 | return this.files; |
65 | } //-- java.util.List/*<File>*/ getFiles() | |
66 | ||
67 | /** | |
68 | * Method getModelEncoding. | |
69 | * | |
70 | * @return the current encoding used when reading/writing this | |
71 | * model | |
72 | */ | |
73 | public String getModelEncoding() | |
74 | { | |
75 | 0 | return modelEncoding; |
76 | } //-- String getModelEncoding() | |
77 | ||
78 | /** | |
79 | * Method removeFile. | |
80 | * | |
81 | * @param file | |
82 | */ | |
83 | public void removeFile( File file ) | |
84 | { | |
85 | 0 | if ( !(file instanceof File) ) |
86 | { | |
87 | 0 | throw new ClassCastException( "Verifications.removeFiles(file) parameter must be instanceof " + File.class.getName() ); |
88 | } | |
89 | 0 | getFiles().remove( file ); |
90 | 0 | } //-- void removeFile( File ) |
91 | ||
92 | /** | |
93 | * Set list of files and directories to check. | |
94 | * | |
95 | * @param files | |
96 | */ | |
97 | public void setFiles( java.util.List/*<File>*/ files ) | |
98 | { | |
99 | 12 | this.files = files; |
100 | 12 | } //-- void setFiles( java.util.List ) |
101 | ||
102 | /** | |
103 | * Set an encoding used for reading/writing the model. | |
104 | * | |
105 | * @param modelEncoding | |
106 | */ | |
107 | public void setModelEncoding( String modelEncoding ) | |
108 | { | |
109 | 0 | this.modelEncoding = modelEncoding; |
110 | 0 | } //-- void setModelEncoding( String ) |
111 | ||
112 | ||
113 | } |