public static final class NaturalLanguageTemplateAttribute.Builder extends Object implements Serializable, ModelBuilder, NaturalLanguageTemplateAttributeContract
NaturalLanguageTemplateAttribute
instances. Enforces the constraints of the NaturalLanguageTemplateAttributeContract
.Modifier and Type | Method and Description |
---|---|
NaturalLanguageTemplateAttribute |
build()
Builds an instance of a NaturalLanguageTemplateAttribute based on the current state of the builder.
|
static NaturalLanguageTemplateAttribute.Builder |
create() |
static NaturalLanguageTemplateAttribute.Builder |
create(NaturalLanguageTemplateAttributeContract contract) |
KrmsAttributeDefinition.Builder |
getAttributeDefinition()
Returns a
KrmsAttributeDefinitionContract . |
String |
getAttributeDefinitionId()
Returns the id of the attribute definition.
|
String |
getId()
The unique identifier for an object.
|
String |
getNaturalLanguageTemplateId()
This is the NaturalLanguageTemplateId of the NaturalLanguageTemplateAttribute
|
String |
getValue()
Returns the value of the attribute
|
Long |
getVersionNumber()
Returns the version number for this object.
|
void |
setAttributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition) |
void |
setAttributeDefinitionId(String attributeDefinitionId)
Sets the value of attributeDefinitionId on this builder to the given value.
|
void |
setId(String id)
Sets the value of id on this builder to the given value.
|
void |
setNaturalLanguageTemplateId(String naturalLanguageTemplateId)
Sets the value of naturalLanguageTemplateId on this builder to the given value.
|
void |
setValue(String value)
Sets the value of value on this builder to the given value.
|
void |
setVersionNumber(Long versionNumber)
Sets the value of versionNumber on this builder to the given value.
|
public static NaturalLanguageTemplateAttribute.Builder create()
public static NaturalLanguageTemplateAttribute.Builder create(NaturalLanguageTemplateAttributeContract contract)
public NaturalLanguageTemplateAttribute build()
build
in interface ModelBuilder
public KrmsAttributeDefinition.Builder getAttributeDefinition()
BaseAttributeContract
KrmsAttributeDefinitionContract
.
This is the object referred to by the attributeDefinitionId. The full object is also kept here for performance purposes. This is because the name of the attribute is referenced often for resolving name / value attribute pairs.
getAttributeDefinition
in interface BaseAttributeContract
public String getAttributeDefinitionId()
BaseAttributeContract
The attribute definition contains metadata about the attribute. This is a required field and may not be null or blank. Many attribute instances may share the same attribute definition.
getAttributeDefinitionId
in interface BaseAttributeContract
public String getId()
Identifiable
getId
in interface Identifiable
public String getNaturalLanguageTemplateId()
NaturalLanguageTemplateAttributeContract
The NaturalLanguageTemplateId of the NaturalLanguageTemplateAttribute
getNaturalLanguageTemplateId
in interface NaturalLanguageTemplateAttributeContract
public String getValue()
BaseAttributeContract
getValue
in interface BaseAttributeContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setAttributeDefinition(KrmsAttributeDefinition.Builder attributeDefinition)
public void setAttributeDefinitionId(String attributeDefinitionId)
attributeDefinitionId
- the attributeDefinitionId value to set.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 setNaturalLanguageTemplateId(String naturalLanguageTemplateId)
naturalLanguageTemplateId
- the naturalLanguageTemplateId value to set.public void setValue(String value)
value
- the value value to set.public void setVersionNumber(Long versionNumber)
versionNumber
- the versionNumber value to set.Copyright © 2005–2015 The Kuali Foundation. All rights reserved.