站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

AssetItemIterator (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.repository
Class AssetItemIterator

java.lang.Object
  extended by org.drools.repository.AssetItemIterator
All Implemented Interfaces:
Iterator

public class AssetItemIterator
extends Object
implements Iterator

This iterates over nodes and produces RuleItem's. Also allows "skipping" of results to jump to certain items, as per JCRs "skip". JCR iterators are/can be lazy, so this makes the most of it for large numbers of assets.

Author:
Michael Neale

Constructor Summary
AssetItemIterator(javax.jcr.NodeIterator nodes, RulesRepository repo)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 void skip(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetItemIterator

public AssetItemIterator(javax.jcr.NodeIterator nodes,
                         RulesRepository repo)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

skip

public void skip(int i)
Parameters:
i - The number of rules to skip.


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.