|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deduced.ParameterFetcher
public class ParameterFetcher

ParameterFetcher is a class used to breakdown a list of parameters while fetching inputs.
| Field Summary | |
|---|---|
private java.lang.Object |
previousRetVal
the previous return value of the fetching action |
private java.lang.Object |
retVal
the fetching return value |
private boolean |
searchFailed
has the search failed |
private boolean |
splittingList
flag indicating if we are splitting a list. |
| Constructor Summary | |
|---|---|
ParameterFetcher()
|
|
| Method Summary | |
|---|---|
private static java.util.List<java.lang.Object> |
breakList(java.util.List<?> returnArray,
PropertyCollection<?,?> propertyInstance)
break a list of values to fetch a sub value based on a key in each element |
private static void |
breakListElement(PropertyCollection<?,?> propertyInstance,
java.util.List<java.lang.Object> newReturnArray,
java.lang.Object element)
break a List Element so that it may be consumed as a rule input |
private static void |
fetchNextLevelOfValues(ParameterFetcher fetcher,
PropertyCollection<?,?> propertyInstance)
fetch Next Level Of Values |
static java.lang.Object |
fetchParameterFromInstanceList(PropertyCollection<?,?> startPoint,
boolean skipLast,
java.util.List<?> instanceList)
fetch all the values that match the defined input by starting at the specified start point and digging down the property tree following the instance list |
static java.lang.Object |
fetchParameterFromInstanceReference(PropertyCollection<?,?> startPoint,
PropertyCollection<?,?> instanceReference)
fetch all the values that match the defined input by starting at the specified start point and digging down the property tree by following the instance reference |
static java.lang.Object |
fetchParameterFromInstanceReference(PropertyCollection<?,?> startPoint,
PropertyCollection<?,?> instanceReference,
boolean skipLast)
fetch all the values that match the defined input by starting at the specified start point and digging down the property tree by following the instance reference |
static PropertyCollection<?,?> |
fetchStartCollection(PropertyCollection<?,?> ruleParent,
PropertyCollection<?,?> instanceReference)
fetch the collection that is used as a starting point to analyze an instance reference. |
java.lang.Object |
getPreviousRetVal()
|
java.lang.Object |
getRetVal()
|
static boolean |
isAllPropertyValuesInstance(PropertyCollection<?,?> propertyInstance)
test if the specified instance is the all property values wild card instance. |
boolean |
isSearchFailed()
|
boolean |
isSplittingList()
|
void |
setPreviousRetVal(java.lang.Object setPreviousRetVal)
|
void |
setRetVal(java.lang.Object setRetVal)
|
void |
setSearchFailed(boolean setSearchFailed)
|
void |
setSplittingList(boolean setSplittingList)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Object retVal
private java.lang.Object previousRetVal
private boolean splittingList
private boolean searchFailed
| Constructor Detail |
|---|
public ParameterFetcher()
| Method Detail |
|---|
public void setRetVal(java.lang.Object setRetVal)
setRetVal - the retVal to setpublic java.lang.Object getRetVal()
public void setPreviousRetVal(java.lang.Object setPreviousRetVal)
setPreviousRetVal - the previousRetVal to setpublic java.lang.Object getPreviousRetVal()
public void setSplittingList(boolean setSplittingList)
setSplittingList - the splittingList to setpublic boolean isSplittingList()
public void setSearchFailed(boolean setSearchFailed)
setSearchFailed - the searchFailed to setpublic boolean isSearchFailed()
public static PropertyCollection<?,?> fetchStartCollection(PropertyCollection<?,?> ruleParent,
PropertyCollection<?,?> instanceReference)
ruleParent - the parent of the ruleinstanceReference - the instance reference to use
public static java.lang.Object fetchParameterFromInstanceReference(PropertyCollection<?,?> startPoint,
PropertyCollection<?,?> instanceReference)
startPoint - the property collection from which to start searchinginstanceReference - the list of instances to follow
public static java.lang.Object fetchParameterFromInstanceReference(PropertyCollection<?,?> startPoint,
PropertyCollection<?,?> instanceReference,
boolean skipLast)
startPoint - the property collection from which to start searchinginstanceReference - the list of instances to followskipLast - option to skip the last level of the key list. Useful to
extract the list of collections that contain the last level of
values.
public static java.lang.Object fetchParameterFromInstanceList(PropertyCollection<?,?> startPoint,
boolean skipLast,
java.util.List<?> instanceList)
startPoint - the property collection from which to start searchinginstanceList - the list of property instances to followskipLast - option to skip the last level of the key list. Useful to
extract the list of collections that contain the last level of
values.
private static void fetchNextLevelOfValues(ParameterFetcher fetcher,
PropertyCollection<?,?> propertyInstance)
fetcher - the current fetching resultspropertyInstance - the current instance we are fetchingpublic static boolean isAllPropertyValuesInstance(PropertyCollection<?,?> propertyInstance)
propertyInstance - the instance to verify.
private static java.util.List<java.lang.Object> breakList(java.util.List<?> returnArray,
PropertyCollection<?,?> propertyInstance)
returnArray - the array of value to fetch the sub valuepropertyInstance - the property instance of the sub value
private static void breakListElement(PropertyCollection<?,?> propertyInstance,
java.util.List<java.lang.Object> newReturnArray,
java.lang.Object element)
propertyInstance - the property instance we are breaking in the rule
inputnewReturnArray - the array of rule input results to fillelement - the current element to break.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||