|
||||||||||
| 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 | |
|---|---|
private List<CategoryDefinition.Builder> |
categories
|
private String |
contextId
|
private String |
name
|
private static String |
NON_NULL_NON_EMPTY_ERROR
|
private static long |
serialVersionUID
|
private String |
termSpecificationId
|
static BuilderUtils.Transformer<TermSpecificationDefinitionContract,TermSpecificationDefinition.Builder> |
toBuilder
BuilderUtils.Transformer to ease converting lists to Builder types |
private String |
type
|
private Long |
versionNumber
|
| Constructor Summary | |
|---|---|
private |
TermSpecificationDefinition.Builder(String termSpecificationId,
String contextId,
String name,
String type)
|
| Method Summary | |
|---|---|
TermSpecificationDefinition |
build()
Constructs a TermSpecificationDefinition |
static TermSpecificationDefinition.Builder |
create(String termSpecificationId,
String contextId,
String name,
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()
Returns an ordered, immutable list of the categories which this term specification definition requires. |
String |
getContextId()
|
String |
getId()
The unique identifier for an object. |
String |
getName()
|
String |
getType()
|
Long |
getVersionNumber()
Returns the version number for this object. |
void |
setCategories(List<CategoryDefinition.Builder> categories)
|
void |
setContextId(String contextId)
|
void |
setId(String termSpecificationId)
|
void |
setName(String name)
|
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 |
|---|
private static final long serialVersionUID
private String termSpecificationId
private String contextId
private String name
private String type
private Long versionNumber
private List<CategoryDefinition.Builder> categories
private static final String NON_NULL_NON_EMPTY_ERROR
public static final BuilderUtils.Transformer<TermSpecificationDefinitionContract,TermSpecificationDefinition.Builder> toBuilder
BuilderUtils.Transformer to ease converting lists to Builder types
| Constructor Detail |
|---|
private TermSpecificationDefinition.Builder(String termSpecificationId,
String contextId,
String name,
String type)
| Method Detail |
|---|
public static TermSpecificationDefinition.Builder create(String termSpecificationId,
String contextId,
String name,
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.contextId - key relates the TermSpecificationDefinition to a context.name - the name for the TermSpecificationDefinition. Must be non-null;.type - the type for the TermSpecificationDefinition
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 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 setContextId(String contextId)
contextId - the contextId 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 Identifiablepublic String getContextId()
getContextId in interface TermSpecificationDefinitionContractpublic String getName()
getName in interface TermSpecificationDefinitionContractpublic String getType()
getType in interface TermSpecificationDefinitionContractpublic Long getVersionNumber()
Versioned
getVersionNumber in interface Versionedpublic 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 | |||||||||