Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
EclipseConfigFile |
|
| 1.0;1 |
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 | */ | |
19 | package org.apache.maven.plugin.eclipse; | |
20 | ||
21 | import java.net.URL; | |
22 | ||
23 | /** | |
24 | * Represents a generic configuration file, with a name and a content. | |
25 | * | |
26 | * @author Fabrizio Giustina | |
27 | * @version $Id: EclipseConfigFile.java 617563 2008-02-01 17:16:45Z aheritier $ | |
28 | */ | |
29 | 0 | public class EclipseConfigFile |
30 | { | |
31 | /** | |
32 | * The name of the file. | |
33 | */ | |
34 | private String name; | |
35 | ||
36 | /** | |
37 | * The file content. | |
38 | */ | |
39 | private String content; | |
40 | ||
41 | /** | |
42 | * The file location | |
43 | * | |
44 | * @since 2.5 | |
45 | */ | |
46 | private String location; | |
47 | ||
48 | /** | |
49 | * The file URL | |
50 | * | |
51 | * @since 2.5 | |
52 | */ | |
53 | private URL url; | |
54 | ||
55 | /** | |
56 | * Getter for <code>content</code>. | |
57 | * | |
58 | * @return Returns the content. | |
59 | */ | |
60 | public String getContent() | |
61 | { | |
62 | 0 | return content; |
63 | } | |
64 | ||
65 | /** | |
66 | * Setter for <code>content</code>. | |
67 | * | |
68 | * @param content The content to set. | |
69 | */ | |
70 | public void setContent( String content ) | |
71 | { | |
72 | 0 | this.content = content; |
73 | 0 | } |
74 | ||
75 | /** | |
76 | * Getter for <code>name</code>. | |
77 | * | |
78 | * @return Returns the name. | |
79 | */ | |
80 | public String getName() | |
81 | { | |
82 | 0 | return name; |
83 | } | |
84 | ||
85 | /** | |
86 | * Setter for <code>name</code>. | |
87 | * | |
88 | * @param name The name to set. | |
89 | */ | |
90 | public void setName( String name ) | |
91 | { | |
92 | 0 | this.name = name; |
93 | 0 | } |
94 | ||
95 | /** | |
96 | * Getter for <code>location</code>. | |
97 | * | |
98 | * @return Returns the location. | |
99 | */ | |
100 | public String getLocation() | |
101 | { | |
102 | 0 | return location; |
103 | } | |
104 | ||
105 | /** | |
106 | * Setter for <code>location</code>. | |
107 | * | |
108 | * @param location The location to set. | |
109 | */ | |
110 | public void setLocation( String location ) | |
111 | { | |
112 | 0 | this.location = location; |
113 | 0 | } |
114 | ||
115 | /** | |
116 | * Getter for <code>url</code>. | |
117 | * | |
118 | * @return Returns the url. | |
119 | */ | |
120 | public URL getURL() | |
121 | { | |
122 | 0 | return url; |
123 | } | |
124 | ||
125 | /** | |
126 | * Setter for <code>url</code>. | |
127 | * | |
128 | * @param location The url to set. | |
129 | */ | |
130 | public void setURL( URL url ) | |
131 | { | |
132 | 0 | this.url = url; |
133 | 0 | } |
134 | } |