^1572420095889
@
sname
Iterator
slabel
Iterator
sdescriptors
xworker.lang.MetaDescriptor3
sextends
xworker.lang.actions.SelfAction
smany
true
seditCols
2
sinitialization
false
smodifier
public
sinheritDescription
false
scolor
BLUE
Sdescription
#$@text#$@
<h3>遍历器</h3>

<p>&nbsp;&nbsp;&nbsp; 用于遍历某个集合。</p>

<h3>获取集合</h3>

<ul>
	<li><strong>Objec getCollection()</strong><br />
	返回要遍历的集合。</li>
</ul>

<h3>默认获取集合的方法</h3>

<p>&nbsp;&nbsp;&nbsp; 默认使用正则表达式获取变量，除了直接执行变量上下文中的变量，还有下面的技巧。</p>

<ul>
	<li><strong>数字范围，如：0..5</strong><br />
	两个数字用..分割，相当于for(int i=0; i&lt;=5; i++)，遍历数字。<br />
	&nbsp;</li>
	<li><strong>字母范围，如：A..Z</strong><br />
	两个字母用..连接，相当于for(char i=&#39;A&#39;; i&lt;=&#39;Z&quot;; i++）,遍历字母。<br />
	&nbsp;</li>
	<li><strong>使用Ognl构造List</strong><br />
	如{&quot;abcd&quot;, &quot;abcdef&quot;, 4, 5等。</li>
</ul>

<h3>变量和变量范围</h3>

<p>&nbsp;&nbsp;&nbsp; 每次遍历会有&lt;varName&gt;，&lt;varName&gt;_index，&lt;varName&gt;_has_next三个临时变量。如变量名称是it，那么就有it、it_index和it_has_next三个变量可以使用。</p>

<p>&nbsp;&nbsp;&nbsp; Iterator回启动一个局部变量范围。</p>

<h3>处理迭代</h3>

<p>&nbsp;&nbsp;&nbsp; 在ChildAction子节点下添加处理迭代的动作。支持BREAK、CONTINUE和RETURN等流程状态。</p>

<h3>返回值</h3>

<p>&nbsp;&nbsp;&nbsp; 返回最后一个子动作执行的结果。</p>

<h3>示例</h3>

<ul>
	<li><a href="javascript:invoke('thing:xworker.example.thing.actions.IteratorDemos')">IteratorDemos</a></li>
</ul>

<p>&nbsp;</p>
#$@text#$@
snotXmlAttribute
false
sjson_isArray
false
  @/@scripts
  sname
  scripts
  slabel
  scripts
  sdescriptors
  xworker.lang.MetaDescriptor3/@actions
  sid
  scripts
    @/@scripts/@run
    sname
    run
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.lang.actions.IteratorCreator
    sclassName
    Iterate
    smethodName
    run
    sdisableGlobalContext
    false
    sdescriptors
    xworker.lang.actions.JavaAction
    sid
    run
    @/@scripts/@getCollection
    sname
    getCollection
    sisSynchronized
    false
    sthrowException
    true
    suseOtherAction
    false
    suseOuterJava
    true
    souterClassName
    xworker.lang.actions.IteratorCreator
    smethodName
    getCollection
    sdisableGlobalContext
    false
    sattributeTemplate
    false
    sinterpretationType
    Action
    svarScope
    Global
    sdescriptors
    xworker.lang.actions.Actions/@JavaAction
    sth_createIndex
    false
    sid
    getCollection
  @/@VariablesDescs
  sname
  VariablesDescs
  sdescriptors
  xworker.lang.MetaThing/@VariablesDesc
  sinheritDescription
  false
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_fileMonitor
  false
  sth_mark
  false
  sid
  VariablesDescs
    @/@VariablesDescs/@varName
    sname
    varName
    svarName
    ognl:thing.varName
    stype
    object
    sclassName
    java.lang.Object
    sdescriptors
    xworker.lang.MetaThing/@VariablesDesc/@Object
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sid
    varName
    @/@VariablesDescs/@varName1
    sname
    varName_index
    svarName
    ognl:thing.varName + "_index"
    stype
    object
    sclassName
    java.lang.Integer
    sdescriptors
    xworker.lang.MetaThing/@VariablesDesc/@Object
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sid
    varName1
    @/@VariablesDescs/@var_has_next
    sname
    var_has_next
    svarName
    ognl:thing.varName + "_ha_next"
    stype
    object
    sclassName
    java.lang.Boolean
    sdescriptors
    xworker.lang.MetaThing/@VariablesDesc/@Object
    sinheritDescription
    false
    sth_createIndex
    false
    sth_registMyChilds
    false
    sth_registDisabled
    false
    sth_fileMonitor
    false
    sth_mark
    false
    sid
    var_has_next
  @/@name
  sname
  name
  slabel
  名称
  scolspan
  2
  sinheritDescription
  false
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sen_label
  Name
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  name
  @/@label
  sname
  label
  slabel
  标签
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  true
  LallowDecimals
  true
  LallowNegative
  true
  sen_label
  Label
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  label
  @/@collectionName
  sname
  collectionName
  slabel
  集合名称
  sinputtype
  textarea
  ssize
  60
  scolspan
  2
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  snotXmlAttribute
  false
  sen_label
  CollectionName
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  collectionName
  @/@dataName
  sname
  varName
  slabel
  变量名称
  sshowLabel
  true
  sreadOnly
  false
  sdefault
  it
  sinheritDescription
  false
  Sdescription
#$@text#$@
变量名称。<br />
<br />
比如：for(DataObject adata : datas)，adata就是指这个变量名称
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  snotXmlAttribute
  false
  sen_label
  VarName
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sth_createIndex
  false
  sth_registMyChilds
  false
  sth_registDisabled
  false
  sth_mark
  false
  sid
  dataName
  @/@description
  sname
  description
  sinputtype
  html
  scolspan
  2
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  description
  @/@ChildAction
  sname
  ChildAction
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.lang.actions.Actions
  smany
  true
  seditCols
  2
  sinitialization
  false
  smodifier
  public
  sinheritDescription
  false
  Sdescription
#$@text#$@
<p>Deprecated</p>

<p>循环中要执行的动作。</p>
#$@text#$@
  snotXmlAttribute
  false
  sjson_isArray
  false
  sth_createIndex
  false
  sid
  ChildAction
    @/@ChildAction/@actions1
    sname
    actions
    slabel
    actions
    sdescriptors
    xworker.lang.MetaDescriptor3/@actions
    sid
    actions1
      @/@ChildAction/@actions1/@run
      sname
      run
      sisSynchronized
      false
      sthrowException
      true
      suseOtherAction
      false
      suseOuterJava
      true
      suseInnerJava
      false
      souterClassName
      xworker.lang.actions.BeginCreator
      smethodName
      runSubActions
      sdisableGlobalContext
      false
      sattributeTemplate
      false
      sinterpretationType
      Action
      svarScope
      Global
      screateLocalVarScope
      false
      ssaveReturn
      false
      sswitchResult
      false
      sdebugLog
      false
      sdescriptors
      xworker.lang.actions.JavaAction
      sid
      run
