org.kefirsf.bb.proc
Class ProcTemplate

java.lang.Object
  extended by org.kefirsf.bb.proc.ProcTemplate

public class ProcTemplate
extends Object

Code template

Author:
Vitaliy Samolovskih aka Kefir

Field Summary
static ProcTemplate EMPTY
          Empty template
 
Constructor Summary
ProcTemplate(List<? extends ProcTemplateElement> elements)
          Create neq template with elements.
 
Method Summary
 void generate(Context context)
          Append to result string processed text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final ProcTemplate EMPTY
Empty template

Constructor Detail

ProcTemplate

public ProcTemplate(List<? extends ProcTemplateElement> elements)
Create neq template with elements.

Parameters:
elements - template elements.
Method Detail

generate

public void generate(Context context)
              throws IOException
Append to result string processed text.

Parameters:
context - current context.
Throws:
IOException - if can't append.


Copyright © 2013. All Rights Reserved.