public static class KewTypeAttribute.Builder extends Object implements KewTypeAttributeContract, ModelBuilder, Serializable
| Modifier and Type | Method and Description |
|---|---|
KewTypeAttribute.Builder |
attributeDefinition(KewAttributeDefinition.Builder attributeDefinition) |
KewTypeAttribute |
build()
Builds an instance of a KewTypeAttribute based on the current state of the builder.
|
static KewTypeAttribute.Builder |
create(KewTypeAttributeContract contract) |
static KewTypeAttribute.Builder |
create(String id,
String typeId,
String attributeDefinitionId,
Integer sequenceNumber)
Creates a builder from the given parameters.
|
KewAttributeDefinition.Builder |
getAttributeDefinition()
This is the definition of the attribute
|
String |
getAttributeDefinitionId()
This is the id of the definition of the attribute.
|
String |
getId() |
Integer |
getSequenceNumber()
This is the sequence number of the attribute
|
String |
getTypeId()
This is the KewType to which the attribute applies
|
boolean |
isActive() |
void |
setActive(boolean active) |
void |
setAttributeDefinition(KewAttributeDefinition.Builder attributeDefinition) |
void |
setAttributeDefinitionId(String attributeDefinitionId) |
void |
setId(String id)
Sets the value of the id on this builder to the given value.
|
void |
setSequenceNumber(Integer sequenceNumber) |
void |
setTypeId(String typeId) |
public KewTypeAttribute.Builder attributeDefinition(KewAttributeDefinition.Builder attributeDefinition)
public static KewTypeAttribute.Builder create(String id, String typeId, String attributeDefinitionId, Integer sequenceNumber)
id - the KewTypeAtribute idtypeId - the KewType IdattributeDefinitionId - The attributeDefinitionIdsequenceNumber - IllegalArgumentException - if the either the id, name or namespace is null or blankpublic static KewTypeAttribute.Builder create(KewTypeAttributeContract contract)
public void setId(String id)
id - the id value to set, must be null or non-blankIllegalArgumentException - if the id is not null and blankpublic void setAttributeDefinitionId(String attributeDefinitionId)
public void setSequenceNumber(Integer sequenceNumber)
public void setAttributeDefinition(KewAttributeDefinition.Builder attributeDefinition)
public void setActive(boolean active)
public String getId()
getId in interface Identifiablepublic String getTypeId()
KewTypeAttributeContractIt is a id of a KEW type related to the attribute.
getTypeId in interface KewTypeAttributeContractpublic String getAttributeDefinitionId()
KewTypeAttributeContractIt identifies the attribute definition
getAttributeDefinitionId in interface KewTypeAttributeContractpublic Integer getSequenceNumber()
KewTypeAttributeContractgetSequenceNumber in interface KewTypeAttributeContractpublic KewAttributeDefinition.Builder getAttributeDefinition()
KewTypeAttributeContractgetAttributeDefinition in interface KewTypeAttributeContractpublic boolean isActive()
isActive in interface Inactivatablepublic KewTypeAttribute build()
build in interface ModelBuilderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.