类 MiniTemplator.TemplateSpecification
java.lang.Object
com.baidu.bjf.remoting.protobuf.utils.MiniTemplator.TemplateSpecification
- 封闭类:
- MiniTemplator
Specifies the parameters for constructing a
MiniTemplator object.-
字段概要
字段修饰符和类型字段说明The character set to be used for reading and writing files.Flags for the conditional commands ($if, $elseIf).booleanEnables the short form syntax for conditional blocks.The path of the base directory for reading subtemplate files.The file name of the template file.The template file stream.The contents of the template file. -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
templateFileName
The file name of the template file. -
templateFileStream
The template file stream. -
subtemplateBasePath
The path of the base directory for reading subtemplate files. This path is used to convert the relative paths of subtemplate files (specified with the $include commands) into absolute paths. If this field is null, the parent directory of the main template file (specified bytemplateFileName) is used. -
charset
The character set to be used for reading and writing files. This charset is used for reading the template and subtemplate files and for writing output withMiniTemplator.generateOutput(String outputFileName). If this field is null, the default charset of the Java VM is used. -
templateText
The contents of the template file. This field may be used instead oftemplateFileNameto pass the template text in memory. If this field is not null,templateFileNamewill be ignored. -
conditionFlags
Flags for the conditional commands ($if, $elseIf). A set of flag names, that can be used with the $if and $elseIf commands. The flag names are case-insensitive. -
shortFormEnabled
public boolean shortFormEnabledEnables the short form syntax for conditional blocks.
-
-
构造器详细资料
-
TemplateSpecification
public TemplateSpecification()
-