Class TermParameterDefinition.Builder
java.lang.Object
org.kuali.rice.krms.api.repository.term.TermParameterDefinition.Builder
- All Implemented Interfaces:
Serializable,Identifiable,Versioned,ModelBuilder,TermParameterDefinitionContract
- Enclosing class:
TermParameterDefinition
public static class TermParameterDefinition.Builder
extends Object
implements TermParameterDefinitionContract, ModelBuilder, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderUtils.Transformer<TermParameterDefinitionContract, TermParameterDefinition.Builder> -
Method Summary
Modifier and TypeMethodDescriptionbuild()return aTermParameterDefinitioninstance constructed from thisTermParameterDefinition.Builderstatic factory to create aTermParameterDefinition.Builderfrom fieldscreate(TermParameterDefinitionContract termParameterDefinition) static factory to create aTermParameterDefinition.Builderfrom aTermParameterDefinitionContractgetId()getName()Gets the name of this parameter.Gets the identifier for the term that this parameter belongs to.getValue()Gets the value of this parameter.voidvoidvoidvoidvoidsetVersionNumber(Long versionNumber)
-
Field Details
-
toBuilder
public static final BuilderUtils.Transformer<TermParameterDefinitionContract,TermParameterDefinition.Builder> toBuilder
-
-
Method Details
-
create
public static TermParameterDefinition.Builder create(String id, String termId, String name, String value) static factory to create aTermParameterDefinition.Builderfrom fields- Parameters:
id- must be null, or contain non-whitespacetermId- must be null, or contain non-whitespacename- must be non-nullvalue-
-
create
public static TermParameterDefinition.Builder create(TermParameterDefinitionContract termParameterDefinition) static factory to create aTermParameterDefinition.Builderfrom aTermParameterDefinitionContract- Parameters:
termParameterDefinition-
-
setId
- Parameters:
id- the id to set. forTermParameterDefinitions used in creational service methods, it must be null. Otherwise, it must be non-null and contain non-whitespace chars.- Throws:
IllegalArgumentException- if id is all whitespace chars
-
setTermId
- Parameters:
termId- the termId to set
-
setName
- Parameters:
name- the name to set. Must be non-null and contain non-whitespace chars.- Throws:
IllegalArgumentException- if name is null or is all whitespace chars
-
setValue
- Parameters:
value- the value to set. May be null or empty.
-
setVersionNumber
- Parameters:
versionNumber- the versionNumber to set. May be null.
-
getId
- Specified by:
getIdin interfaceIdentifiable- Returns:
- the id
-
getTermId
Description copied from interface:TermParameterDefinitionContractGets the identifier for the term that this parameter belongs to. May be null, must not be empty.- Specified by:
getTermIdin interfaceTermParameterDefinitionContract- Returns:
- the termId
-
getName
Description copied from interface:TermParameterDefinitionContractGets the name of this parameter. Must not be null or empty.- Specified by:
getNamein interfaceTermParameterDefinitionContract- Returns:
- the name
-
getValue
Description copied from interface:TermParameterDefinitionContractGets the value of this parameter. May be null.- Specified by:
getValuein interfaceTermParameterDefinitionContract- Returns:
- the value
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned- Returns:
- the version number
-
build
return aTermParameterDefinitioninstance constructed from thisTermParameterDefinition.Builder- Specified by:
buildin interfaceModelBuilder- See Also:
-