|
||||||||||
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.language.NaturalLanguageTemplate.Builder
public static final class NaturalLanguageTemplate.Builder
A builder which can be used to construct NaturalLanguageTemplate
instances. Enforces the constraints of the NaturalLanguageTemplateContract
.
Method Summary | |
---|---|
NaturalLanguageTemplate |
build()
Builds an instance of a NaturalLanguageTemplate based on the current state of the builder. |
static NaturalLanguageTemplate.Builder |
create(NaturalLanguageTemplateContract contract)
|
static NaturalLanguageTemplate.Builder |
create(String languageCode,
String naturalLanguageUsageId,
String template,
String typeId)
|
Map<String,String> |
getAttributes()
This method returns a list of custom/remote attributes associated with the agenda. |
String |
getId()
The unique identifier for an object. |
String |
getLanguageCode()
This is the Language Code of the NaturalLanguageTemplate |
String |
getNaturalLanguageUsageId()
This is the NaturalLanguageUsageId of the NaturalLanguageTemplate |
String |
getTemplate()
This is the Template of the NaturalLanguageTemplate |
String |
getTypeId()
This is the TypeId of the NaturalLanguageTemplate |
Long |
getVersionNumber()
Returns the version number for this object. |
boolean |
isActive()
The active indicator for an object. |
void |
setActive(boolean active)
Sets the value of active on this builder to the given value. |
void |
setAttributes(Map<String,String> attributes)
Sets the Map of attributes as name / value pairs. |
void |
setId(String id)
Sets the value of id on this builder to the given value. |
void |
setLanguageCode(String languageCode)
Sets the value of languageCode on this builder to the given value. |
void |
setNaturalLanguageUsageId(String naturalLanguageUsageId)
Sets the value of naturalLanguageUsageId on this builder to the given value. |
void |
setTemplate(String template)
Sets the value of template on this builder to the given value. |
void |
setTypeId(String typeId)
Sets the value of typeId on this builder to the given value. |
void |
setVersionNumber(Long versionNumber)
Sets the value of versionNumber on this builder to the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NaturalLanguageTemplate.Builder create(String languageCode, String naturalLanguageUsageId, String template, String typeId)
public static NaturalLanguageTemplate.Builder create(NaturalLanguageTemplateContract contract)
public NaturalLanguageTemplate build()
build
in interface ModelBuilder
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public Map<String,String> getAttributes()
NaturalLanguageTemplateContract
The attributes of the NaturalLanguageUsage
getAttributes
in interface NaturalLanguageTemplateContract
public String getId()
Identifiable
getId
in interface Identifiable
public String getLanguageCode()
NaturalLanguageTemplateContract
The Language Code of the NaturalLanguageTemplate
getLanguageCode
in interface NaturalLanguageTemplateContract
public String getNaturalLanguageUsageId()
NaturalLanguageTemplateContract
The NaturalLanguageUsageId of the NaturalLanguageTemplate
getNaturalLanguageUsageId
in interface NaturalLanguageTemplateContract
public String getTemplate()
NaturalLanguageTemplateContract
The Template of the NaturalLanguageTemplate
getTemplate
in interface NaturalLanguageTemplateContract
public String getTypeId()
NaturalLanguageTemplateContract
The TypeId of the NaturalLanguageTemplate
getTypeId
in interface NaturalLanguageTemplateContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setActive(boolean active)
active
- the active value to set.public void setAttributes(Map<String,String> attributes)
attributes
- a Map of name value String pairs representing the attributes.public void setId(String id)
id
- the id value to set., may be null, representing the Object has not been persisted, but must not be blank.
IllegalArgumentException
- if the id is blankpublic void setLanguageCode(String languageCode)
languageCode
- the languageCode value to set., must not be null or blank
IllegalArgumentException
- if the languageCode is null or blankpublic void setNaturalLanguageUsageId(String naturalLanguageUsageId)
naturalLanguageUsageId
- the naturalLanguageUsageId value to set., must not be null or blank
IllegalArgumentException
- if the naturalLanguageUsageId is null or blankpublic void setTemplate(String template)
template
- the template value to set., must not be null or blank
IllegalArgumentException
- if the template is null or blankpublic void setTypeId(String typeId)
typeId
- the typeId value to set., must not be null or blank
IllegalArgumentException
- if the typeId is null or blankpublic void setVersionNumber(Long versionNumber)
versionNumber
- the versionNumber value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |