Class NaturalLanguageTree.Builder
java.lang.Object
org.kuali.rice.krms.api.repository.NaturalLanguageTree.Builder
- All Implemented Interfaces:
Serializable,ModelBuilder,NaturalLanguageTreeContract
- Enclosing class:
- NaturalLanguageTree
public static class NaturalLanguageTree.Builder
extends Object
implements NaturalLanguageTreeContract, ModelBuilder, Serializable
This builder is used to construct instances of KRMS Repository Agenda. It
enforces the constraints of the
NaturalLanguageTreeContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance of a Natural Language Tree based on the current state of the builder.static NaturalLanguageTree.Buildercreate()Creates a builder by populating it with data from the givenNaturalLanguageTreeContract.static NaturalLanguageTree.Buildercreate(NaturalLanguageTreeContract contract) Creates a builder by populating it with data from the givenNaturalLanguageTreeContract.List<? extends NaturalLanguageTreeContract>Returns the natural language for children of this nodeReturns the natural language representation for this node in the treevoidsetChildren(List<? extends NaturalLanguageTreeContract> children) voidsetNaturalLanguage(String naturalLanguage)
-
Method Details
-
getNaturalLanguage
Description copied from interface:NaturalLanguageTreeContractReturns the natural language representation for this node in the tree- Specified by:
getNaturalLanguagein interfaceNaturalLanguageTreeContract- Returns:
- the natural language representation for this node in the tree
-
setNaturalLanguage
-
getChildren
Description copied from interface:NaturalLanguageTreeContractReturns the natural language for children of this node- Specified by:
getChildrenin interfaceNaturalLanguageTreeContract- Returns:
- the natural language for children of this node
-
setChildren
-
create
Creates a builder by populating it with data from the givenNaturalLanguageTreeContract.- Parameters:
contract- the contract from which to populate this builder- Returns:
- an instance of the builder populated with data from the contract
- Throws:
IllegalArgumentException- if the contract is null
-
create
Creates a builder by populating it with data from the givenNaturalLanguageTreeContract.- Parameters:
contract- the contract from which to populate this builder- Returns:
- an instance of the builder populated with data from the contract
- Throws:
IllegalArgumentException- if the contract is null
-
build
Builds an instance of a Natural Language Tree based on the current state of the builder.- Specified by:
buildin interfaceModelBuilder- Returns:
- the fully-constructed Agenda
-