JTools

org.jtools.tmpl
Interface Templet

All Known Subinterfaces:
TEFTemplet
All Known Implementing Classes:
SimpleTEFTemplet

public interface Templet

general template methods, fulfilled (but not implemented) by every template generated by TmplC as long as methodnames are not renamed.

this interface may be useful if one is dealing with abstract templates (like the TEF - TempletExecutionFramework).
one may implement this interface by using the "implements" macro or extends (via "extends" macro) from a class that implements this interface.

Since:
tmpl-1.0
Author:
rainer noack

Method Summary
 void execute(PrintStream out)
          executes/generates this templet to a stream.
 String getDestLanguageName()
          gets the name of this template's dest language.
 String getTmplLanguageName()
          gets the name of this template's tmpl language.
 

Method Detail

getTmplLanguageName

String getTmplLanguageName()
gets the name of this template's tmpl language.

Returns:
name of this template's tmpl language.

getDestLanguageName

String getDestLanguageName()
gets the name of this template's dest language.

Returns:
name of this template's dest language or null if not available.

execute

void execute(PrintStream out)
executes/generates this templet to a stream.

Parameters:
out - the stream to generate to.

JTools

© 2000-2006, JTools.org.