Fix property value.

@param value the value
@return the string
434416
public static String fixPropertyValue(String value) {
		// replace with predefined varialebls
		value = value.replaceAll("\\{jk.appname\\}", JK.getAppName());
		return value;
	}
1374707
@Override
	public String setValue(String value) {
		String result = this.value;
		this.value = value;
		calculateCompareKey();
		return result;
	}
41766
public String resolveString(String value, boolean ignoreWarnings) throws ConfigEvaluatorException {
        value = variableEvaluator.resolveVariables(value, this, ignoreWarnings);
        return value;
    }
404068
public static String asNormalizedStringUnchecked(final Object value) {
    try {
      return asNormalizedString(value);
    } catch (JsonProcessingException e) {
      throw new RuntimeException(e);
    }
  }
767238
public static String typeValueString(final Object value) {
        StringBuilder sb = new StringBuilder(valueString(value));
        return sb.append(" :").append(typeString(value)).toString();
    }
102280
@Override
    public String tagValue(String value) {
        String formattedValue = StringEscapeUtils.escapeJson(delegate.tagValue(value));
        return StringUtils.truncate(formattedValue, TAG_VALUE_MAX_LENGTH);
    }
203699
public StringTextValue<String> setValue(final Integer value)
	{
		final String percentFormatted = getPercentFormatted(value);
		return setValue(percentFormatted);
	}
1323078
private Object prettyPrintValueString(final Object value) {
        if (value instanceof String) {
            return value.equals("") ? "\"\"" : value;
        } else {
            return value.toString();
        }
    }
581754
public void setValue(String value) {
		contents = new ArrayList();
		contents.add(value);
		if (value.trim().length() > 0) {
			containsSingleString = true;
		}
	}
1270610
public Checkbox setEnabledValueString(String value) {
        boolean checked = this.isChecked();//Maintain checked status
        this.setProperty("value", value);
        this.setChecked(checked);
        return this;
    }
1013300
public String set(final int i, final String value) {
		final ConfigBlock block = this.blocks.get(i);
		if (block instanceof ConfigItem) {
			final ConfigItem item = (ConfigItem) block;
			final String previousValue = item.getValue();
			item.setValue(value);
			return previousValue;
		}
		return null;
	}
658473
public Element val(String value) {
        if (tagName().equals("textarea"))
            text(value);
        else
            attr("value", value);
        return this;
    }
328222
public Object restore(final Object value) {
        if (value != null && value instanceof String) {
            final String sValue = (String) value;
            if (sValue.startsWith(PREFIX)) {
                if (sValue.startsWith(PREFIX_BOOLEAN)) {
                    return Boolean.parseBoolean(sValue.substring(PREFIX_BOOLEAN.length()));
                } else if (sValue.startsWith(PREFIX_INT)) {
                    return Integer.parseInt(sValue.substring(PREFIX_INT.length()));
                } else if (sValue.startsWith(PREFIX_LONG)) {
                    return Long.parseLong(sValue.substring(PREFIX_LONG.length()));
                } else if (sValue.startsWith(PREFIX_DATE)) {
                    final String d = sValue.substring(PREFIX_DATE.length());
                    try {
                        return newSdf().parse(d);
                    } catch (final ParseException e) {
                        logger.warn("Unable to parse stringified date: {}", d, e);
                    }
                } else if (sValue.startsWith(PREFIX_URI)) {
                    final String uri = sValue.substring(PREFIX_URI.length());
                    try {
                        return new URI(uri);
                    } catch (final URISyntaxException e) {
                        logger.warn("Unable to parse stringified URI: {}", uri, e);
                    }
                } else if (sValue.startsWith(PREFIX_SB64)) {
                    return serializationHelper.deserializeFromBase64(sValue.substring(PREFIX_SB64.length()));
                }
            }
        }
        return value;
    }
706570
public static String resolveProperty( Properties props, String value )
    {
        return PropertyResolver.resolve( props, value );
    }
1010562
public String resolveValue(final String value) {
        if (value == null) {
            return null;
        }

        final String sharedValue = valuePool.get(value);
        if (sharedValue != null) {
            return sharedValue;
        }

        valuePool.put(value, value);
        return value;
    }
418010
public String format(Object value) {
    ValueFormatter<Object> valueFormatter = VALUE_FORMATTERS.get(value.getClass());
    if (valueFormatter != null) {
      return valueFormatter.format(this, value);
    } else {
      return value.toString();
    }
  }
258212
private String getEscapedValue(String value) {
        if (value != null) {
            try {
                return URLEncoder.encode(value, "UTF-8");
                
            } catch ( UnsupportedEncodingException ex) { }            
        }
        
        return "";
    }