2 * Copyright 2015 Samsung Electronics All Rights Reserved.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.oic.simulator.clientcontroller;
20 * Types of automatic verification.
22 public enum SimulatorVerificationType {
23 RQ_TYPE_GET(0), RQ_TYPE_PUT(1), RQ_TYPE_POST(2), RQ_TYPE_DELETE(3);
27 private SimulatorVerificationType(int value) {
31 public int getValue() {
36 * Method to get the {@link SimulatorVerificationType} from an integer
40 * Integral value of {@link SimulatorVerificationType}.
41 * @return {@link SimulatorVerificationType} corresponding to the given
44 public static SimulatorVerificationType getVerificationType(int value) {
45 SimulatorVerificationType result = null;
46 SimulatorVerificationType[] types = SimulatorVerificationType.values();
47 for (SimulatorVerificationType type : types) {
48 if (type.getValue() == value) {