^1639996779520
@
sname
CodeGenerator
slabel
CodeGenerator
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sinitialization
false
sgroup
code
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>代码生成器，主要功能是生成、替换或者修改目标文件，一次执行只处理一个文件。</p>
<p><strong>文件路径的确认方式</strong></p>
<p>&nbsp;&nbsp;&nbsp; 默认读属性filePath，通过重载getFilePath方法自定义文件路径。</p>
<p><strong>文件生成方式</strong></p>
<p>&nbsp;&nbsp;&nbsp; 生成一次：如果目标文件不存在生成，否则不征程。<br />
&nbsp;&nbsp;&nbsp; 覆盖：用新的内容覆盖旧的内容。<br />
&nbsp;&nbsp;&nbsp; 替换内容：替换目标文件的指定内容。指定内容使用$#&lt;name&gt;#&gt; $#&lt;name&gt;#&gt;来包围要替换的内容，其中name是内容参数。</p>
<p><strong>文件内容</strong></p>
<p>&nbsp;&nbsp;&nbsp; Content下的子节点为文件内容定义，可以定义多个，但如果是生成文件或覆盖文件则只使用第一个，当替换内容时每一个内容都使用自己名字替换目标文本中的内容。</p>
#$@text#$@
sth_createIndex
false
  @/@actions1
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sth_createIndex
  false
  sid
  actions1
    @/@actions1/@getFilePath
    sname
    getFilePath
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.core.actions.code.CodeGeneratorActions
    smethodName
    getFilePath
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    getFilePath
    @/@actions1/@run
    sname
    run
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.core.actions.code.CodeGeneratorActions
    smethodName
    run
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    run
  @/@name
  sname
  name
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  name
  @/@label
  sname
  label
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  label
  @/@type
  sname
  type
  sinputtype
  select
  sreadOnly
  false
  sdefault
  overwrite
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  type
    @/@type/@once
    sname
    once
    slabel
    只生成一次
    svalue
    once
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sth_createIndex
    false
    sid
    once
    @/@type/@overwrite
    sname
    overwrite
    slabel
    覆盖
    svalue
    overwrite
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sth_createIndex
    false
    sid
    overwrite
    @/@type/@modify
    sname
    modify
    slabel
    替换内容
    svalue
    modify
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sth_createIndex
    false
    sid
    modify
  @/@filePath
  sname
  filePath
  ssize
  60
  scolspan
  2
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  sdescription
  <p>文件路径，支持Ognl以及模板等。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  snotXmlAttribute
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  filePath
  @/@fileEncoding
  sname
  fileEncoding
  sreadOnly
  false
  sdefault
  UTF-8
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  fileEncoding
  @/@log
  sname
  log
  sinputtype
  truefalse
  sreadOnly
  false
  sdefault
  true
  sinheritDescription
  false
  sdescription
  <p>是否打印日志。</p>
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sid
  log
  @/@Contents
  sname
  Contents
  slabel
  内容列表
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sdescription
  <p>内容的列表，通过内容事物的toString方法生成文本内容。</p>
  sth_createIndex
  false
  sid
  Contents
    @/@Contents/@name
    sname
    name
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    name
    @/@Contents/@label
    sname
    label
    sreadOnly
    false
    sinheritDescription
    false
    svalidateAllowBlank
    true
    LvalidateOnBlur
    true
    LallowDecimals
    true
    LallowNegative
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sth_createIndex
    false
    sid
    label
    @/@Contents/@FreemarkerContent
    sname
    FreemarkerContent
    sdescriptors
    xworker.lang.MetaDescriptor3/@thing
    smany
    true
    seditCols
    2
    sinitialization
    false
    sgroup
    template
    smodifier
    public
    sinheritDescription
    false
    sth_createIndex
    false
    sid
    FreemarkerContent
      @/@Contents/@FreemarkerContent/@actions
      sname
      actions
      sdescriptors
      xworker.lang.MetaDescriptor3/@actions
      sth_createIndex
      false
      sid
      actions
        @/@Contents/@FreemarkerContent/@actions/@toString
        sname
        toString
        sisSynchronized
        false
        sthrowException
        true
        suseOtherAction
        false
        suseOuterJava
        true
        souterClassName
        xworker.core.actions.code.CodeGeneratorActions
        smethodName
        freemarkerToString
        sdisableGlobalContext
        false
        sattributeTemplate
        false
        sinterpretationType
        Action
        svarScope
        Global
        sdescriptors
        xworker.lang.actions.Actions/@JavaAction
        sth_createIndex
        false
        sid
        toString
      @/@Contents/@FreemarkerContent/@name
      sname
      name
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sid
      name
      @/@Contents/@FreemarkerContent/@label
      sname
      label
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sid
      label
      @/@Contents/@FreemarkerContent/@templatPath
      sname
      templatePath
      ssize
      60
      scolspan
      2
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sid
      templatPath
      @/@Contents/@FreemarkerContent/@code
      sname
      code
      sinputtype
      textarea
      sreadOnly
      false
      sinheritDescription
      false
      sdescription
      <p>优先使用templatePath，templatePath不存在才使用code属性定义的模板。</p>
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sid
      code
      @/@Contents/@FreemarkerContent/@description
      sname
      description
      sinputtype
      html
      sreadOnly
      false
      sinheritDescription
      false
      svalidateAllowBlank
      true
      LvalidateOnBlur
      true
      LallowDecimals
      true
      LallowNegative
      true
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute
      sth_createIndex
      false
      sid
      description
  @/@actions
  sname
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  sth_createIndex
  false
  sid
  actions
