| /********************************************************************* |
| * Copyright (c) 2021 Boeing |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Boeing - initial API and implementation |
| **********************************************************************/ |
| package org.eclipse.osee.mim.internal; |
| |
| import org.eclipse.osee.mim.ArtifactAccessor; |
| import org.eclipse.osee.mim.ArtifactInserter; |
| import org.eclipse.osee.mim.InterfaceConnectionViewApi; |
| import org.eclipse.osee.mim.types.InterfaceConnection; |
| import org.eclipse.osee.orcs.OrcsApi; |
| |
| /** |
| * @author Luciano T. Vaglienti |
| */ |
| public class InterfaceConnectionViewApiImpl implements InterfaceConnectionViewApi { |
| |
| private ArtifactAccessor<InterfaceConnection> accessor; |
| private ArtifactInserter<InterfaceConnection> inserter; |
| |
| InterfaceConnectionViewApiImpl(OrcsApi orcsApi) { |
| this.setAccessor(new InterfaceConnectionAccessor(orcsApi)); |
| this.setInserter(new InterfaceConnectionInserter(orcsApi, this.getAccessor())); |
| } |
| |
| @Override |
| public ArtifactAccessor<InterfaceConnection> getAccessor() { |
| return this.accessor; |
| } |
| |
| @Override |
| public ArtifactInserter<InterfaceConnection> getInserter() { |
| return this.inserter; |
| } |
| |
| /** |
| * @param accessor the accessor to set |
| */ |
| public void setAccessor(ArtifactAccessor<InterfaceConnection> accessor) { |
| this.accessor = accessor; |
| } |
| |
| /** |
| * @param inserter the inserter to set |
| */ |
| public void setInserter(ArtifactInserter<InterfaceConnection> inserter) { |
| this.inserter = inserter; |
| } |
| |
| } |