public static class KrmsTypeDefinition.Builder extends Object implements KrmsTypeDefinitionContract, ModelBuilder, Serializable
KrmsTypeDefinitionContract.| Modifier and Type | Method and Description |
|---|---|
KrmsTypeDefinition.Builder |
attributes(List<KrmsTypeAttribute.Builder> attributes)
fluent interface that sets the attributes of KrmsTypeDefinition builder.
|
KrmsTypeDefinition |
build()
Builds an instance of a KrmsTypeDefinition based on the current state of the builder.
|
static KrmsTypeDefinition.Builder |
create(KrmsTypeDefinitionContract contract)
Creates a builder by populating it with data from the given
KrmsTypeDefinitionContract. |
static KrmsTypeDefinition.Builder |
create(String name,
String namespace)
Creates a KrmsTypeDefinition builder from the given parameters.
|
List<KrmsTypeAttribute.Builder> |
getAttributes()
Returns a list of attributes associated with the KRMS type definition.
|
String |
getId() |
String |
getName()
Returns the name of the KrmsTypeDefinition.
|
String |
getNamespace()
Returns the namespace to which the KrmsTypeDefinition belongs.
|
String |
getServiceName()
Returns the name of the service used to resolve attribute values.
|
Long |
getVersionNumber() |
boolean |
isActive() |
KrmsTypeDefinition.Builder |
serviceName(String serviceName)
fluent interface that sets the serviceName field of the Builder.
|
void |
setActive(boolean active)
sets the active indicator value
|
void |
setAttributes(List<KrmsTypeAttribute.Builder> attributes)
sets the List of attributes related to this KrmsTypeDefinition.
|
void |
setId(String id)
Sets the value of the id on this builder to the given value.
|
void |
setName(String name)
Sets the name of the KrmsTypeDefinition
|
void |
setNamespace(String namespace)
Sets the namespace of the KrmsTypeDefinition
|
void |
setServiceName(String serviceName)
Sets the name of the KRMS type service
|
void |
setVersionNumber(Long versionNumber)
Sets the version number for this object.
|
public KrmsTypeDefinition.Builder serviceName(String serviceName)
serviceName - the service used to resolve attribute valuespublic KrmsTypeDefinition.Builder attributes(List<KrmsTypeAttribute.Builder> attributes)
attributes - List of KrmsTypeAttribute builder objects. KrmsTypeAttribute.Builderpublic static KrmsTypeDefinition.Builder create(String name, String namespace)
name - of the KrmsTypeDefinitionnamespace - to which the KrmsTypeDefinition belongsIllegalArgumentException - if the either the name or namespace is null or blankpublic static KrmsTypeDefinition.Builder create(KrmsTypeDefinitionContract contract)
KrmsTypeDefinitionContract.contract - the contract from which to populate this builderIllegalArgumentException - if the contract is nullpublic void setId(String id)
id - the id value to set; can be null; a null id is an indicator
the this has not yet been persisted to the database.IllegalArgumentException - if the id is blankpublic void setName(String name)
name - string value to assign to the name; cannot be null or blankIllegalArgumentException - if the name is null or blankpublic void setNamespace(String namespace)
namespace - string value to assign to the namespace; cannot be null or blankIllegalArgumentException - if the name is null or blankpublic void setServiceName(String serviceName)
serviceName - can be null.public void setAttributes(List<KrmsTypeAttribute.Builder> attributes)
attributes - list of KrmsTypeAttribute.Builder representing the
attributes assigned to this KrmsTypeDefinition; List may be empty, but not nullpublic void setActive(boolean active)
active - boolean value to setpublic void setVersionNumber(Long versionNumber)
versionNumber - the version number, or null if one has not been assigned yet.public String getId()
getId in interface Identifiablepublic String getName()
KrmsTypeDefinitionContractgetName in interface KrmsTypeDefinitionContractpublic String getNamespace()
KrmsTypeDefinitionContractgetNamespace in interface KrmsTypeDefinitionContractpublic String getServiceName()
KrmsTypeDefinitionContractgetServiceName in interface KrmsTypeDefinitionContractpublic List<KrmsTypeAttribute.Builder> getAttributes()
KrmsTypeDefinitionContractgetAttributes in interface KrmsTypeDefinitionContractpublic boolean isActive()
isActive in interface Inactivatablepublic Long getVersionNumber()
getVersionNumber in interface Versionedpublic KrmsTypeDefinition build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.