|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
| Method Summary | |
|---|---|
TermSpecificationDefinition |
build()
Constructs a TermSpecificationDefinition |
static TermSpecificationDefinition.Builder |
create(String termSpecificationId,
String name,
String namespace,
String type)
static factory for a TermSpecificationDefinition.Builder from a complete set of field values for this object. |
static TermSpecificationDefinition.Builder |
create(TermSpecificationDefinitionContract termSpecification)
static factory for a TermSpecificationDefinition.Builder from a TermSpecificationDefinitionContract. |
List<CategoryDefinition.Builder> |
getCategories()
Gets an ordered list of the categories which this term specification definition belongs to. |
String |
getDescription()
Gets the description for this term specification, which will typically be a suitable description for any term having this specification as well. |
String |
getId()
The unique identifier for an object. |
String |
getName()
Gets the name for this TermSpecificationDefinitionContract. |
String |
getNamespace()
Gets the namespace of this TermSpecificationDefinitionContract. |
String |
getType()
Gets the fully qualified class name for the values of any term having this specification. |
Long |
getVersionNumber()
Returns the version number for this object. |
boolean |
isActive()
The active indicator for an object. |
void |
setActive(boolean active)
|
void |
setCategories(List<CategoryDefinition.Builder> categories)
|
void |
setDescription(String description)
|
void |
setId(String termSpecificationId)
|
void |
setName(String name)
|
void |
setNamespace(String namespace)
|
void |
setType(String type)
|
void |
setVersionNumber(Long versionNumber)
|
| 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 TermSpecificationDefinitionContracts, 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 TermSpecificationDefinitionContracts, 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 setActive(boolean active)
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 Identifiablepublic String getNamespace()
TermSpecificationDefinitionContractTermSpecificationDefinitionContract. Will not be null or empty.
getNamespace in interface TermSpecificationDefinitionContractpublic String getName()
TermSpecificationDefinitionContractTermSpecificationDefinitionContract. This is an important key
that must be unique within a namespace, and is used to determine how to resolve any terms
having this specification. Will not be null or empty.
getName in interface TermSpecificationDefinitionContractpublic String getType()
TermSpecificationDefinitionContractBigDecimal,
then the term specification's type would be the String "java.math.BigDecimal". Will never return null or
the empty string.
getType in interface TermSpecificationDefinitionContractpublic String getDescription()
TermSpecificationDefinitionContract
getDescription in interface TermSpecificationDefinitionContractpublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic boolean isActive()
Inactivatable
isActive in interface Inactivatablepublic List<CategoryDefinition.Builder> getCategories()
TermSpecificationDefinitionContract
getCategories in interface TermSpecificationDefinitionContractpublic TermSpecificationDefinition build()
TermSpecificationDefinition
build in interface ModelBuilderModelBuilder.build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||