/** * Get the display value of the supplied {@code Object}, HTML escaped * as required. If the supplied value is not a {@link String} and the supplied * {@link PropertyEditor} is not null then the {@link PropertyEditor} is used * to obtain the display value. */ protected String getDisplayString(@Nullable Object value, @Nullable PropertyEditor propertyEditor) { return ValueFormatter.getDisplayString(value, propertyEditor, isHtmlEscape()); }
/** * Determine the display value of the supplied {@code Object}, * HTML-escaped as required. */ private String getDisplayString(@Nullable Object value) { PropertyEditor editor = (value != null ? this.bindStatus.findEditor(value.getClass()) : null); return ValueFormatter.getDisplayString(value, editor, this.htmlEscape); }
/** * Get the display value of the supplied {@code Object}, HTML escaped * as required. This version is <strong>not</strong> {@link PropertyEditor}-aware. */ protected String getDisplayString(@Nullable Object value) { return ValueFormatter.getDisplayString(value, isHtmlEscape()); }
/** * Build the display value of the supplied {@code Object}, HTML escaped * as required. If the supplied value is not a {@link String} and the supplied * {@link PropertyEditor} is not null then the {@link PropertyEditor} is used * to obtain the display value. * @see #getDisplayString(Object, boolean) */ public static String getDisplayString( @Nullable Object value, @Nullable PropertyEditor propertyEditor, boolean htmlEscape) { if (propertyEditor != null && !(value instanceof String)) { try { propertyEditor.setValue(value); String text = propertyEditor.getAsText(); if (text != null) { return getDisplayString(text, htmlEscape); } } catch (Throwable ex) { // The PropertyEditor might not support this value... pass through. } } return getDisplayString(value, htmlEscape); }
/** * Determine the display value of the supplied {@code Object}, * HTML-escaped as required. */ private String getDisplayString(@Nullable Object value) { PropertyEditor editor = (value != null ? this.bindStatus.findEditor(value.getClass()) : null); return ValueFormatter.getDisplayString(value, editor, this.htmlEscape); }
/** * Get the display value of the supplied {@code Object}, HTML escaped * as required. If the supplied value is not a {@link String} and the supplied * {@link PropertyEditor} is not null then the {@link PropertyEditor} is used * to obtain the display value. */ protected String getDisplayString(@Nullable Object value, @Nullable PropertyEditor propertyEditor) { return ValueFormatter.getDisplayString(value, propertyEditor, isHtmlEscape()); }
/** * Get the display value of the supplied {@code Object}, HTML escaped * as required. This version is <strong>not</strong> {@link PropertyEditor}-aware. */ protected String getDisplayString(@Nullable Object value) { return ValueFormatter.getDisplayString(value, isHtmlEscape()); }
private static boolean exhaustiveCompare(@Nullable Object boundValue, @Nullable Object candidate, @Nullable PropertyEditor editor, @Nullable Map<PropertyEditor, Object> convertedValueCache) { String candidateDisplayString = ValueFormatter.getDisplayString(candidate, editor, false); if (boundValue != null && boundValue.getClass().isEnum()) { Enum<?> boundEnum = (Enum<?>) boundValue;
/** * Build the display value of the supplied {@code Object}, HTML escaped * as required. If the supplied value is not a {@link String} and the supplied * {@link PropertyEditor} is not null then the {@link PropertyEditor} is used * to obtain the display value. * @see #getDisplayString(Object, boolean) */ public static String getDisplayString( @Nullable Object value, @Nullable PropertyEditor propertyEditor, boolean htmlEscape) { if (propertyEditor != null && !(value instanceof String)) { try { propertyEditor.setValue(value); String text = propertyEditor.getAsText(); if (text != null) { return getDisplayString(text, htmlEscape); } } catch (Throwable ex) { // The PropertyEditor might not support this value... pass through. } } return getDisplayString(value, htmlEscape); }
private static boolean exhaustiveCompare(@Nullable Object boundValue, @Nullable Object candidate, @Nullable PropertyEditor editor, @Nullable Map<PropertyEditor, Object> convertedValueCache) { String candidateDisplayString = ValueFormatter.getDisplayString(candidate, editor, false); if (boundValue != null && boundValue.getClass().isEnum()) { Enum<?> boundEnum = (Enum<?>) boundValue;
public static String getDisplayString(final Object value, final PropertyEditor propertyEditor, final boolean htmlEscape) { return ValueFormatter.getDisplayString(value, propertyEditor, htmlEscape); }
public static String getDisplayString(final Object value, final PropertyEditor propertyEditor, final boolean htmlEscape) { return ValueFormatter.getDisplayString(value, propertyEditor, htmlEscape); }
public static String getDisplayString(final Object value, final PropertyEditor propertyEditor, final boolean htmlEscape) { return ValueFormatter.getDisplayString(value, propertyEditor, htmlEscape); }
public static String getDisplayString(final Object value, final PropertyEditor propertyEditor, final boolean htmlEscape) { return ValueFormatter.getDisplayString(value, propertyEditor, htmlEscape); }
public static String getDisplayString(final Object value, final boolean htmlEscape) { return ValueFormatter.getDisplayString(value, htmlEscape); }
public static String getDisplayString(final Object value, final boolean htmlEscape) { return ValueFormatter.getDisplayString(value, htmlEscape); }
public static String getDisplayString(final Object value, final boolean htmlEscape) { return ValueFormatter.getDisplayString(value, htmlEscape); }
public static String getDisplayString(final Object value, final boolean htmlEscape) { return ValueFormatter.getDisplayString(value, htmlEscape); }
/** * Get the display value of the supplied {@code Object}, HTML escaped * as required. This version is <strong>not</strong> {@link PropertyEditor}-aware. */ protected String getDisplayString(Object value) { return ValueFormatter.getDisplayString(value, isHtmlEscape()); }
/** * Get the display value of the supplied {@code Object}, HTML escaped * as required. If the supplied value is not a {@link String} and the supplied * {@link PropertyEditor} is not null then the {@link PropertyEditor} is used * to obtain the display value. */ protected String getDisplayString(Object value, PropertyEditor propertyEditor) { return ValueFormatter.getDisplayString(value, propertyEditor, isHtmlEscape()); }