Package org.kuali.rice.kim.api.type
Class KimType.Builder
java.lang.Object
org.kuali.rice.kim.api.type.KimType.Builder
- All Implemented Interfaces:
Serializable,Inactivatable,GloballyUnique,Identifiable,Versioned,ModelBuilder,KimTypeContract
- Enclosing class:
- KimType
public static final class KimType.Builder
extends Object
implements KimTypeContract, ModelBuilder, Serializable
This builder constructs an KimType enforcing the constraints of the
KimTypeContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()static KimType.Buildercreate()creates a KimType with the required fields.static KimType.Buildercreate(KimTypeContract contract) creates a KimType from an existingKimTypeContract.The list of attribute definitions associated with the kim type.getId()getName()The name of the kim type.The namespace code that this kim type belongs too.The service name used to resolve attribute values.booleanisActive()voidsetActive(boolean active) voidsetAttributeDefinitions(List<KimTypeAttribute.Builder> attributeDefinitions) voidvoidvoidsetNamespaceCode(String namespaceCode) voidsetObjectId(String objectId) voidsetServiceName(String serviceName) voidsetVersionNumber(Long versionNumber)
-
Method Details
-
create
creates a KimType with the required fields. -
create
creates a KimType from an existingKimTypeContract. -
getId
- Specified by:
getIdin interfaceIdentifiable
-
setId
-
getServiceName
Description copied from interface:KimTypeContractThe service name used to resolve attribute values.- Specified by:
getServiceNamein interfaceKimTypeContract- Returns:
- the service name
-
setServiceName
-
getNamespaceCode
Description copied from interface:KimTypeContractThe namespace code that this kim type belongs too.- Specified by:
getNamespaceCodein interfaceKimTypeContract- Returns:
- namespace code
-
setNamespaceCode
-
getName
Description copied from interface:KimTypeContractThe name of the kim type.- Specified by:
getNamein interfaceKimTypeContract- Returns:
- the name
-
setName
-
getAttributeDefinitions
Description copied from interface:KimTypeContractThe list of attribute definitions associated with the kim type. This cannot be null. If no attribute definitions are associated with the kim type then this will return an empty collection.- Specified by:
getAttributeDefinitionsin interfaceKimTypeContract- Returns:
- the list of attribute definitions
-
setAttributeDefinitions
-
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
-