|
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.factory.IlrValue ilog.rules.factory.IlrCollectInSourceValue
public class IlrCollectInSourceValue
An expression collecting all objects of a specified class from a given source that verify specified tests.
Constructor Summary | |
---|---|
IlrCollectInSourceValue(IlrValue container,
IlrType collectedType,
String clause,
IlrValue source)
Builds an object collection from a specified type. |
Method Summary | |
---|---|
Enumeration |
enumerateCollectionBindings()
Returns the bindings declared in the collection tests. |
Enumeration |
enumerateCollectionTests()
Returns the tests that the collection containing the collected objects must verify. |
Enumeration |
enumerateObjectBindings()
Returns the bindings declared in the object tests. |
Enumeration |
enumerateObjectTests()
Returns the tests the collected objects must satisfy. |
Object |
exploreValue(IlrFactoryExplorer explorer)
Explores this constant value using a factory explorer and returns an object as a result. |
String |
getClause()
Returns the clause used to tell how the source is covered. |
IlrValue |
getContainer()
Returns the value that defines the container of collected objects. |
IlrValue |
getSource()
Returns the value representing the source in which the objects to collect are found. |
IlrType |
getXOMCollectedType()
Gets the class type of the collected objects. |
void |
setBindings(List objectBindings,
List collectionBindings)
Sets the variable bindings used in the object tests and in the collection tests. |
void |
setTests(List objectTests,
List collectionTests)
Sets the tests that the collected objects must satisfy and the tests that the collection (containing the collected objects) must satisfy. |
Methods inherited from class ilog.rules.factory.IlrValue |
---|
add, divide, getField, getReflect, getType, getXOMType, invokeEquals, isConstant, isEvent, isEventCondition, isNull, multiply, remainder, subtract, testAfter, testAfter, testBefore, testBefore, testEqual, testFalse, testGreaterOrEqual, testGreaterThan, testIn, testInstanceOf, testLessOrEqual, testLessThan, testNotEqual, testNotIn, testOccursin, testTrue, timeof, toNegative, toPositive, toPostfixDecr, toPostfixIncr, toPrefixDecr, toPrefixIncr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrCollectInSourceValue(IlrValue container, IlrType collectedType, String clause, IlrValue source)
clause
argument should be one of the
predefined keywords: "from"
or "in"
, or
else an IllegalArgumentException is thrown.
container
- A container in which the collected objects are stored.
If no specific container is given, a default one is created.collectedType
- The type of the objects we are collecting.clause
- Can be "from"
or "in"
.source
- The source in which the objects to be collected are
found.Method Detail |
---|
public void setTests(List objectTests, List collectionTests)
objectTests
- The tests the collected objects must verify.collectionTests
- The tests the resulting collection must verify.public void setBindings(List objectBindings, List collectionBindings)
objectBindings
- The bindings declared in the tests on the collected
objects.collectionBindings
- The bindings declared in the tests
on the resulting collection.public final Enumeration enumerateObjectBindings()
public final Enumeration enumerateObjectTests()
public final Enumeration enumerateCollectionBindings()
public final Enumeration enumerateCollectionTests()
public IlrValue getContainer()
public final IlrType getXOMCollectedType()
public String getClause()
"from"
or "in"
.
"from"
or "in"
.public IlrValue getSource()
public Object exploreValue(IlrFactoryExplorer explorer)
exploreValue
in class IlrValue
explorer
- The factory explorer.
null
if the method does not return a value.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |