@Override public String toString() { return Messages.ORDER_SINGLE_SUGGESTION_TO_STRING.getText( String.valueOf(getIdentifier()), String.valueOf(getScore()), String.valueOf(getOrder()) ); }
value = Integer.parseInt(pValue); } catch (NumberFormatException e) { Messages.LOG_NON_NUMERIC_PROPERTY.warn(ConditionsFactory.class, e, inName, pValue, inDefaultInterval);
Messages.LOG_ERROR_READ_DEFAULT_CONFIG.warn(this, e, propertiesFile, inURN, inAttribute); throw new ModuleException(e, new I18NBoundMessage1P(
@Override public String toString() { return Messages.DATA_ENVELOPE_TO_STRING.getText(String.valueOf(getOrder()), String.valueOf(getEvent()), String.valueOf(getSessionId())); } @XmlElementRefs(value={@XmlElementRef(type=OrderBaseImpl.class),@XmlElementRef(type=FIXOrderImpl.class)})
/** * Converts the supplied string value to the instance of the * specified type. * * Calls to this method should only be made if {@link #isSupported(String)} * returns true for the <code>inTypeName</code>, otherwise this method * will throw an <code>IllegalArgumentException</code>. * * @param inType the type of instance to return * @param inValue the string value to convert to instance * * @return the instance converted from the string. * * @throws IllegalArgumentException if the supplied type name is * not supported OR if there were errors converting * the string to a numeric type. */ public static Object convert(Class<?> inType, String inValue) throws IllegalArgumentException { try { return sConverter.convert(inValue, inType); } catch (ConversionException e) { throw new IllegalArgumentException( Messages.STRING_CONVERSION_ERROR.getText(inValue, inType.getName(),e.getMessage())); } }