Class KewAttributeDefinition.Builder
java.lang.Object
org.kuali.rice.kew.api.repository.type.KewAttributeDefinition.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,Identifiable,Versioned,ModelBuilder,KewAttributeDefinitionContract
- Enclosing class:
- KewAttributeDefinition
public static class KewAttributeDefinition.Builder
extends Object
implements KewAttributeDefinitionContract, ModelBuilder, Serializable
This builder is used to construct instances of KewAttributeDefinition. It enforces the constraints of the
KewAttributeDefinitionContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance of a CampusType based on the current state of the builder.componentName(String componentName) Creates a builder from the given parameters.create(KewAttributeDefinitionContract contract) Creates a builder by populating it with data from the givenKewAttributeDefinitionContract.This is the component name of the KewAttributeDefinitionthis is the optional description for theKewAttributeDefinitiongetId()getLabel()This is the label of the KewAttributeDefinitiongetName()This is the name for the KewAttributeDefinitionThis is the namespace code.booleanisActive()voidsetActive(boolean active) voidsetComponentName(String componentName) voidsetDescription(String description) voidSets the value of the id on this builder to the given value.voidvoidvoidsetNamespace(String namespace) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
label
-
componentName
-
create
Creates a builder from the given parameters.- Parameters:
id- the KewAttributeDefinition idname- the KewAttributeDefinition namenamespace- the KewAttributeDefinition namespace- Returns:
- an instance of the builder with the fields already populated
- Throws:
IllegalArgumentException- if the either the id, name or namespace is null or blank
-
create
Creates a builder by populating it with data from the givenKewAttributeDefinitionContract.- Parameters:
contract- the contract from which to populate this builder- Returns:
- an instance of the builder populated with data from the contract
-
setId
Sets the value of the id on this builder to the given value.- Parameters:
id- the id value to set, must be null or non-blank- Throws:
IllegalArgumentException- if the id is non-null and blank
-
setName
-
setNamespace
-
setLabel
-
setDescription
-
setComponentName
-
setActive
public void setActive(boolean active) -
setVersionNumber
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
getName
Description copied from interface:KewAttributeDefinitionContractThis is the name for the KewAttributeDefinitionIt is a name of a KewAttributeDefinition.
- Specified by:
getNamein interfaceKewAttributeDefinitionContract- Returns:
- name for KewAttributeDefinition.
-
getNamespace
Description copied from interface:KewAttributeDefinitionContractThis is the namespace code.It provides scope of the KewAttributeDefinition.
- Specified by:
getNamespacein interfaceKewAttributeDefinitionContract- Returns:
- the namespace code of the KewAttributeDefinition.
-
getComponentName
Description copied from interface:KewAttributeDefinitionContractThis is the component name of the KewAttributeDefinition- Specified by:
getComponentNamein interfaceKewAttributeDefinitionContract- Returns:
- the component name of the KewAttributeDefinition
-
getLabel
Description copied from interface:KewAttributeDefinitionContractThis is the label of the KewAttributeDefinition- Specified by:
getLabelin interfaceKewAttributeDefinitionContract- Returns:
- the label of the KewAttributeDefinition
-
getDescription
Description copied from interface:KewAttributeDefinitionContractthis is the optional description for theKewAttributeDefinition- Specified by:
getDescriptionin interfaceKewAttributeDefinitionContract- Returns:
- the description text
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
build
Builds an instance of a CampusType based on the current state of the builder.- Specified by:
buildin interfaceModelBuilder- Returns:
- the fully-constructed CampusType
-