... and fix a typo
Change-Id: Id86b8b6e448d5a9401caf6053adb5ef337db180d
* @param hsr
* the request to register the form against.
* @param action
* @param hsr
* the request to register the form against.
* @param action
- * the target path where the form should be submitted
+ * the target path where the form should be submitted.
*/
public Form(HttpServletRequest hsr, String action) {
csrf = RandomToken.generateToken(32);
*/
public Form(HttpServletRequest hsr, String action) {
csrf = RandomToken.generateToken(32);
* @param out
* the stream to the user.
* @param req
* @param out
* the stream to the user.
* @param req
- * the request to take the initial data from
- * @return true, iff the form succeeded an the user should be redirected.
+ * the request to take the initial data from.
+ * @return true, iff the form succeeded and the user should be redirected.
* @throws GigiApiException
* if internal operations went wrong.
*/
* @throws GigiApiException
* if internal operations went wrong.
*/
* Outputs the forms contents.
*
* @param out
* Outputs the forms contents.
*
* @param out
- * {@link Language} to translate text to
+ * {@link Language} to translate text to.
* @param vars
* Variables supplied from the outside.
*/
* @param vars
* Variables supplied from the outside.
*/
* @param req
* the request that is directed to the form.
* @param target
* @param req
* the request that is directed to the form.
* @param target
- * the {@link Class} of the expected form
+ * the {@link Class} of the expected form.
* @return the form where this request is directed to.
* @throws CSRFException
* if no CSRF-token is found or the token is wrong.
* @return the form where this request is directed to.
* @throws CSRFException
* if no CSRF-token is found or the token is wrong.
* Creates a new {@link IfStatement} with an empty else-part.
*
* @param variable
* Creates a new {@link IfStatement} with an empty else-part.
*
* @param variable
- * the variable to check
+ * the variable to check.
* @param body
* the body to emit conditionally.
*/
* @param body
* the body to emit conditionally.
*/
* Creates a new {@link IfStatement} with an else-block.
*
* @param variable
* Creates a new {@link IfStatement} with an else-block.
*
* @param variable
- * the variable to check
+ * the variable to check.
* @param iftrue
* the block to emit if the check succeeds.
* @param iffalse
* @param iftrue
* the block to emit if the check succeeds.
* @param iffalse
- * the block to emit if the check fails
+ * the block to emit if the check fails.
*/
public IfStatement(String variable, TemplateBlock iftrue, TemplateBlock iffalse) {
this.variable = variable;
*/
public IfStatement(String variable, TemplateBlock iftrue, TemplateBlock iffalse) {
this.variable = variable;
* Moves to the next Dataset.
*
* @param l
* Moves to the next Dataset.
*
* @param l
- * the language for l10n-ed strings
+ * the language for l10n-ed strings.
* @param vars
* the variables used in this template. They need to be updated
* for each line.
* @param vars
* the variables used in this template. They need to be updated
* for each line.
* Creates a new {@link Scope}.
*
* @param out
* Creates a new {@link Scope}.
*
* @param out
- * the enclosed {@link Outputable}
+ * the enclosed {@link Outputable}.
* @param vars
* the variables to assign in the inner scope.
*/
* @param vars
* the variables to assign in the inner scope.
*/
private final String[] store;
/**
private final String[] store;
/**
- * Creates a new SprintfCommand based on its pre-parsed contents
+ * Creates a new SprintfCommand based on its pre-parsed contents.
*
* @param text
* a string with <code>{0},{1},..</code> as placeholders.
*
* @param text
* a string with <code>{0},{1},..</code> as placeholders.
* Creates a new SprintfCommand that is parsed as from template source.
*
* @param content
* Creates a new SprintfCommand that is parsed as from template source.
*
* @param content
- * the part from the template that is to be parsed
+ * the part from the template that is to be parsed.
*/
protected SprintfCommand(String content) {
StringBuffer raw = new StringBuffer();
*/
protected SprintfCommand(String content) {
StringBuffer raw = new StringBuffer();
* as placeholders.
* @param vars
* the variables to put into the placeholders.
* as placeholders.
* @param vars
* the variables to put into the placeholders.
- * @return the constructed {@link Outputable}
+ * @return the constructed {@link Outputable}.
*/
public static Outputable createSimple(String msg, String... vars) {
HashMap<String, Object> scope = new HashMap<>();
*/
public static Outputable createSimple(String msg, String... vars) {
HashMap<String, Object> scope = new HashMap<>();