^1639996782133
@
sname
CodeGenerator
slabel
CodeGenerator
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
sdescription
<p>代码生成。</p>
  @/@name
  sname
  name
  ssize
  40
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  name
  @/@outputDir
  sname
  outputDir
  ssize
  60
  scolspan
  2
  sdescription
  <p>输出目录。</p>
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  outputDir
  @/@Things
  sname
  Things
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.util.ThingCollection
  sdescription
  <p>需要导出的事物集合。</p>
  sid
  Things
  @/@TextTemplate
  sname
  TextTemplate
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sdescription
  <p>通过文本模板生成代码。</p>
  sid
  TextTemplate
    @/@TextTemplate/@name
    sname
    name
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    name
    @/@TextTemplate/@label
    sname
    label
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    label
    @/@TextTemplate/@templatePath
    sname
    templatePath
    ssize
    60
    scolspan
    2
    Sdescription
#$@text#$@
<p>模板文件的路径。</p>
<p>格式是&lt;projectName&gt;.&lt;templateFilePath&gt;，如：core.test/util/freemarker.ftl，标识core项目下的目录的test/uitl/freemarker.ftl模板。</p>
<p>如果projectName不写，那么表示是系统级的模板，这时模板的根路径为World.getPath() + &quot;/templaets/&quot;。</p>
<p>模板可以用指定到文件，也可以直接编写代码，见属性：templateCode。</p>
#$@text#$@
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    templatePath
    @/@TextTemplate/@type
    sname
    templateType
    sinputtype
    select
    sdefault
    freemarker
    sdescription
    <p>模板类型。</p>
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    type
      @/@TextTemplate/@type/@freemarker
      sname
      freemarker
      slabel
      freemarker
      svalue
      freemarker
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sid
      freemarker
      @/@TextTemplate/@type/@velocity
      sname
      velocity
      slabel
      velocity
      svalue
      velocity
      sdescriptors
      xworker.lang.MetaDescriptor3/@attribute/@value
      sid
      velocity
    @/@TextTemplate/@templateEncoding
    sname
    templateEncoding
    sdefault
    UTF-8
    sdescription
    <p>模板文件的编码。</p>
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    templateEncoding
    @/@TextTemplate/@thingsName
    sname
    thingsName
    sdefault
    things
    sdescription
    <p>上模板上下文中事物列表的名称，供模板访问事物列表。</p>
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    thingsName
    @/@TextTemplate/@thingName
    sname
    thingName
    sdefault
    thing
    sdescription
    <p>在模板上下文中单个模板的名称。</p>
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    thingName
    @/@TextTemplate/@outputDir
    sname
    outputDir
    ssize
    60
    scolspan
    2
    Sdescription
#$@text#$@
<p>输出目录。</p>
<p>如果为空，默认使用上级输出目录。</p>
#$@text#$@
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    outputDir
    @/@TextTemplate/@outputFile
    sname
    outputFile
    ssize
    60
    scolspan
    2
    Sdescription
#$@text#$@
<p>输出文件。</p>
<p>输出文件的路径可以使用freemarker模板来编写，在模板中可以使用projectName、thingManagerName、categoryName、thingName以及当前事物thing。</p>
<p>注：模板情况只对单个事物生成有效，对全体事物生成无效。</p>
<p>比如：</p>
<p>&nbsp;&nbsp; 事物xworker.core.things.uitl.CodeGenerator，使用模板</p>
<p>&nbsp;&nbsp;&nbsp; ${projectName}${thingManagerName}${categoryName}${thingName}.java</p>
<p>&nbsp;&nbsp; 输出的结果为：</p>
<p>&nbsp;&nbsp;&nbsp; core/things/util/CodeGenerator.java。</p>
<p>&nbsp;&nbsp;&nbsp; 也可以是：</p>
<p>&nbsp;&nbsp;&nbsp; ${thing.packageName?replace('.', '/')}/${thing.name}.xml</p>
<p>&nbsp;</p>
#$@text#$@
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    outputFile
    @/@TextTemplate/@outputEncoding
    sname
    outputEncoding
    sdefault
    UTF-8
    sdescription
    <p>输出编码。</p>
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    outputEncoding
    @/@TextTemplate/@forAllThings
    sname
    forAllThings
    sinputtype
    truefalse
    sdefault
    false
    Sdescription
#$@text#$@
<p>是否是针对所有事物的模板处理。</p>
<p>模板处理有两种情况，一是对所有的事物，而是对单个事物，二者只能选一。</p>
#$@text#$@
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    forAllThings
    @/@TextTemplate/@filterDescriptors
    sname
    filterDescriptors
    sinputtype
    textarea
    scolspan
    2
    Sdescription
#$@text#$@
<p>事物过滤列表。</p>
<p>按照事物的描述者过滤事物，多个事物可用,号隔开。</p>
#$@text#$@
    LvalidateOnBlur
    false
    LallowDecimals
    false
    LallowNegative
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute
    sid
    filterDescriptors
  @/@CodeGenerator
  sname
  CodeGenerator
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.util.CodeGenerator
  Sdescription
#$@text#$@
<p>子代码生成。</p>
<p>子代码生成和父代码生成是各自独立，不过在父执行时子也会执行。</p>
#$@text#$@
  sid
  CodeGenerator
  @/@actions
  sname
  actions
  slabel
  actions
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sid
  actions
    @/@actions/@run
    sname
    run
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.core.util.CodeGeneratorActions
    smethodName
    run
    svarScope
    Global
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sid
    run
    @/@actions/@swtMenuRun
    sname
    swtMenuRun
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.core.util.CodeGeneratorActions
    smethodName
    swtMenuRun
    sdisableGlobalContext
    false
    svarScope
    Global
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sid
    swtMenuRun
  @/@swtMenus
  sname
  swtMenus
  slabel
  swtMenus
  sdescriptors
  xworker.lang.MetaDescriptor3/@swtMenus
  sid
  swtMenus
    @/@swtMenus/@menuDefine
    sname
    menuDefine
    slabel
    menuDefine
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus/@menuDefine
    sid
    menuDefine
      @/@swtMenus/@menuDefine/@codeGenerator
      sname
      codeGenerator
      slabel
      代码生成
      sdescriptors
      xworker.lang.ThingMenu/@menuDefine/@menu
      sid
      codeGenerator
    @/@swtMenus/@menuSetting
    sname
    menuSetting
    stype
    data
    smenuType
    codeGenerator
    slabel
    menuSetting
    sdescriptors
    xworker.lang.MetaDescriptor3/@swtMenus/@menuSetting
    sid
    menuSetting
      @/@swtMenus/@menuSetting/@runCode
      sname
      runCode
      slabel
      生成代码
      surl
      xworker.lang.util.CodeGenerator/@actions/@swtMenuRun
      sisSplit
      false
      sattachParam
      true
      sdescriptors
      xworker.lang.ThingMenu/@menuSetting/@menu
      sid
      runCode
