001: // Copyright 2004, 2005 The Apache Software Foundation
002: //
003: // Licensed under the Apache License, Version 2.0 (the "License");
004: // you may not use this file except in compliance with the License.
005: // You may obtain a copy of the License at
006: //
007: // http://www.apache.org/licenses/LICENSE-2.0
008: //
009: // Unless required by applicable law or agreed to in writing, software
010: // distributed under the License is distributed on an "AS IS" BASIS,
011: // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012: // See the License for the specific language governing permissions and
013: // limitations under the License.
014:
015: package org.apache.hivemind.parse;
016:
017: import org.apache.hivemind.Occurances;
018: import org.apache.hivemind.internal.Visibility;
019: import org.apache.hivemind.schema.impl.SchemaImpl;
020: import org.apache.hivemind.util.ToStringBuilder;
021:
022: /**
023: * Descriptor for the <configuration-point> element, which defines a configuration extension
024: * point.
025: *
026: * @author Howard Lewis Ship
027: */
028: public final class ConfigurationPointDescriptor extends
029: BaseAnnotationHolder {
030: private String _id;
031:
032: private Occurances _count = Occurances.UNBOUNDED;
033:
034: private SchemaImpl _contributionsSchema;
035:
036: /** @since 1.1 */
037: private String _contributionsSchemaId;
038:
039: /** @since 1.1 */
040: private Visibility _visibility = Visibility.PUBLIC;
041:
042: public String toString() {
043: ToStringBuilder builder = new ToStringBuilder(this );
044:
045: builder.append("id", _id);
046: builder.append("count", _count);
047: builder.append("contributionsSchema", _contributionsSchema);
048: builder.append("contributionsSchemaId", _contributionsSchemaId);
049: builder.append("visibility", _visibility);
050:
051: return builder.toString();
052: }
053:
054: public Occurances getCount() {
055: return _count;
056: }
057:
058: public void setCount(Occurances occurances) {
059: _count = occurances;
060: }
061:
062: public String getId() {
063: return _id;
064: }
065:
066: public void setId(String string) {
067: _id = string;
068: }
069:
070: public SchemaImpl getContributionsSchema() {
071: return _contributionsSchema;
072: }
073:
074: public void setContributionsSchema(SchemaImpl schema) {
075: _contributionsSchema = schema;
076: }
077:
078: /** @since 1.1 */
079: public String getContributionsSchemaId() {
080: return _contributionsSchemaId;
081: }
082:
083: /** @since 1.1 */
084: public void setContributionsSchemaId(String schemaId) {
085: _contributionsSchemaId = schemaId;
086: }
087:
088: /**
089: * @since 1.1
090: */
091: public Visibility getVisibility() {
092: return _visibility;
093: }
094:
095: /**
096: * @since 1.1
097: */
098: public void setVisibility(Visibility visibility) {
099: _visibility = visibility;
100: }
101: }
|