JTools

org.jtools.tmpl.tmplLanguage
Class TxtTmpl

java.lang.Object
  extended by org.jtools.tmpl.tmplLanguage.TxtTmpl
All Implemented Interfaces:
TmplLanguage

public class TxtTmpl
extends Object
implements TmplLanguage


Constructor Summary
TxtTmpl()
           
 
Method Summary
 String getDestLanguageName()
          gets the name of this tmpl language's default dest language.
 String getFinalMacro()
          gets the name of a final macro.
 String getInitialMacro()
          gets the name of an initial macro.
 String getMethodnameDestLanguageName()
          gets the default methodname for the method that returns the dest language name in template classes of this tmpl language. the generation of this method is optional. template languages should default to getTmplLanguageName if not otherwise specified. if specified as blank template languages should interprete this as to omit and return null here.
 String getMethodnameExecute()
          gets the default methodname for the execution method in template classes of this tmpl language. the generation of this method is mandatory. template languages should default to execute if not otherwise specified or specified as empty.
 String getMethodnameTmplLanguageName()
          gets the default methodname for the method that returns the tmpl language name in template classes of this tmpl language. the generation of this method is optional. template languages should default to getTmplLanguageName if not otherwise specified. if specified as blank template languages should interprete this as to omit and return null here.
 String getName()
          gets the name of this tmpl language.
 ParserFactory getParserFactory()
           
 Style getParserStyle()
          gets the tag sets for this tmpl language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TxtTmpl

public TxtTmpl()
Method Detail

getName

public String getName()
Description copied from interface: TmplLanguage
gets the name of this tmpl language.

Specified by:
getName in interface TmplLanguage
Returns:
the name of this tmpl language.

getDestLanguageName

public String getDestLanguageName()
Description copied from interface: TmplLanguage
gets the name of this tmpl language's default dest language.

Specified by:
getDestLanguageName in interface TmplLanguage
Returns:
the name of this tmpl language's default dest language or null if there is none.

getMethodnameExecute

public String getMethodnameExecute()
Description copied from interface: TmplLanguage
gets the default methodname for the execution method in template classes of this tmpl language. the generation of this method is mandatory. template languages should default to execute if not otherwise specified or specified as empty.

Specified by:
getMethodnameExecute in interface TmplLanguage
Returns:
the default methodname (never null or empty string).
See Also:
Templet

getMethodnameTmplLanguageName

public String getMethodnameTmplLanguageName()
Description copied from interface: TmplLanguage
gets the default methodname for the method that returns the tmpl language name in template classes of this tmpl language. the generation of this method is optional. template languages should default to getTmplLanguageName if not otherwise specified. if specified as blank template languages should interprete this as to omit and return null here.

Specified by:
getMethodnameTmplLanguageName in interface TmplLanguage
Returns:
the default methodname or null if this method should be omitted by default (never empty string).
See Also:
Templet

getMethodnameDestLanguageName

public String getMethodnameDestLanguageName()
Description copied from interface: TmplLanguage
gets the default methodname for the method that returns the dest language name in template classes of this tmpl language. the generation of this method is optional. template languages should default to getTmplLanguageName if not otherwise specified. if specified as blank template languages should interprete this as to omit and return null here.

Specified by:
getMethodnameDestLanguageName in interface TmplLanguage
Returns:
the default methodname or null if this method should be omitted by default (never empty string).
See Also:
Templet

getInitialMacro

public String getInitialMacro()
Description copied from interface: TmplLanguage
gets the name of an initial macro.

Specified by:
getInitialMacro in interface TmplLanguage
Returns:
the name of an initial macro or null if the compilers default settings should be used or an empty String to omit a compilers compilers default initial macro setting.

getFinalMacro

public String getFinalMacro()
Description copied from interface: TmplLanguage
gets the name of a final macro.

Specified by:
getFinalMacro in interface TmplLanguage
Returns:
the name of a final macro or null if the compilers default settings should be used or an empty String to omit a compilers compilers default final macro setting.

getParserFactory

public ParserFactory getParserFactory()
Specified by:
getParserFactory in interface TmplLanguage

getParserStyle

public Style getParserStyle()
Description copied from interface: TmplLanguage
gets the tag sets for this tmpl language.

Specified by:
getParserStyle in interface TmplLanguage
Returns:
array of tag sets to be used for this language.

JTools

© 2000-2006, JTools.org.