类 MiniTemplator.TemplateSpecification

java.lang.Object
com.baidu.bjf.remoting.protobuf.utils.MiniTemplator.TemplateSpecification
封闭类:
MiniTemplator

public static class MiniTemplator.TemplateSpecification extends Object
Specifies the parameters for constructing a MiniTemplator object.
  • 字段详细资料

    • templateFileName

      public String templateFileName
      The file name of the template file.
    • templateFileStream

      public InputStream templateFileStream
      The template file stream.
    • subtemplateBasePath

      public String 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 by templateFileName) is used.
    • charset

      public Charset 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 with MiniTemplator.generateOutput(String outputFileName). If this field is null, the default charset of the Java VM is used.
    • templateText

      public String templateText
      The contents of the template file. This field may be used instead of templateFileName to pass the template text in memory. If this field is not null, templateFileName will be ignored.
    • conditionFlags

      public Set<String> 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 shortFormEnabled
      Enables the short form syntax for conditional blocks.
  • 构造器详细资料

    • TemplateSpecification

      public TemplateSpecification()