/** * Translates a template string to <code>TemplateBuffer</code>. <code>null</code> is * returned if there was an error. <code>getErrorMessage()</code> retrieves the associated * error message. * * @param string the string to translate. * @return returns the template buffer corresponding to the string * @see #getErrorMessage() * @throws TemplateException if translation failed */ public TemplateBuffer translate(String string) throws TemplateException { return parse(string); }
/** * Translates a template string to <code>TemplateBuffer</code>. <code>null</code> is * returned if there was an error. <code>getErrorMessage()</code> retrieves the associated * error message. * * @param string the string to translate. * @return returns the template buffer corresponding to the string * @see #getErrorMessage() * @throws TemplateException if translation failed */ public TemplateBuffer translate(String string) throws TemplateException { return parse(string); }
/** * Translates a template to a <code>TemplateBuffer</code>. <code>null</code> is returned if * there was an error. <code>getErrorMessage()</code> retrieves the associated error message. * * @param template the template to translate. * @return returns the template buffer corresponding to the string * @see #getErrorMessage() * @throws TemplateException if translation failed */ public TemplateBuffer translate(Template template) throws TemplateException { return parse(template.getPattern()); }
/** * Translates a template to a <code>TemplateBuffer</code>. <code>null</code> is returned if * there was an error. <code>getErrorMessage()</code> retrieves the associated error message. * * @param template the template to translate. * @return returns the template buffer corresponding to the string * @see #getErrorMessage() * @throws TemplateException if translation failed */ public TemplateBuffer translate(Template template) throws TemplateException { return parse(template.getPattern()); }