|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
DependencyDescriptor.java | - | 100% | 100% | 100% |
|
1 | // Copyright 2004, 2005 The Apache Software Foundation | |
2 | // | |
3 | // Licensed under the Apache License, Version 2.0 (the "License"); | |
4 | // you may not use this file except in compliance with the License. | |
5 | // You may obtain a copy of the License at | |
6 | // | |
7 | // http://www.apache.org/licenses/LICENSE-2.0 | |
8 | // | |
9 | // Unless required by applicable law or agreed to in writing, software | |
10 | // distributed under the License is distributed on an "AS IS" BASIS, | |
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
12 | // See the License for the specific language governing permissions and | |
13 | // limitations under the License. | |
14 | ||
15 | package org.apache.hivemind.parse; | |
16 | ||
17 | import org.apache.hivemind.impl.BaseLocatable; | |
18 | import org.apache.hivemind.util.ToStringBuilder; | |
19 | ||
20 | /** | |
21 | * Descriptor for <dependency> element. | |
22 | * | |
23 | * @author Knut Wannheden | |
24 | */ | |
25 | public final class DependencyDescriptor extends BaseLocatable | |
26 | { | |
27 | ||
28 | private String _moduleId; | |
29 | private String _version; | |
30 | ||
31 | 6 | public String getModuleId() |
32 | { | |
33 | 6 | return _moduleId; |
34 | } | |
35 | ||
36 | 13 | public void setModuleId(String moduleId) |
37 | { | |
38 | 13 | _moduleId = moduleId; |
39 | } | |
40 | ||
41 | 5 | public String getVersion() |
42 | { | |
43 | 5 | return _version; |
44 | } | |
45 | ||
46 | 13 | public void setVersion(String version) |
47 | { | |
48 | 13 | _version = version; |
49 | } | |
50 | ||
51 | 1 | public String toString() |
52 | { | |
53 | 1 | ToStringBuilder builder = new ToStringBuilder(this); |
54 | 1 | builder.append("moduleId", _moduleId); |
55 | 1 | builder.append("version", _version); |
56 | ||
57 | 1 | return builder.toString(); |
58 | } | |
59 | ||
60 | } |
|