blob: 954e5a1ac95ca8e2ad9558293fe6846785895171 [file] [log] [blame]
Jian Li44155b02017-02-15 17:03:38 +09001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Jian Li44155b02017-02-15 17:03:38 +09003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.mapping.actions;
17
18/**
19 * Factory class for creating various mapping actions.
20 */
21public final class MappingActions {
22
23 /**
24 * Prevents instantiation from external.
25 */
26 private MappingActions() {}
27
28 /**
29 * Creates a drop mapping action.
30 *
31 * @return a drop mapping action
32 */
33 public static DropMappingAction drop() {
34 return new DropMappingAction();
35 }
36
37 /**
38 * Creates a forward mapping action.
39 *
40 * @return a forward mapping action
41 */
42 public static ForwardMappingAction forward() {
43 return new ForwardMappingAction();
44 }
45
46 /**
47 * Creates a native forward mapping action.
48 *
49 * @return a native forward mapping action
50 */
51 public static NativeForwardMappingAction nativeForward() {
52 return new NativeForwardMappingAction();
53 }
54
55 /**
56 * Creates a no action.
57 *
58 * @return a no action
59 */
60 public static NoMappingAction noAction() {
61 return new NoMappingAction();
62 }
63}