|
|||||||||||||||||||
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 | |||||||||||||||
ServicePointDescriptor.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.Occurances;
|
|
18 |
import org.apache.hivemind.internal.Visibility;
|
|
19 |
import org.apache.hivemind.schema.impl.SchemaImpl;
|
|
20 |
import org.apache.hivemind.util.ToStringBuilder;
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Defines a service extension point. Corresponds to the <service-point> element of the module
|
|
24 |
* descriptor.
|
|
25 |
*
|
|
26 |
* @author Howard Lewis Ship
|
|
27 |
*/
|
|
28 |
public final class ServicePointDescriptor extends AbstractServiceDescriptor |
|
29 |
{ |
|
30 |
private String _id;
|
|
31 |
|
|
32 |
private String _interfaceClassName;
|
|
33 |
|
|
34 |
private SchemaImpl _parametersSchema;
|
|
35 |
|
|
36 |
/** @since 1.1 */
|
|
37 |
private String _parametersSchemaId;
|
|
38 |
|
|
39 |
private Occurances _parametersCount = Occurances.REQUIRED;
|
|
40 |
|
|
41 |
/** @since 1.1 */
|
|
42 |
private Visibility _visibility = Visibility.PUBLIC;
|
|
43 |
|
|
44 | 2233 |
public String getId()
|
45 |
{ |
|
46 | 2233 |
return _id;
|
47 |
} |
|
48 |
|
|
49 | 2231 |
public String getInterfaceClassName()
|
50 |
{ |
|
51 | 2231 |
return _interfaceClassName;
|
52 |
} |
|
53 |
|
|
54 | 2257 |
public void setId(String string) |
55 |
{ |
|
56 | 2257 |
_id = string; |
57 |
} |
|
58 |
|
|
59 | 2257 |
public void setInterfaceClassName(String string) |
60 |
{ |
|
61 | 2257 |
_interfaceClassName = string; |
62 |
} |
|
63 |
|
|
64 | 1 |
protected void extendDescription(ToStringBuilder builder) |
65 |
{ |
|
66 | 1 |
builder.append("id", _id);
|
67 | 1 |
builder.append("interfaceClassName", _interfaceClassName);
|
68 | 1 |
builder.append("parametersSchema", _parametersSchema);
|
69 | 1 |
builder.append("parametersSchemaId", _parametersSchemaId);
|
70 | 1 |
builder.append("parametersCount", _parametersCount);
|
71 | 1 |
builder.append("visibility", _visibility);
|
72 |
} |
|
73 |
|
|
74 | 2281 |
public SchemaImpl getParametersSchema()
|
75 |
{ |
|
76 | 2281 |
return _parametersSchema;
|
77 |
} |
|
78 |
|
|
79 | 114 |
public void setParametersSchema(SchemaImpl schema) |
80 |
{ |
|
81 | 114 |
_parametersSchema = schema; |
82 |
} |
|
83 |
|
|
84 |
/** @since 1.1 */
|
|
85 | 2344 |
public String getParametersSchemaId()
|
86 |
{ |
|
87 | 2344 |
return _parametersSchemaId;
|
88 |
} |
|
89 |
|
|
90 |
/** @since 1.1 */
|
|
91 | 2257 |
public void setParametersSchemaId(String schemaId) |
92 |
{ |
|
93 | 2257 |
_parametersSchemaId = schemaId; |
94 |
} |
|
95 |
|
|
96 | 2229 |
public Occurances getParametersCount()
|
97 |
{ |
|
98 | 2229 |
return _parametersCount;
|
99 |
} |
|
100 |
|
|
101 | 108 |
public void setParametersCount(Occurances occurances) |
102 |
{ |
|
103 | 108 |
_parametersCount = occurances; |
104 |
} |
|
105 |
|
|
106 |
/**
|
|
107 |
* @since 1.1
|
|
108 |
*/
|
|
109 | 2230 |
public Visibility getVisibility()
|
110 |
{ |
|
111 | 2230 |
return _visibility;
|
112 |
} |
|
113 |
|
|
114 |
/**
|
|
115 |
* @since 1.1
|
|
116 |
*/
|
|
117 | 974 |
public void setVisibility(Visibility visibility) |
118 |
{ |
|
119 | 974 |
_visibility = visibility; |
120 |
} |
|
121 |
} |
|