/*
 * Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
 *
 * 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 monasca.common.model.alarm;

public enum AlarmSeverity {
  LOW, MEDIUM, HIGH, CRITICAL
}

@@ -665,64 +665,615 @@
 m;%0A%0A
-public enum AlarmSeverity %7B%0A  LOW, MEDIUM, HIGH, CRITICAL
+import com.fasterxml.jackson.annotation.JsonCreator;%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0A%0Apublic enum AlarmSeverity %7B%0A  LOW, MEDIUM, HIGH, CRITICAL;%0A%0A  public static AlarmSeverity fromString(String text) %7B%0A    if (text != null) %7B%0A      for (AlarmSeverity alarmSeverity : AlarmSeverity.values()) %7B%0A        if (text.equalsIgnoreCase(alarmSeverity.toString())) %7B%0A          return alarmSeverity;%0A        %7D%0A      %7D%0A    %7D%0A    return null;%0A  %7D%0A%0A  @JsonCreator%0A  public static AlarmSeverity fromJson(@JsonProperty(%22severity%22) String text) %7B%0A    return AlarmSeverity.valueOf(text.toUpperCase());%0A  %7D
 %0A%7D%0A

Add fromString and fromJson to AlarmSeverity