KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > hivemind > impl > SymbolSourceContribution


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.impl;
16
17 import org.apache.hivemind.Orderable;
18 import org.apache.hivemind.SymbolSource;
19
20 /**
21  * Contribution to the <code>org.apache.hivemind.SymbolSource</code>
22  * configuration extension point; used to provide
23  * a {@link org.apache.hivemind.SymbolSource} implementation
24  * (often, as a service defined in HiveMind itself), and
25  * advice on ordering the service.
26  *
27  * @author Howard Lewis Ship
28  */

29 public class SymbolSourceContribution implements Orderable
30 {
31     private String JavaDoc _name;
32     private String JavaDoc _precedingNames;
33     private String JavaDoc _followingNames;
34
35     private SymbolSource _source;
36
37     public SymbolSourceContribution()
38     {
39     }
40     
41     public SymbolSourceContribution(SymbolSource source, String JavaDoc name, String JavaDoc precedingNames, String JavaDoc followingNames)
42     {
43         _source = source;
44         _name = name;
45         _precedingNames = precedingNames;
46         _followingNames = followingNames;
47     }
48
49     public SymbolSource getSource()
50     {
51         return _source;
52     }
53
54     public void setSource(SymbolSource source)
55     {
56         _source = source;
57     }
58
59     public String JavaDoc getFollowingNames()
60     {
61         return _followingNames;
62     }
63
64     public String JavaDoc getName()
65     {
66         return _name;
67     }
68
69     public String JavaDoc getPrecedingNames()
70     {
71         return _precedingNames;
72     }
73
74     public void setFollowingNames(String JavaDoc string)
75     {
76         _followingNames = string;
77     }
78
79     public void setName(String JavaDoc string)
80     {
81         _name = string;
82     }
83
84     public void setPrecedingNames(String JavaDoc string)
85     {
86         _precedingNames = string;
87     }
88
89 }
90
Popular Tags