1 /*
2 =================== DO NOT EDIT THIS FILE ====================
3 Generated by Modello 1.5 on 2015-06-17 12:02:34,
4 any modifications will be overwritten.
5 ==============================================================
6 */
7
8 package org.codehaus.mojo.nbm.model;
9
10 /**
11 * Class NbmResource.
12 *
13 * @version $Revision$ $Date$
14 */
15 @SuppressWarnings( "all" )
16 public class NbmResource
17 implements java.io.Serializable
18 {
19
20 //--------------------------/
21 //- Class/Member Variables -/
22 //--------------------------/
23
24 /**
25 * The base directory, all paths within the nbm file will be
26 * the same as paths within the base directory.
27 */
28 private String baseDirectory;
29
30 /**
31 * A relative path to be added to cluster root where the files
32 * will be copied to.
33 */
34 private String relativeClusterPath;
35
36 /**
37 * Field includes.
38 */
39 private java.util.List<String> includes;
40
41 /**
42 * Field excludes.
43 */
44 private java.util.List<String> excludes;
45
46
47 //-----------/
48 //- Methods -/
49 //-----------/
50
51 /**
52 * Method addExclude.
53 *
54 * @param string
55 */
56 public void addExclude( String string )
57 {
58 getExcludes().add( string );
59 } //-- void addExclude( String )
60
61 /**
62 * Method addInclude.
63 *
64 * @param string
65 */
66 public void addInclude( String string )
67 {
68 getIncludes().add( string );
69 } //-- void addInclude( String )
70
71 /**
72 * Get the base directory, all paths within the nbm file will
73 * be the same as paths within the base directory.
74 *
75 * @return String
76 */
77 public String getBaseDirectory()
78 {
79 return this.baseDirectory;
80 } //-- String getBaseDirectory()
81
82 /**
83 * Method getExcludes.
84 *
85 * @return List
86 */
87 public java.util.List<String> getExcludes()
88 {
89 if ( this.excludes == null )
90 {
91 this.excludes = new java.util.ArrayList<String>();
92 }
93
94 return this.excludes;
95 } //-- java.util.List<String> getExcludes()
96
97 /**
98 * Method getIncludes.
99 *
100 * @return List
101 */
102 public java.util.List<String> getIncludes()
103 {
104 if ( this.includes == null )
105 {
106 this.includes = new java.util.ArrayList<String>();
107 }
108
109 return this.includes;
110 } //-- java.util.List<String> getIncludes()
111
112 /**
113 * Get a relative path to be added to cluster root where the
114 * files will be copied to.
115 *
116 * @return String
117 */
118 public String getRelativeClusterPath()
119 {
120 return this.relativeClusterPath;
121 } //-- String getRelativeClusterPath()
122
123 /**
124 * Method removeExclude.
125 *
126 * @param string
127 */
128 public void removeExclude( String string )
129 {
130 getExcludes().remove( string );
131 } //-- void removeExclude( String )
132
133 /**
134 * Method removeInclude.
135 *
136 * @param string
137 */
138 public void removeInclude( String string )
139 {
140 getIncludes().remove( string );
141 } //-- void removeInclude( String )
142
143 /**
144 * Set the base directory, all paths within the nbm file will
145 * be the same as paths within the base directory.
146 *
147 * @param baseDirectory
148 */
149 public void setBaseDirectory( String baseDirectory )
150 {
151 this.baseDirectory = baseDirectory;
152 } //-- void setBaseDirectory( String )
153
154 /**
155 * Set exclude pattern, what files within the basedir shall not
156 * be included.
157 *
158 * @param excludes
159 */
160 public void setExcludes( java.util.List<String> excludes )
161 {
162 this.excludes = excludes;
163 } //-- void setExcludes( java.util.List )
164
165 /**
166 * Set include pattern, what shall be included in the nbm.
167 *
168 * @param includes
169 */
170 public void setIncludes( java.util.List<String> includes )
171 {
172 this.includes = includes;
173 } //-- void setIncludes( java.util.List )
174
175 /**
176 * Set a relative path to be added to cluster root where the
177 * files will be copied to.
178 *
179 * @param relativeClusterPath
180 */
181 public void setRelativeClusterPath( String relativeClusterPath )
182 {
183 this.relativeClusterPath = relativeClusterPath;
184 } //-- void setRelativeClusterPath( String )
185
186 }