public static class Facts.Builder extends Object
Facts
parameter objectModifier and Type | Method and Description |
---|---|
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 |
public static Facts.Builder create()
Facts.Builder
classpublic 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 termpublic 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 termpublic Facts.Builder addFact(Term term, Object factValue)
Term
to the fact valueterm
- 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
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.