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.util.ToStringBuilder;
018
019 /**
020 * Descriptor for the <interceptor> element.
021 *
022 * @author Howard Lewis Ship
023 */
024 public final class InterceptorDescriptor extends AbstractServiceInvocationDescriptor
025 {
026 private String _before;
027 private String _after;
028 private String _name;
029
030 public String getAfter()
031 {
032 return _after;
033 }
034
035 public String getBefore()
036 {
037 return _before;
038 }
039
040 public void setAfter(String string)
041 {
042 _after = string;
043 }
044
045 public void setBefore(String string)
046 {
047 _before = string;
048 }
049
050 /**
051 * @return Returns the name.
052 */
053 public String getName()
054 {
055 return _name;
056 }
057 /**
058 * @param name The name to set.
059 */
060 public void setName(String name)
061 {
062 this._name = name;
063 }
064
065 protected void extendDescription(ToStringBuilder builder)
066 {
067 builder.append("before", _before);
068 builder.append("after", _after);
069 builder.append("name", _name);
070 }
071
072 }