org.peaseplate.chunk
Interface BlockHead

All Superinterfaces:
Chunk
All Known Subinterfaces:
BlockExpansion, ExpandableBlock
All Known Implementing Classes:
AbstractBlock, AbstractIfBlock, ElseBlock, ElseIfBlock, IfBlock, MacroBlock, WhileBlock, WithBlock, WithEachBlock

public interface BlockHead
extends Chunk

A block head is a chunk that contains a separated chain of chunks as so-called block.

Author:
Manfred HANTSCHEL

Method Summary
 Chunk[] getBlock()
          Returns the head of the sub block chain.
 void renderBlock(BuildContext context, java.io.Writer writer)
          Renders the sub block to the specified writer using the specified template context
 void setBlock(Chunk[] block)
           
 
Methods inherited from interface org.peaseplate.chunk.Chunk
getColumn, getLine, getLocator, isEssential, isVisible, render, toString
 

Method Detail

getBlock

Chunk[] getBlock()
Returns the head of the sub block chain.

Returns:
the head of the block

setBlock

void setBlock(Chunk[] block)
              throws TemplateException
Throws:
TemplateException

renderBlock

void renderBlock(BuildContext context,
                 java.io.Writer writer)
                 throws TemplateException,
                        java.io.IOException
Renders the sub block to the specified writer using the specified template context

Parameters:
context - the context
writer - the writer
Throws:
TemplateException - on occasion
java.io.IOException - on occasion


Copyright © 2008. All Rights Reserved.