|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krms.api.engine.Facts.Builder
public static class Facts.Builder
Builder for a Facts parameter object
| Method Summary | |
|---|---|
Facts.Builder |
addFact(String termName,
Map<String,String> termParameters,
Object factValue)
Add a fact mapping from the name and parameter map combination to the fact value |
Facts.Builder |
addFact(String termName,
Object factValue)
Add a fact mapping from the term name to the fact value |
Facts.Builder |
addFact(Term term,
Object factValue)
Add a fact mapping from the Term to the fact value |
Facts.Builder |
addFactsByName(Map<String,Object> facts)
Add facts in bulk to this Facts parameter object |
Facts.Builder |
addFactsByTerm(Map<Term,Object> facts)
Add facts in bulk to this Facts parameter object |
Facts |
build()
return a Facts parameter object spawned from this Facts.Builder |
static Facts.Builder |
create()
Static factory method to produce instances of this Facts.Builder class |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Facts.Builder create()
Facts.Builder class
public Facts.Builder addFact(String termName,
Map<String,String> termParameters,
Object factValue)
termName - the name of the term. Must not be empty or null.termParameters - any parameters for the term. May be null or empty.factValue - the concrete value for the term
public Facts.Builder addFact(String termName,
Object factValue)
termName - the name of the term. Must not be empty or null.factValue - the concrete value for the term
public Facts.Builder addFact(Term term,
Object factValue)
Term to the fact value
term - the term that this fact is a value for. Must not be null.factValue - the fact valuepublic Facts.Builder addFactsByTerm(Map<Term,Object> facts)
facts - the map of Terms to fact values. May be null, in that case this call is a no op.public Facts.Builder addFactsByName(Map<String,Object> facts)
facts - the map of term names to fact values. May be null, in that case this call is a no op.public Facts build()
Facts parameter object spawned from this Facts.Builder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||