|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.api.repository.NaturalLanguageTree.Builder
public static class NaturalLanguageTree.Builder
This builder is used to construct instances of KRMS Repository Agenda. It
enforces the constraints of the NaturalLanguageTreeContract
.
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 builder
IllegalArgumentException
- if the contract is nullpublic static NaturalLanguageTree.Builder create(NaturalLanguageTreeContract contract)
NaturalLanguageTreeContract
.
contract
- the contract from which to populate this builder
IllegalArgumentException
- if the contract is nullpublic NaturalLanguageTree build()
build
in interface ModelBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |