|
|||||||||||||||||||
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 | |||||||||||||||
ConfigurationPointDescriptor.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 |
* Descriptor for the <configuration-point> element, which defines a configuration extension
|
|
24 |
* point.
|
|
25 |
*
|
|
26 |
* @author Howard Lewis Ship
|
|
27 |
*/
|
|
28 |
public final class ConfigurationPointDescriptor extends BaseAnnotationHolder |
|
29 |
{ |
|
30 |
private String _id;
|
|
31 |
|
|
32 |
private Occurances _count = Occurances.UNBOUNDED;
|
|
33 |
|
|
34 |
private SchemaImpl _contributionsSchema;
|
|
35 |
|
|
36 |
/** @since 1.1 */
|
|
37 |
private String _contributionsSchemaId;
|
|
38 |
|
|
39 |
/** @since 1.1 */
|
|
40 |
private Visibility _visibility = Visibility.PUBLIC;
|
|
41 |
|
|
42 | 1 |
public String toString()
|
43 |
{ |
|
44 | 1 |
ToStringBuilder builder = new ToStringBuilder(this); |
45 |
|
|
46 | 1 |
builder.append("id", _id);
|
47 | 1 |
builder.append("count", _count);
|
48 | 1 |
builder.append("contributionsSchema", _contributionsSchema);
|
49 | 1 |
builder.append("contributionsSchemaId", _contributionsSchemaId);
|
50 | 1 |
builder.append("visibility", _visibility);
|
51 |
|
|
52 | 1 |
return builder.toString();
|
53 |
} |
|
54 |
|
|
55 | 981 |
public Occurances getCount()
|
56 |
{ |
|
57 | 981 |
return _count;
|
58 |
} |
|
59 |
|
|
60 | 24 |
public void setCount(Occurances occurances) |
61 |
{ |
|
62 | 24 |
_count = occurances; |
63 |
} |
|
64 |
|
|
65 | 1011 |
public String getId()
|
66 |
{ |
|
67 | 1011 |
return _id;
|
68 |
} |
|
69 |
|
|
70 | 1028 |
public void setId(String string) |
71 |
{ |
|
72 | 1028 |
_id = string; |
73 |
} |
|
74 |
|
|
75 | 1054 |
public SchemaImpl getContributionsSchema()
|
76 |
{ |
|
77 | 1054 |
return _contributionsSchema;
|
78 |
} |
|
79 |
|
|
80 | 716 |
public void setContributionsSchema(SchemaImpl schema) |
81 |
{ |
|
82 | 716 |
_contributionsSchema = schema; |
83 |
} |
|
84 |
|
|
85 |
/** @since 1.1 */
|
|
86 | 1714 |
public String getContributionsSchemaId()
|
87 |
{ |
|
88 | 1714 |
return _contributionsSchemaId;
|
89 |
} |
|
90 |
|
|
91 |
/** @since 1.1 */
|
|
92 | 1025 |
public void setContributionsSchemaId(String schemaId) |
93 |
{ |
|
94 | 1025 |
_contributionsSchemaId = schemaId; |
95 |
} |
|
96 |
|
|
97 |
/**
|
|
98 |
* @since 1.1
|
|
99 |
*/
|
|
100 | 1007 |
public Visibility getVisibility()
|
101 |
{ |
|
102 | 1007 |
return _visibility;
|
103 |
} |
|
104 |
|
|
105 |
/**
|
|
106 |
* @since 1.1
|
|
107 |
*/
|
|
108 | 2 |
public void setVisibility(Visibility visibility) |
109 |
{ |
|
110 | 2 |
_visibility = visibility; |
111 |
} |
|
112 |
} |
|