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: * Defines a service extension point. Corresponds to the <service-point> element of the module
024: * descriptor.
025: *
026: * @author Howard Lewis Ship
027: */
028: public final class ServicePointDescriptor extends
029: AbstractServiceDescriptor {
030: private String _id;
031:
032: private String _interfaceClassName;
033:
034: private SchemaImpl _parametersSchema;
035:
036: /** @since 1.1 */
037: private String _parametersSchemaId;
038:
039: private Occurances _parametersCount = Occurances.REQUIRED;
040:
041: /** @since 1.1 */
042: private Visibility _visibility = Visibility.PUBLIC;
043:
044: public String getId() {
045: return _id;
046: }
047:
048: public String getInterfaceClassName() {
049: return _interfaceClassName;
050: }
051:
052: public void setId(String string) {
053: _id = string;
054: }
055:
056: public void setInterfaceClassName(String string) {
057: _interfaceClassName = string;
058: }
059:
060: protected void extendDescription(ToStringBuilder builder) {
061: builder.append("id", _id);
062: builder.append("interfaceClassName", _interfaceClassName);
063: builder.append("parametersSchema", _parametersSchema);
064: builder.append("parametersSchemaId", _parametersSchemaId);
065: builder.append("parametersCount", _parametersCount);
066: builder.append("visibility", _visibility);
067: }
068:
069: public SchemaImpl getParametersSchema() {
070: return _parametersSchema;
071: }
072:
073: public void setParametersSchema(SchemaImpl schema) {
074: _parametersSchema = schema;
075: }
076:
077: /** @since 1.1 */
078: public String getParametersSchemaId() {
079: return _parametersSchemaId;
080: }
081:
082: /** @since 1.1 */
083: public void setParametersSchemaId(String schemaId) {
084: _parametersSchemaId = schemaId;
085: }
086:
087: public Occurances getParametersCount() {
088: return _parametersCount;
089: }
090:
091: public void setParametersCount(Occurances occurances) {
092: _parametersCount = occurances;
093: }
094:
095: /**
096: * @since 1.1
097: */
098: public Visibility getVisibility() {
099: return _visibility;
100: }
101:
102: /**
103: * @since 1.1
104: */
105: public void setVisibility(Visibility visibility) {
106: _visibility = visibility;
107: }
108: }
|