|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.bom.util.IlrSelectors
public class IlrSelectors
This is a utility class which has miscellaneous static methods which combine given selectors to produce a new selector, or apply a given selector to an iterator or to a list producing a new filtered iterator.
This class also provides some predefined selectors accessible through static fields.
Field Summary | |
---|---|
static IlrSelector |
AllElements
A selector which does not filter out any element. |
static IlrSelector |
DynamicClasses
A selector which filters out non dynamic classes (classes for which the IlrType.getNativeClass() method returns null ). |
static IlrSelector |
InterfaceClasses
A selector which filters out non interface classes (classes for which the IlrClass.isInterface() method returns false ). |
static IlrSelector |
StaticMembers
A selector which filters out non static members (members for which the IlrMember.isStatic method returns false ). |
Constructor Summary | |
---|---|
IlrSelectors()
|
Method Summary | |
---|---|
static Iterator |
dynamicTypes(IlrObjectModel objectModel)
This static method returns an iterator over the dynamic types of the given object model. |
static Iterator |
dynamicTypes(Iterator typeIter)
This static method filters the elements of the given iterator. |
static Iterator |
Select(Iterator iter,
IlrSelector selector)
This static method filters the elements of a given iterator. |
static Iterator |
Select(List list,
IlrSelector selector)
This static method filters the elements of a given list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final IlrSelector AllElements
public static final IlrSelector StaticMembers
IlrMember.isStatic
method returns false
).
public static final IlrSelector InterfaceClasses
IlrClass.isInterface()
method returns false
).
public static final IlrSelector DynamicClasses
IlrType.getNativeClass()
method returns null
).
Constructor Detail |
---|
public IlrSelectors()
Method Detail |
---|
public static Iterator dynamicTypes(Iterator typeIter)
IlrType.getNativeClass()
method returns null
.
typeIter
- an iterator over types.
typeIter
which are not bound to an actual Java class.public static Iterator dynamicTypes(IlrObjectModel objectModel)
IlrType.getNativeClass()
method returns null
.
objectModel
- an object model.
objectModel
which are not bound to an actual Java class.public static Iterator Select(Iterator iter, IlrSelector selector)
iter
- an iterator over model elementsselector
- a selector which will be used to filter the elements
of the iter
parameter
iter
which satisfy the selector
public static Iterator Select(List list, IlrSelector selector)
list
- an list of model elementsselector
- a selector which will be used to filter the elements
of the list
parameter
list
which satisfy the selector
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |