public static class CategoryDefinition.Builder extends Object implements CategoryDefinitionContract, ModelBuilder, Serializable
CategoryDefinitionContract.| Modifier and Type | Method and Description |
|---|---|
CategoryDefinition |
build()
Builds an instance of a CategoryDefinition based on the current state of the builder.
|
static CategoryDefinition.Builder |
create(CategoryDefinitionContract category)
Creates a builder by populating it with data from the given
CategoryDefinition. |
static CategoryDefinition.Builder |
create(String id,
String name,
String namespace)
Creates a builder from the given parameters.
|
String |
getId() |
String |
getName()
Returns the name of the category definition.
|
String |
getNamespace()
Returns the namespace of the category definition.
|
Long |
getVersionNumber() |
void |
setId(String id)
Sets the value of the id on this builder to the given value.
|
void |
setName(String name)
Sets the name for the category definition that will be returned by this builder.
|
void |
setNamespace(String namespace)
Sets the namespace code for the category definition that will be returned by this builder.
|
void |
setVersionNumber(Long versionNumber)
Sets the version number on this builder to the given value.
|
public static CategoryDefinition.Builder create(String id, String name, String namespace)
id - the CategoryDefinition idname - the CategoryDefinition namenamespace - the CategoryDefinition namespaceIllegalArgumentException - if the either the id, name or namespace is null or blankpublic static CategoryDefinition.Builder create(CategoryDefinitionContract category)
CategoryDefinition.category - the category from which to populate this builderpublic void setId(String id)
id - the id value to set, must be null or non-blankIllegalArgumentException - if the id is non-null and blankpublic void setName(String name)
name - the name to set on this builder, must not be null or blankIllegalArgumentException - if the given name is null or blankpublic void setNamespace(String namespace)
namespace - the namespace code to set on this builder, must not be null or blankIllegalArgumentException - if the given namespace is null or blankpublic void setVersionNumber(Long versionNumber)
versionNumber - the version number to setpublic String getId()
getId in interface Identifiablepublic String getName()
CategoryDefinitionContractgetName in interface CategoryDefinitionContractpublic String getNamespace()
CategoryDefinitionContractgetNamespace in interface CategoryDefinitionContractpublic Long getVersionNumber()
getVersionNumber in interface Versionedpublic CategoryDefinition build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.