Break out more FRM components
[openflowplugin.git] / applications / forwardingrules-manager / src / main / java / org / opendaylight / openflowplugin / applications / frm / ActionType.java
1 /*
2  * Copyright (c) 2018 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.openflowplugin.applications.frm;
10
11 import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.action.GroupActionCase;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.ApplyActionsCase;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.instruction.WriteActionsCase;
14
15 public enum ActionType {
16     APPLY_ACTION(ApplyActionsCase.class),
17     GROUP_ACTION(GroupActionCase.class),
18     WRITE_ACTION(WriteActionsCase.class);
19
20     private Class<?> actionType;
21
22     ActionType(Class<?> applyActionsCaseClass) {
23         this.actionType = applyActionsCaseClass;
24     }
25
26     public Class<?> getActionType() {
27         return actionType;
28     }
29
30 }