public String getStringRepresentation() {
        if (value == null)
            return "null";
        else if ("bool".equals(type.getName()))
            return value;
        else if ("int".equals(type.getName()))
            return value;
        else if ("long".equals(type.getName()))
            return value;
        else if ("double".equals(type.getName()))
            return value;
        else if ("enum".equals(type.getName()))
            return value;
        else {
            // building a string, do unicode-escaping
            StringBuilder sb = new StringBuilder();
            for (char c : value.toCharArray()) {
                if (c > '\u007f') {
                    sb.append(String.format("\\u%04X", (int) c));
                } else {
                    sb.append(c);
                }
            }
            return "\"" + sb + "\"";
        }
    }
Returns the string representation of this value.
configgen/src/main/java/com/yahoo/config/codegen/DefaultValue.java