KickJava   Java API By Example, From Geeks To Geeks.

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


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.definition.Occurances;
18 import org.apache.hivemind.definition.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 JavaDoc _id;
31
32     private Occurances _count = Occurances.UNBOUNDED;
33
34     private SchemaImpl _contributionsSchema;
35
36     /** @since 1.1 */
37     private String JavaDoc _contributionsSchemaId;
38
39     /** @since 1.1 */
40     private Visibility _visibility = Visibility.PUBLIC;
41
42     /**
43      * Type of the configuration
44      */

45     private String JavaDoc _type;
46     
47     public String JavaDoc toString()
48     {
49         ToStringBuilder builder = new ToStringBuilder(this);
50
51         builder.append("id", _id);
52         builder.append("count", _count);
53         builder.append("contributionsSchema", _contributionsSchema);
54         builder.append("contributionsSchemaId", _contributionsSchemaId);
55         builder.append("visibility", _visibility);
56
57         return builder.toString();
58     }
59
60     public Occurances getCount()
61     {
62         return _count;
63     }
64
65     public void setCount(Occurances occurances)
66     {
67         _count = occurances;
68     }
69
70     public String JavaDoc getId()
71     {
72         return _id;
73     }
74
75     public void setId(String JavaDoc string)
76     {
77         _id = string;
78     }
79
80     public SchemaImpl getContributionsSchema()
81     {
82         return _contributionsSchema;
83     }
84
85     public void setContributionsSchema(SchemaImpl schema)
86     {
87         _contributionsSchema = schema;
88     }
89
90     /** @since 1.1 */
91     public String JavaDoc getContributionsSchemaId()
92     {
93         return _contributionsSchemaId;
94     }
95
96     /** @since 1.1 */
97     public void setContributionsSchemaId(String JavaDoc schemaId)
98     {
99         _contributionsSchemaId = schemaId;
100     }
101
102     /**
103      * @since 1.1
104      */

105     public Visibility getVisibility()
106     {
107         return _visibility;
108     }
109
110     /**
111      * @since 1.1
112      */

113     public void setVisibility(Visibility visibility)
114     {
115         _visibility = visibility;
116     }
117
118     public String JavaDoc getType()
119     {
120         return _type;
121     }
122
123     public void setType(String JavaDoc type)
124     {
125         _type = type;
126     }
127 }
Popular Tags