/* $Id: AbstractCommonBehaviorHelperDecorator.java 17747 2010-01-10 21:16:51Z linus $ ******************************************************************************* * Copyright (c) 2009 Contributors - see below * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * tfmorris ******************************************************************************* * * Some portions of this file was previously release using the BSD License: */ // Copyright (c) 1996-2006 The Regents of the University of California. All // Rights Reserved. Permission to use, copy, modify, and distribute this // software and its documentation without fee, and without a written // agreement is hereby granted, provided that the above copyright notice // and this paragraph appear in all copies. This software program and // documentation are copyrighted by The Regents of the University of // California. The software program and documentation are supplied "AS // IS", without any accompanying services from The Regents. The Regents // does not warrant that the operation of the program will be // uninterrupted or error-free. The end-user understands that the program // was developed for research purposes and is advised not to rely // exclusively on the program for any reason. IN NO EVENT SHALL THE // UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, // SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, // ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF // THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF // SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY // WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE // PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF // CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, // UPDATES, ENHANCEMENTS, OR MODIFICATIONS. package org.argouml.model; import java.util.Collection; import java.util.List; /** * An abstract Decorator for the {@link CommonBehaviorHelper}. * * @author Bob Tarling */ public abstract class AbstractCommonBehaviorHelperDecorator implements CommonBehaviorHelper { /** * The component. */ private CommonBehaviorHelper impl; /** * @param component The component to decorate. */ protected AbstractCommonBehaviorHelperDecorator( CommonBehaviorHelper component) { impl = component; } /** * The component we are decorating. * * @return Returns the component. */ protected CommonBehaviorHelper getComponent() { return impl; } /* * @see org.argouml.model.CommonBehaviorHelper#getSource(java.lang.Object) */ public Object getSource(Object link) { return impl.getSource(link); } public Object getDestination(Object link) { return impl.getDestination(link); } public void removeActualArgument(Object handle, Object argument) { impl.removeActualArgument(handle, argument); } public void setActualArguments(Object action, List arguments) { impl.setActualArguments(action, arguments); } public void removeClassifier(Object handle, Object classifier) { impl.removeClassifier(handle, classifier); } public void removeContext(Object handle, Object context) { impl.removeContext(handle, context); } public void removeReception(Object handle, Object reception) { impl.removeReception(handle, reception); } public void addActualArgument(Object handle, Object argument) { impl.addActualArgument(handle, argument); } public void addActualArgument(Object handle, int position, Object argument) { impl.addActualArgument(handle, position, argument); } public void addClassifier(Object handle, Object classifier) { impl.addClassifier(handle, classifier); } public void addStimulus(Object handle, Object stimulus) { impl.addStimulus(handle, stimulus); } public void setAsynchronous(Object handle, boolean value) { impl.setAsynchronous(handle, value); } public void setOperation(Object handle, Object operation) { impl.setOperation(handle, operation); } public void setClassifiers(Object handle, Collection classifiers) { impl.setClassifiers(handle, classifiers); } public void setCommunicationLink(Object handle, Object c) { impl.setCommunicationLink(handle, c); } public void setComponentInstance(Object handle, Object c) { impl.setComponentInstance(handle, c); } public void setContexts(Object handle, Collection c) { impl.setContexts(handle, c); } public void setDispatchAction(Object handle, Object value) { impl.setDispatchAction(handle, value); } public void setInstance(Object handle, Object inst) { impl.setInstance(handle, inst); } public void setNodeInstance(Object handle, Object nodeInstance) { impl.setNodeInstance(handle, nodeInstance); } public void setReceiver(Object handle, Object receiver) { impl.setReceiver(handle, receiver); } public void setReception(Object handle, Collection c) { impl.setReception(handle, c); } public void setRecurrence(Object handle, Object expr) { impl.setRecurrence(handle, expr); } public void setScript(Object handle, Object expr) { impl.setScript(handle, expr); } public void setSender(Object handle, Object sender) { impl.setSender(handle, sender); } public void setSignal(Object handle, Object signal) { impl.setSignal(handle, signal); } public void setSpecification(Object handle, String specification) { impl.setSpecification(handle, specification); } public void setTarget(Object handle, Object element) { impl.setTarget(handle, element); } public void setTransition(Object handle, Object trans) { impl.setTransition(handle, trans); } public void setValue(Object handle, Object value) { impl.setValue(handle, value); } public Object getInstantiation(Object createaction) { return impl.getInstantiation(createaction); } public void setInstantiation(Object createaction, Object instantiation) { impl.setInstantiation(createaction, instantiation); } public Object getActionOwner(Object handle) { return impl.getActionOwner(handle); } public void addAction(Object handle, Object action) { impl.addAction(handle, action); } public void addAction(Object handle, int position, Object action) { impl.addAction(handle, position, action); } public void removeAction(Object handle, Object action) { impl.removeAction(handle, action); } }