public static class TermParameterDefinition.Builder extends Object implements TermParameterDefinitionContract, ModelBuilder, Serializable
Modifier and Type | Field and Description |
---|---|
static BuilderUtils.Transformer<TermParameterDefinitionContract,TermParameterDefinition.Builder> |
toBuilder |
Modifier and Type | Method and Description |
---|---|
TermParameterDefinition |
build()
return a
TermParameterDefinition instance constructed from this TermParameterDefinition.Builder |
static TermParameterDefinition.Builder |
create(String id,
String termId,
String name,
String value)
static factory to create a
TermParameterDefinition.Builder from fields |
static TermParameterDefinition.Builder |
create(TermParameterDefinitionContract termParameterDefinition)
static factory to create a
TermParameterDefinition.Builder from a TermParameterDefinitionContract |
String |
getId()
The unique identifier for an object.
|
String |
getName()
Gets the name of this parameter.
|
String |
getTermId()
Gets the identifier for the term that this parameter belongs to.
|
String |
getValue()
Gets the value of this parameter.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
void |
setId(String id) |
void |
setName(String name) |
void |
setTermId(String termId) |
void |
setValue(String value) |
void |
setVersionNumber(Long versionNumber) |
public static final BuilderUtils.Transformer<TermParameterDefinitionContract,TermParameterDefinition.Builder> toBuilder
public static TermParameterDefinition.Builder create(String id, String termId, String name, String value)
TermParameterDefinition.Builder
from fieldsid
- must be null, or contain non-whitespacetermId
- must be null, or contain non-whitespacename
- must be non-nullvalue
- public static TermParameterDefinition.Builder create(TermParameterDefinitionContract termParameterDefinition)
TermParameterDefinition.Builder
from a TermParameterDefinitionContract
termParameterDefinition
- public void setId(String id)
id
- the id to set. for TermParameterDefinition
s used in creational
service methods, it must be null. Otherwise, it must be non-null and contain non-whitespace chars.IllegalArgumentException
- if id is all whitespace charspublic void setName(String name)
name
- the name to set. Must be non-null and contain non-whitespace chars.IllegalArgumentException
- if name is null or is all whitespace charspublic void setValue(String value)
value
- the value to set. May be null or empty.public void setVersionNumber(Long versionNumber)
versionNumber
- the versionNumber to set. May be null.public String getId()
Identifiable
getId
in interface Identifiable
public String getTermId()
TermParameterDefinitionContract
getTermId
in interface TermParameterDefinitionContract
public String getName()
TermParameterDefinitionContract
getName
in interface TermParameterDefinitionContract
public String getValue()
TermParameterDefinitionContract
getValue
in interface TermParameterDefinitionContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public TermParameterDefinition build()
TermParameterDefinition
instance constructed from this TermParameterDefinition.Builder
build
in interface ModelBuilder
ModelBuilder.build()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.