re base code
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / tosca / converters / HeatJsonConverter.java
index 9922c0f..90618ce 100644 (file)
 
 package org.openecomp.sdc.be.model.tosca.converters;
 
-import java.util.Map;
-
 import org.openecomp.sdc.be.model.DataTypeDefinition;
 import org.openecomp.sdc.common.util.ValidationUtils;
 
+import java.util.Map;
+
 public class HeatJsonConverter implements PropertyValueConverter {
 
-       private static HeatJsonConverter jsonConverter = new HeatJsonConverter();
+    private static HeatJsonConverter jsonConverter = new HeatJsonConverter();
 
-       public static HeatJsonConverter getInstance() {
-               return jsonConverter;
-       }
+    public static HeatJsonConverter getInstance() {
+        return jsonConverter;
+    }
 
-       private HeatJsonConverter() {
+    private HeatJsonConverter() {
 
-       }
+    }
 
-       @Override
-       public String convert(String original, String innerType, Map<String, DataTypeDefinition> dataTypes) {
-               if (original == null) {
-                       return null;
-               }
-               String converted = ValidationUtils.removeNoneUtf8Chars(original);
-               converted = ValidationUtils.removeHtmlTagsOnly(converted);
-               converted = ValidationUtils.normaliseWhitespace(converted);
-               converted = ValidationUtils.stripOctets(converted);
-               // As opposed to string converter, keeping the " and ' symbols
-               return converted;
-       }
+    @Override
+    public String convert(String original, String innerType, Map<String, DataTypeDefinition> dataTypes) {
+        if (original == null) {
+            return null;
+        }
+        String converted = ValidationUtils.removeNoneUtf8Chars(original);
+        converted = ValidationUtils.removeHtmlTagsOnly(converted);
+        converted = ValidationUtils.normaliseWhitespace(converted);
+        converted = ValidationUtils.stripOctets(converted);
+        // As opposed to string converter, keeping the " and ' symbols
+        return converted;
+    }
 
 }