KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > hivemind > parse > DependencyDescriptor


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 JavaDoc _moduleId;
29     private String JavaDoc _version;
30
31     public String JavaDoc getModuleId()
32     {
33         return _moduleId;
34     }
35
36     public void setModuleId(String JavaDoc moduleId)
37     {
38         _moduleId = moduleId;
39     }
40
41     public String JavaDoc getVersion()
42     {
43         return _version;
44     }
45
46     public void setVersion(String JavaDoc version)
47     {
48         _version = version;
49     }
50
51     public String JavaDoc toString()
52     {
53         ToStringBuilder builder = new ToStringBuilder(this);
54         builder.append("moduleId", _moduleId);
55         builder.append("version", _version);
56
57         return builder.toString();
58     }
59
60 }
61
Popular Tags