Commit 8197e01c authored by Hernan Ponce de Leon's avatar Hernan Ponce de Leon
Browse files

Added migrator for interface behavior

refs 3368
parent f18fb34e
/*-------------------------------------------------------------------------+
| Copyright 2018 fortiss GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package org.fortiss.af3.mira.model.migration;
import static java.util.Arrays.asList;
import java.util.Collection;
import org.eclipse.emf.ecore.EObject;
import org.fortiss.af3.mira.model.interfacebehaviour.ConditionBase;
import org.fortiss.af3.mira.model.interfacebehaviour.ConditionType;
import org.fortiss.af3.mira.model.interfacebehaviour.InterfaceBehaviour;
import org.fortiss.af3.mira.model.interfacebehaviour.InterfaceBehaviourSpecification;
import org.fortiss.af3.mira.model.interfacebehaviour.Response;
import org.fortiss.af3.mira.model.interfacebehaviour.Scope;
import org.fortiss.af3.mira.model.interfacebehaviour.ScopeSpecification;
import org.fortiss.af3.mira.model.interfacebehaviour.Trigger;
import org.fortiss.tooling.kernel.extension.base.RemoveDeprecatedArtifactsMigrationProviderBase;
/**
* Remove artifacts related to deprecated interface behavior model.
*
* @author barner
*/
@SuppressWarnings("deprecation")
public class RemoveInterfaceBehaviorMigrationProvider extends
RemoveDeprecatedArtifactsMigrationProviderBase {
/** {@inheritDoc} */
@Override
protected Collection<Class<? extends EObject>> getDeprecatedArtifacts() {
return asList(InterfaceBehaviour.class, Scope.class, Trigger.class, ConditionBase.class,
ConditionType.class, ScopeSpecification.class, Response.class,
InterfaceBehaviourSpecification.class);
}
/** {@inheritDoc} */
@Override
protected Collection<Class<? extends EObject>> getDeprecatedRootArtifacts() {
return asList(InterfaceBehaviour.class);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment