public static class KewTypeDefinition.Builder extends Object implements KewTypeDefinitionContract, ModelBuilder, Serializable
KewTypeDefinitionContract.| Modifier and Type | Method and Description |
|---|---|
KewTypeDefinition.Builder |
attributes(List<KewTypeAttribute.Builder> attributes) |
KewTypeDefinition |
build()
Builds an instance of a KewType based on the current state of the builder.
|
static KewTypeDefinition.Builder |
create(KewTypeDefinitionContract contract)
Creates a builder by populating it with data from the given
KewTypeDefinitionContract. |
static KewTypeDefinition.Builder |
create(String id,
String name,
String namespace)
Creates a builder from the given parameters.
|
List<KewTypeAttribute.Builder> |
getAttributes()
This method returns a list of attributes associated with the KewType
|
String |
getId() |
String |
getName()
This is the name for the KEWType
|
String |
getNamespace()
This is the namespace code.
|
String |
getServiceName()
This is the name of the KEW KewType service
|
Long |
getVersionNumber() |
boolean |
isActive() |
KewTypeDefinition.Builder |
serviceName(String serviceName) |
void |
setActive(boolean active) |
void |
setAttributes(List<KewTypeAttribute.Builder> attributes) |
void |
setId(String id)
Sets the value of the id on this builder to the given value.
|
void |
setName(String name) |
void |
setNamespace(String namespace) |
void |
setServiceName(String serviceName) |
void |
setVersionNumber(Long versionNumber) |
public KewTypeDefinition.Builder serviceName(String serviceName)
public KewTypeDefinition.Builder attributes(List<KewTypeAttribute.Builder> attributes)
public static KewTypeDefinition.Builder create(String id, String name, String namespace)
id - the KEW type idname - the KEW type namenamespace - the KEW type namespaceIllegalArgumentException - if the either the id, name or namespace is null or blankpublic static KewTypeDefinition.Builder create(KewTypeDefinitionContract contract)
KewTypeDefinitionContract.contract - the contract from which to populate this builderpublic void setId(String id)
id - the id value to set, must not be blankIllegalArgumentException - if the id is blankpublic void setNamespace(String namespace)
public void setServiceName(String serviceName)
public void setAttributes(List<KewTypeAttribute.Builder> attributes)
public void setActive(boolean active)
public void setVersionNumber(Long versionNumber)
public String getId()
getId in interface Identifiablepublic String getName()
KewTypeDefinitionContractIt is a name of a KEW type.
getName in interface KewTypeDefinitionContractpublic String getNamespace()
KewTypeDefinitionContractIt provides scope of the KEW type.
getNamespace in interface KewTypeDefinitionContractpublic String getServiceName()
KewTypeDefinitionContractgetServiceName in interface KewTypeDefinitionContractpublic List<KewTypeAttribute.Builder> getAttributes()
KewTypeDefinitionContractgetAttributes in interface KewTypeDefinitionContractpublic boolean isActive()
isActive in interface Inactivatablepublic Long getVersionNumber()
getVersionNumber in interface Versionedpublic KewTypeDefinition build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.