|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
BuilderParameter.java | - | 100% | 100% | 100% |
|
1 |
// Copyright 2004 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.service.impl;
|
|
16 |
|
|
17 |
import java.util.ArrayList;
|
|
18 |
import java.util.List;
|
|
19 |
|
|
20 |
import org.apache.hivemind.impl.BaseLocatable;
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Parameter object used with {@link org.apache.hivemind.service.impl.BuilderFactory}.
|
|
24 |
*
|
|
25 |
* @author Howard Lewis Ship
|
|
26 |
*/
|
|
27 |
public class BuilderParameter extends BaseLocatable |
|
28 |
{ |
|
29 |
private String _className;
|
|
30 |
private List _properties = new ArrayList(); |
|
31 |
private List _parameters = new ArrayList(); |
|
32 |
private List _events = new ArrayList(); |
|
33 |
private String _initializeMethod;
|
|
34 |
|
|
35 | 215 |
public String getClassName()
|
36 |
{ |
|
37 | 215 |
return _className;
|
38 |
} |
|
39 |
|
|
40 | 18 |
public void addParameter(BuilderFacet facet) |
41 |
{ |
|
42 | 18 |
_parameters.add(facet); |
43 |
} |
|
44 |
|
|
45 | 215 |
public List getParameters()
|
46 |
{ |
|
47 | 215 |
return _parameters;
|
48 |
} |
|
49 |
|
|
50 | 1251 |
public void addProperty(BuilderFacet facet) |
51 |
{ |
|
52 | 1251 |
_properties.add(facet); |
53 |
} |
|
54 |
|
|
55 | 215 |
public List getProperties()
|
56 |
{ |
|
57 | 215 |
return _properties;
|
58 |
} |
|
59 |
|
|
60 | 213 |
public void setClassName(String string) |
61 |
{ |
|
62 | 213 |
_className = string; |
63 |
} |
|
64 |
|
|
65 | 3 |
public void addEventRegistration(EventRegistration registration) |
66 |
{ |
|
67 | 3 |
_events.add(registration); |
68 |
} |
|
69 |
|
|
70 | 214 |
public List getEventRegistrations()
|
71 |
{ |
|
72 | 214 |
return _events;
|
73 |
} |
|
74 |
|
|
75 | 214 |
public String getInitializeMethod()
|
76 |
{ |
|
77 | 214 |
return _initializeMethod;
|
78 |
} |
|
79 |
|
|
80 | 8 |
public void setInitializeMethod(String string) |
81 |
{ |
|
82 | 8 |
_initializeMethod = string; |
83 |
} |
|
84 |
|
|
85 |
} |
|
86 |
|
|