public void handleAutoOpenElementStart( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { throw new TemplateProcessingException("Parse exception during processing of inlining: auto-open not allowed in text mode"); }
public TemplateAssertionException(final String assertionExpression, final String templateName) { super(createMessage(assertionExpression, templateName, null, null)); }
void setLastToBeRepeated(final AbstractProcessableElementTag tag) { if (this.currentTag != tag) { throw new TemplateProcessingException("Cannot set last processor to be repeated: processor recompute is needed!"); } if (this.processors == null) { throw new TemplateProcessingException("Cannot set last processor to be repeated: no processors in tag!"); } this.lastToBeRepeated = true; }
private void skipCloseTag(final boolean skipCloseTag) { if (!skipCloseTag) { return; } if (this.modelLevel == 0) { throw new TemplateProcessingException("Cannot set containing close tag to skip when model level is zero"); } this.skipCloseTagByLevel[this.modelLevel - 1] = true; }
public void handleAutoCloseElementEnd( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { throw new TemplateProcessingException("Parse exception during processing of inlining: auto-close not allowed in text mode"); }
private static TemplateProcessingException createRestrictedParameterAccessException() { return new TemplateProcessingException( "Access to request parameters is forbidden in this context. Note some restrictions apply to " + "variable access. For example, direct access to request parameters is forbidden in preprocessing and " + "unescaped expressions, in TEXT template mode, in fragment insertion specifications and " + "in some specific attribute processors."); }
public void handleAutoOpenElementEnd( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { throw new TemplateProcessingException("Parse exception during processing of inlining: auto-open not allowed in text mode"); }
public void handleAutoCloseElementStart( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { throw new TemplateProcessingException("Parse exception during processing of inlining: auto-close not allowed in text mode"); }
private IElementProcessor computeRepeatedLast(final AbstractProcessableElementTag tag) { if (this.currentTag != tag) { throw new TemplateProcessingException("Cannot return last processor to be repeated: changes were made and processor recompute is needed!"); } if (this.processors == null) { throw new TemplateProcessingException("Cannot return last processor to be repeated: no processors in tag!"); } return this.processors[this.last]; }
public void handleOpenElementEnd( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { try { this.handler.handleOpenElementEnd(buffer, nameOffset, nameLen, line, col); } catch (final ParseException e) { throw new TemplateProcessingException("Parse exception during processing of inlining", e); } }
public void handleAutoOpenElementStart( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { try { this.handler.handleAutoOpenElementStart(buffer, nameOffset, nameLen, line, col); } catch (final ParseException e) { throw new TemplateProcessingException("Parse exception during processing of inlining", e); } }
public void handleCloseElementStart( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { try { this.handler.handleCloseElementStart(buffer, nameOffset, nameLen, line, col); } catch (final ParseException e) { throw new TemplateProcessingException("Parse exception during processing of inlining", e); } }
public void handleStandaloneElementEnd( final char[] buffer, final int nameOffset, final int nameLen, final boolean minimized, final int line, final int col) { try { this.handler.handleStandaloneElementEnd(buffer, nameOffset, nameLen, minimized, line, col); } catch (final TextParseException e) { throw new TemplateProcessingException("Parse exception during processing of inlining", e); } }
public void handleOpenElementEnd( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { try { this.handler.handleOpenElementEnd(buffer, nameOffset, nameLen, line, col); } catch (final TextParseException e) { throw new TemplateProcessingException("Parse exception during processing of inlining", e); } }
public void handleCloseElementEnd( final char[] buffer, final int nameOffset, final int nameLen, final int line, final int col) { try { this.handler.handleCloseElementEnd(buffer, nameOffset, nameLen, line, col); } catch (final TextParseException e) { throw new TemplateProcessingException("Parse exception during processing of inlining", e); } }
public String formatPercent(final Number target, final Integer minIntegerDigits, final Integer decimalDigits) { if (target == null) { return null; } try { return NumberUtils.formatPercent(target, minIntegerDigits, decimalDigits, this.locale); } catch (final Exception e) { throw new TemplateProcessingException("Error formatting percent", e); } }
public final void gatherComment(final IComment comment) { if (this.gatheringFinished) { throw new TemplateProcessingException("Gathering is finished already! We cannot gather more events"); } this.syntheticModel.add(comment); }
public final void gatherStandaloneElement(final IStandaloneElementTag standaloneElementTag) { if (this.gatheringFinished) { throw new TemplateProcessingException("Gathering is finished already! We cannot gather more events"); } this.syntheticModel.add(standaloneElementTag); if (this.modelLevel == 0) { this.gatheringFinished = true; } }
public final void gatherUnmatchedCloseElement(final ICloseElementTag closeElementTag) { if (this.gatheringFinished) { throw new TemplateProcessingException("Gathering is finished already! We cannot gather more events"); } this.syntheticModel.add(closeElementTag); }
public final void gatherProcessingInstruction(final IProcessingInstruction processingInstruction) { if (this.gatheringFinished) { throw new TemplateProcessingException("Gathering is finished already! We cannot gather more events"); } this.syntheticModel.add(processingInstruction); }