public static class NaturalLanguage.Builder extends Object implements NaturalLanguageContract, ModelBuilder, Serializable
NaturalLanguageContract
.Modifier and Type | Method and Description |
---|---|
NaturalLanguage |
build()
Builds an instance of a Natural Language Tree based on the current state of the
builder.
|
static NaturalLanguage.Builder |
create()
Creates a builder by populating it with data from the given
NaturalLanguageContract . |
static NaturalLanguage.Builder |
create(NaturalLanguageContract contract)
Creates a builder by populating it with data from the given
NaturalLanguageContract . |
String |
getKrmsObjectId()
Returns the krms object id associated with the natural language.
|
String |
getNaturalLanguage()
Returns the natural language representation for this node in the tree
|
void |
setKrmsObjectId(String krmsObjectId) |
void |
setNaturalLanguage(String naturalLanguage) |
public String getKrmsObjectId()
NaturalLanguageContract
getKrmsObjectId
in interface NaturalLanguageContract
public void setKrmsObjectId(String krmsObjectId)
public String getNaturalLanguage()
NaturalLanguageContract
getNaturalLanguage
in interface NaturalLanguageContract
public void setNaturalLanguage(String naturalLanguage)
public static NaturalLanguage.Builder create()
NaturalLanguageContract
.IllegalArgumentException
- if the contract is nullpublic static NaturalLanguage.Builder create(NaturalLanguageContract contract)
NaturalLanguageContract
.contract
- the contract from which to populate this builderIllegalArgumentException
- if the contract is nullpublic NaturalLanguage build()
build
in interface ModelBuilder
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.