Class KimAttribute.Builder
java.lang.Object
org.kuali.rice.kim.api.common.attribute.KimAttribute.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,GloballyUnique,Identifiable,Versioned,ModelBuilder,KimAttributeContract
- Enclosing class:
KimAttribute
public static final class KimAttribute.Builder
extends Object
implements KimAttributeContract, ModelBuilder, Serializable
This builder constructs an KimAttribute enforcing the constraints of the
KimAttributeContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static KimAttribute.Buildercreates a KimAttribute with the required fields.static KimAttribute.Buildercreate(KimAttributeContract contract) creates a KimAttribute from an existingKimAttributeContract.The label for the kim attribute.The name of the attribute on theKimAttributeContract.getComponentName().A fully-qualified class name which contains theKimAttributeContract.getAttributeName().getId()The namespace code that this kim attribute belongs too.booleanisActive()voidsetActive(boolean active) voidsetAttributeLabel(String attributeLabel) voidsetAttributeName(String attributeName) voidsetComponentName(String componentName) voidvoidsetNamespaceCode(String namespaceCode) voidsetObjectId(String objectId) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
public static KimAttribute.Builder create(String componentName, String attributeName, String namespaceCode) creates a KimAttribute with the required fields. -
create
creates a KimAttribute from an existingKimAttributeContract. -
getId
- Specified by:
getIdin interfaceIdentifiable
-
setId
-
getComponentName
Description copied from interface:KimAttributeContractA fully-qualified class name which contains theKimAttributeContract.getAttributeName(). This cannot be null or a blank string.- Specified by:
getComponentNamein interfaceKimAttributeContract- Returns:
- the name
-
setComponentName
-
getAttributeName
Description copied from interface:KimAttributeContractThe name of the attribute on theKimAttributeContract.getComponentName(). This cannot be null or a blank string.- Specified by:
getAttributeNamein interfaceKimAttributeContract- Returns:
- the name
-
setAttributeName
-
getNamespaceCode
Description copied from interface:KimAttributeContractThe namespace code that this kim attribute belongs too. This cannot be null or a blank string.- Specified by:
getNamespaceCodein interfaceKimAttributeContract- Returns:
- namespace code
-
setNamespaceCode
-
getAttributeLabel
Description copied from interface:KimAttributeContractThe label for the kim attribute. This is optional and can be null or blank.- Specified by:
getAttributeLabelin interfaceKimAttributeContract- Returns:
- the label
-
setAttributeLabel
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceInactivatable
-
setActive
public void setActive(boolean active) -
getVersionNumber
- Specified by:
getVersionNumberin interfaceVersioned
-
setVersionNumber
-
getObjectId
- Specified by:
getObjectIdin interfaceGloballyUnique
-
setObjectId
-
build
- Specified by:
buildin interfaceModelBuilder
-