TCA: Replace any openecomp reference by onap
[dcaegen2/analytics/tca.git] / dcae-analytics-model / src / main / java / org / onap / dcae / apod / analytics / model / util / json / mixin / cef / AlertTypeMixin.java
@@ -1,61 +1,61 @@
-/*\r
- * ===============================LICENSE_START======================================\r
- *  dcae-analytics\r
- * ================================================================================\r
- *    Copyright © 2017 AT&T Intellectual Property. All rights reserved.\r
- * ================================================================================\r
- *  Licensed under the Apache License, Version 2.0 (the "License");\r
- *  you may not use this file except in compliance with the License.\r
- *   You may obtain a copy of the License at\r
- *\r
- *          http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- *  Unless required by applicable law or agreed to in writing, software\r
- *  distributed under the License is distributed on an "AS IS" BASIS,\r
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- *  See the License for the specific language governing permissions and\r
- *  limitations under the License.\r
- *  ============================LICENSE_END===========================================\r
- */\r
-\r
-package org.openecomp.dcae.apod.analytics.model.util.json.mixin.cef;\r
-\r
-import com.fasterxml.jackson.annotation.JsonCreator;\r
-import com.fasterxml.jackson.annotation.JsonValue;\r
-import org.openecomp.dcae.apod.analytics.model.domain.cef.AlertType;\r
-import org.openecomp.dcae.apod.analytics.model.util.json.mixin.JsonMixin;\r
-\r
-/**\r
- * Mixin for Alert Type\r
- *\r
- * @author Rajiv Singla. Creation Date: 08/15/2017.\r
- */\r
-public abstract class AlertTypeMixin implements JsonMixin {\r
-\r
-    private String name;\r
-\r
-    @JsonCreator\r
-    public static AlertType forValue(String name) {\r
-\r
-        switch (name) {\r
-            case "CARD-ANOMALY":\r
-                return AlertType.CARD_ANOMALY;\r
-            case "ELEMENT-ANOMALY":\r
-                return AlertType.ELEMENT_ANOMALY;\r
-            case "INTERFACE-ANOMALY":\r
-                return AlertType.INTERFACE_ANOMALY;\r
-            case "SERVICE-ANOMALY":\r
-                return AlertType.SERVICE_ANOMALY;\r
-            default:\r
-                return AlertType.UNKNOWN;\r
-        }\r
-\r
-    }\r
-\r
-    @JsonValue\r
-    public String getName() {\r
-        return name;\r
-    }\r
-\r
-\r
-}\r
+/*
+ * ===============================LICENSE_START======================================
+ *  dcae-analytics
+ * ================================================================================
+ *    Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ *  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.
+ *  ============================LICENSE_END===========================================
+ */
+
+package org.onap.dcae.apod.analytics.model.util.json.mixin.cef;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import org.onap.dcae.apod.analytics.model.domain.cef.AlertType;
+import org.onap.dcae.apod.analytics.model.util.json.mixin.JsonMixin;
+
+/**
+ * Mixin for Alert Type
+ *
+ * @author Rajiv Singla. Creation Date: 08/15/2017.
+ */
+public abstract class AlertTypeMixin implements JsonMixin {
+
+    private String name;
+
+    @JsonCreator
+    public static AlertType forValue(String name) {
+
+        switch (name) {
+            case "CARD-ANOMALY":
+                return AlertType.CARD_ANOMALY;
+            case "ELEMENT-ANOMALY":
+                return AlertType.ELEMENT_ANOMALY;
+            case "INTERFACE-ANOMALY":
+                return AlertType.INTERFACE_ANOMALY;
+            case "SERVICE-ANOMALY":
+                return AlertType.SERVICE_ANOMALY;
+            default:
+                return AlertType.UNKNOWN;
+        }
+
+    }
+
+    @JsonValue
+    public String getName() {
+        return name;
+    }
+
+
+}