1 /*******************************************************************************
2 * ============LICENSE_START========================================================================
3 * ONAP : ccsdk feature sdnr wt
4 * =================================================================================================
5 * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6 * =================================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8 * in compliance with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software distributed under the License
13 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14 * or implied. See the License for the specific language governing permissions and limitations under
16 * ============LICENSE_END==========================================================================
17 ******************************************************************************/
22 package org.onap.ccsdk.features.sdnr.wt.devicemanager.base.internalTypes;
24 public enum InternalSeverity {
32 public boolean isNoAlarmIndication() {
33 return this == NonAlarmed;
36 public String getValueAsString() {
41 public String toString() {
45 public String toNetconfString()
60 return "not-specified";
64 * convert ONF 1.2 Severity
65 * @param severity as input
66 * @return String with related output
68 public static InternalSeverity valueOf(org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.microwave.model.rev170324.SeverityType severity ) {
71 return InternalSeverity.NonAlarmed;
73 return InternalSeverity.Warning;
75 return InternalSeverity.Minor;
77 return InternalSeverity.Major;
79 return InternalSeverity.Critical;
85 * convert ONF 1.2.1.1 Severity
86 * @param severity as input
87 * @return String with related output
89 public static InternalSeverity valueOf(org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.microwave.model.rev180907.SeverityType severity ) {
92 return InternalSeverity.NonAlarmed;
94 return InternalSeverity.Warning;
96 return InternalSeverity.Minor;
98 return InternalSeverity.Major;
100 return InternalSeverity.Critical;
106 * convert ONF 1.2.1.1p Severity
107 * @param severity as input
108 * @return String with related output
110 public static InternalSeverity valueOf(org.opendaylight.yang.gen.v1.urn.onf.params.xml.ns.yang.microwave.model.rev181010.SeverityType severity ) {
113 return InternalSeverity.NonAlarmed;
115 return InternalSeverity.Warning;
117 return InternalSeverity.Minor;
119 return InternalSeverity.Major;
121 return InternalSeverity.Critical;