|
||||||||||
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.term.TermSpecificationDefinition.Builder
public static class TermSpecificationDefinition.Builder
Builder for the TermSpecificationDefinition
immutable DTO. Instantiate using static factory method(s).
Field Summary | |
---|---|
static BuilderUtils.Transformer<TermSpecificationDefinitionContract,TermSpecificationDefinition.Builder> |
toBuilder
BuilderUtils.Transformer to ease converting lists to Builder types |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final BuilderUtils.Transformer<TermSpecificationDefinitionContract,TermSpecificationDefinition.Builder> toBuilder
BuilderUtils.Transformer
to ease converting lists to Builder types
Method Detail |
---|
public static TermSpecificationDefinition.Builder create(String termSpecificationId, String name, String namespace, String type)
TermSpecificationDefinition.Builder
from a complete set of field values for this object.
termSpecificationId
- the primary key field. Must be null for service methods that
create TermSpecificationDefinitionContract
s, and must be non-null & contain non-whitespace
chars otherwise.name
- the name for the TermSpecificationDefinition
. Must be non-null;.namespace
- the namespace for the TermSpecificationDefinition
. Must be non-null & contain non-whitespace.type
- the type for the TermSpecificationDefinition
@return a TermSpecificationDefinition.Builder
object
IllegalArgumentException
- if invalid parameters are supplied.public static TermSpecificationDefinition.Builder create(TermSpecificationDefinitionContract termSpecification)
TermSpecificationDefinition.Builder
from a TermSpecificationDefinitionContract
.
termSpecification
- may not be null;
IllegalArgumentException
- if termSpecification is null, or violates the field invariants of the TermSpecificationDefinition.Builder
.public void setDescription(String description)
public void setId(String termSpecificationId)
termSpecificationId
- the key for this TermSpecificationDefinition
. Must be null for
service methods that create TermSpecificationDefinitionContract
s, and otherwise must be non-null & contain
non-whitespace chars.public void setNamespace(String namespace)
namespace
- the namespace to set. Must be non-null and contain non-whitespace chars;public void setName(String name)
name
- the name to set. Must be non-null and contain non-whitespace chars;public void setType(String type)
type
- the type to set. Must be non-null and contain non-whitespace chars;public void setVersionNumber(Long versionNumber)
versionNumber
- the versionNumber to set. May be null.public void setCategories(List<CategoryDefinition.Builder> categories)
categories
- the categories to set. May not be null but can be an empty set.public String getId()
Identifiable
getId
in interface Identifiable
public String getNamespace()
TermSpecificationDefinitionContract
TermSpecificationDefinitionContract
The namespace of the TermSpecificationDefinitionContract
getNamespace
in interface TermSpecificationDefinitionContract
public String getName()
getName
in interface TermSpecificationDefinitionContract
public String getType()
getType
in interface TermSpecificationDefinitionContract
public String getDescription()
getDescription
in interface TermSpecificationDefinitionContract
TermSpecificationDefinitionContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public List<CategoryDefinition.Builder> getCategories()
TermSpecificationDefinitionContract
getCategories
in interface TermSpecificationDefinitionContract
public TermSpecificationDefinition build()
TermSpecificationDefinition
build
in interface ModelBuilder
ModelBuilder.build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |