/** * Executes the body of the tag and returns the result as a String. * * @param shouldEscape Signal if the text should be escaped. * * @return the text evaluation of the body */ protected String getBodyText(boolean shouldEscape) throws JellyTagException { StringWriter writer = new StringWriter(); invokeBody(XMLOutput.createXMLOutput(writer, shouldEscape)); return writer.toString(); }
/** * Invoke the body and produce no output. * @param output tag output, which is ignored. */ public void doTag(XMLOutput output) throws JellyTagException { super.invokeBody(new MuteXMLOutput()); }
/** * Invoke the body and produce no output. * @param output tag output, which is ignored. */ public void doTag(XMLOutput output) throws JellyTagException { super.invokeBody(new MuteXMLOutput()); }
/** * Executes the body of the tag and returns the result as a String. * * @param shouldEscape Signal if the text should be escaped. * * @return the text evaluation of the body */ protected String getBodyText(boolean shouldEscape) throws JellyTagException { StringWriter writer = new StringWriter(); invokeBody(XMLOutput.createXMLOutput(writer, shouldEscape)); return writer.toString(); }
/** * Executes the body of the tag and returns the result as a String. * * @param shouldEscape Signal if the text should be escaped. * * @return the text evaluation of the body */ protected String getBodyText(boolean shouldEscape) throws JellyTagException { StringWriter writer = new StringWriter(); invokeBody(XMLOutput.createXMLOutput(writer, shouldEscape)); return writer.toString(); }
/** * Executes the body of the tag and returns the result as a String. * * @param shouldEscape Signal if the text should be escaped. * * @return the text evaluation of the body */ protected String getBodyText(boolean shouldEscape) throws JellyTagException { StringWriter writer = new StringWriter(); invokeBody(XMLOutput.createXMLOutput(writer, shouldEscape)); return writer.toString(); }
/** * Invoke the body and produce no output. * @param output tag output, which is ignored. */ public void doTag(XMLOutput output) throws JellyTagException { super.invokeBody(new MuteXMLOutput()); }
/** * Invoke the body and produce no output. * @param output tag output, which is ignored. */ public void doTag(XMLOutput output) throws JellyTagException { super.invokeBody(new MuteXMLOutput()); }
/** * Evaluates this tag after all the tags properties have been initialized. * */ public void doTag(XMLOutput output) throws JellyTagException { Object valueInput = null; if (this.value != null) { valueInput = this.value.evaluate(context); } if (valueInput == null) { timeZone = TimeZone.getTimeZone("GMT"); } else if (valueInput instanceof String) { if (((String) valueInput).trim().equals("")) { timeZone = TimeZone.getTimeZone("GMT"); } else { timeZone = TimeZone.getTimeZone((String) valueInput); } } else { timeZone = (TimeZone) valueInput; } invokeBody(output); }
/** * Evaluates this tag after all the tags properties have been initialized. * */ public void doTag(XMLOutput output) throws JellyTagException { Object basenameInput = null; if (this.basename != null) { basenameInput = this.basename.evaluate(context); } if (basenameInput != null) { ebasename = basenameInput.toString(); } Object prefixInput = null; if (this.prefix != null) { prefixInput = this.prefix.evaluate(context); } if (prefixInput != null) { eprefix = prefixInput.toString(); } this.locCtxt = this.getLocalizationContext(context, ebasename); invokeBody(output); }
keyInput = this.key.evaluate(context); invokeBody(output);