/** * Convert the given value to a string for interpolation. * <p> * This default implementation delegates to {@link Strings#toString(Object)}. * * @param value * the value, never {@code null} * * @return string representation */ protected String toString(Object value) { return Strings.toString(value); } }
/** * Convert the given value to a string for interpolation. * <p> * This default implementation delegates to {@link Strings#toString(Object)}. * * @param value * the value, never {@code null} * * @return string representation */ protected String toString(Object value) { return Strings.toString(value); } }
/** * Retrieves a value for a variable name during interpolation. * * @param variableName * the variable name * @return the value */ @Override protected String getValue(final String variableName) { return Strings.toString(variables.get(variableName)); }
/** * Retrieves a value for a variable name during interpolation. * * @param variableName * the variable name * @return the value */ protected final String getValue(final String variableName) { return Strings.toString(variables.get(variableName)); }
/** * Retrieves a value for a variable name during interpolation. * * @param variableName * the variable name * @return the value */ @Override protected String getValue(final String variableName) { return Strings.toString(variables.get(variableName)); }
@Override protected String load() { return Strings.toString(baseModel.getObject()); }
for (Strings dir : Strings.values()) { // your code here System.out.println(dir.toString()); }
/** * @see org.apache.wicket.request.mapper.parameter.IIndexedParameters#set(int, java.lang.Object) */ @Override public PageParameters set(final int index, final Object object) { if (indexedParameters == null) { indexedParameters = new ArrayList<>(index); } for (int i = indexedParameters.size(); i <= index; ++i) { indexedParameters.add(null); } indexedParameters.set(index, Strings.toString(object)); return this; }
/** * @see org.apache.wicket.request.mapper.parameter.IIndexedParameters#set(int, java.lang.Object) */ @Override public PageParameters set(final int index, final Object object) { if (indexedParameters == null) { indexedParameters = new ArrayList<>(index); } for (int i = indexedParameters.size(); i <= index; ++i) { indexedParameters.add(null); } indexedParameters.set(index, Strings.toString(object)); return this; }
/** * Converts the given input to an instance of StringValue. * * @param object * An object * @return String value for object */ public static StringValue valueOf(final Object object) { return valueOf(Strings.toString(object)); }
/** * Converts the given input to an instance of StringValue. * * @param object * An object * @return String value for object */ public static StringValue valueOf(final Object object) { return valueOf(Strings.toString(object)); }
/** * Converts the given input to an instance of StringValue. * * @param object * An object * @return String value for object */ public static StringValue valueOf(final Object object) { return valueOf(Strings.toString(object)); }
protected void onException(Exception e) { if (!throwJadeExceptions) { // print the exception on the panel stackTraceAsString = Strings.toString(e); } else { // rethrow the exception throw new WicketRuntimeException(e); } }
/** * Converts the given input to an instance of StringValue. * * @param object * An object * @param locale * Locale to be used for formatting * @return String value for object */ public static StringValue valueOf(final Object object, final Locale locale) { return valueOf(Strings.toString(object), locale); }
/** * Converts the given input to an instance of StringValue. * * @param object * An object * @param locale * Locale to be used for formatting * @return String value for object */ public static StringValue valueOf(final Object object, final Locale locale) { return valueOf(Strings.toString(object), locale); }
/** * Converts the given input to an instance of StringValue. * * @param object * An object * @param locale * Locale to be used for formatting * @return String value for object */ public static StringValue valueOf(final Object object, final Locale locale) { return valueOf(Strings.toString(object), locale); }
/** * Either print or rethrow the throwable. * * @param exception * the cause * @param markupStream * the markup stream * @param openTag * the open tag */ private void onException(final Exception exception) { if (!throwVelocityExceptions()) { // print the exception on the panel stackTraceAsString = Strings.toString(exception); } else { // rethrow the exception throw new WicketRuntimeException(exception); } }
/** * Either print or rethrow the throwable. * * @param exception * the cause * @param markupStream * the markup stream * @param openTag * the open tag */ private void onException(final Exception exception) { if (!throwVelocityExceptions()) { // print the exception on the panel stackTraceAsString = Strings.toString(exception); } else { // rethrow the exception throw new WicketRuntimeException(exception); } }
/** * Constructor. All components have names. A component's id cannot be null. This is the minimal * constructor of component. It does not register a model. * * @param id * The non-null id of this component * @throws WicketRuntimeException * Thrown if the component has been given a null id. */ public Component(final String id) { setId(id); getApplication().notifyComponentInstantiationListeners(this); final IDebugSettings debugSettings = Application.get().getDebugSettings(); if (debugSettings.isLinePreciseReportingOnNewComponentEnabled()) { setMetaData(CONSTRUCTED_AT_KEY, Strings.toString(this, new MarkupException( "constructed"))); } }
/** * Constructor. All components have names. A component's id cannot be null. This constructor * includes a model. * * @param id * The non-null id of this component * @param model * The component's model * * @throws WicketRuntimeException * Thrown if the component has been given a null id. */ public Component(final String id, final IModel<?> model) { setId(id); getApplication().notifyComponentInstantiationListeners(this); final IDebugSettings debugSettings = Application.get().getDebugSettings(); if (debugSettings.isLinePreciseReportingOnNewComponentEnabled()) { setMetaData(CONSTRUCTED_AT_KEY, Strings.toString(this, new MarkupException("constructed"))); } if (model != null) { setModelImpl(wrap(model)); } }