public static class NaturalLanguageTree.Builder extends Object implements NaturalLanguageTreeContract, ModelBuilder, Serializable
NaturalLanguageTreeContract
.Modifier and Type | Method and Description |
---|---|
NaturalLanguageTree |
build()
Builds an instance of a Natural Language Tree based on the current state of the
builder.
|
static NaturalLanguageTree.Builder |
create()
Creates a builder by populating it with data from the given
NaturalLanguageTreeContract . |
static NaturalLanguageTree.Builder |
create(NaturalLanguageTreeContract contract)
Creates a builder by populating it with data from the given
NaturalLanguageTreeContract . |
List<? extends NaturalLanguageTreeContract> |
getChildren()
Returns the natural language for children of this node
|
String |
getNaturalLanguage()
Returns the natural language representation for this node in the tree
|
void |
setChildren(List<? extends NaturalLanguageTreeContract> children) |
void |
setNaturalLanguage(String naturalLanguage) |
public String getNaturalLanguage()
NaturalLanguageTreeContract
getNaturalLanguage
in interface NaturalLanguageTreeContract
public void setNaturalLanguage(String naturalLanguage)
public List<? extends NaturalLanguageTreeContract> getChildren()
NaturalLanguageTreeContract
getChildren
in interface NaturalLanguageTreeContract
public void setChildren(List<? extends NaturalLanguageTreeContract> children)
public static NaturalLanguageTree.Builder create()
NaturalLanguageTreeContract
.contract
- the contract from which to populate this builderIllegalArgumentException
- if the contract is nullpublic static NaturalLanguageTree.Builder create(NaturalLanguageTreeContract contract)
NaturalLanguageTreeContract
.contract
- the contract from which to populate this builderIllegalArgumentException
- if the contract is nullpublic NaturalLanguageTree build()
build
in interface ModelBuilder
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.