Class KewTypeAttribute.Builder
java.lang.Object
org.kuali.rice.kew.api.repository.type.KewTypeAttribute.Builder
- All Implemented Interfaces:
Serializable,org.kuali.rice.core.api.mo.common.active.Inactivatable,org.kuali.rice.core.api.mo.common.Identifiable,org.kuali.rice.core.api.mo.ModelBuilder,KewTypeAttributeContract
- Enclosing class:
KewTypeAttribute
public static class KewTypeAttribute.Builder
extends Object
implements KewTypeAttributeContract, org.kuali.rice.core.api.mo.ModelBuilder, Serializable
This builder is used to construct instances of KewTypeAttribute.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionattributeDefinition(KewAttributeDefinition.Builder attributeDefinition) build()Builds an instance of a KewTypeAttribute based on the current state of the builder.static KewTypeAttribute.BuilderCreates a builder from the given parameters.static KewTypeAttribute.Buildercreate(KewTypeAttributeContract contract) This is the definition of the attributeThis is the id of the definition of the attribute.getId()This is the sequence number of the attributeThis is the KewType to which the attribute appliesbooleanisActive()voidsetActive(boolean active) voidsetAttributeDefinition(KewAttributeDefinition.Builder attributeDefinition) voidsetAttributeDefinitionId(String attributeDefinitionId) voidSets the value of the id on this builder to the given value.voidsetSequenceNumber(Integer sequenceNumber) void
-
Method Details
-
attributeDefinition
public KewTypeAttribute.Builder attributeDefinition(KewAttributeDefinition.Builder attributeDefinition) -
create
public static KewTypeAttribute.Builder create(String id, String typeId, String attributeDefinitionId, Integer sequenceNumber) Creates a builder from the given parameters.- Parameters:
id- the KewTypeAtribute idtypeId- the KewType IdattributeDefinitionId- The attributeDefinitionIdsequenceNumber-- 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
-
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 not null and blank
-
setTypeId
-
setAttributeDefinitionId
-
setSequenceNumber
-
setAttributeDefinition
-
setActive
public void setActive(boolean active) -
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
getTypeId
Description copied from interface:KewTypeAttributeContractThis is the KewType to which the attribute appliesIt is a id of a KEW type related to the attribute.
- Specified by:
getTypeIdin interfaceKewTypeAttributeContract- Returns:
- id for KEW type related to the attribute.
-
getAttributeDefinitionId
Description copied from interface:KewTypeAttributeContractThis is the id of the definition of the attribute.It identifies the attribute definition
- Specified by:
getAttributeDefinitionIdin interfaceKewTypeAttributeContract- Returns:
- the attribute definition id.
-
getSequenceNumber
Description copied from interface:KewTypeAttributeContractThis is the sequence number of the attribute- Specified by:
getSequenceNumberin interfaceKewTypeAttributeContract- Returns:
- the service name of the KewTypeAttribute
-
getAttributeDefinition
Description copied from interface:KewTypeAttributeContractThis is the definition of the attribute- Specified by:
getAttributeDefinitionin interfaceKewTypeAttributeContract
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
build
Builds an instance of a KewTypeAttribute based on the current state of the builder.- Specified by:
buildin interfaceorg.kuali.rice.core.api.mo.ModelBuilder- Returns:
- the fully-constructed KewTypeAttribute
-