Class NaturalLanguageUsage.Builder
java.lang.Object
org.kuali.rice.krms.api.repository.language.NaturalLanguageUsage.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.common.Versioned,org.kuali.rice.core.api.mo.ModelBuilder,NaturalLanguageUsageContract
- Enclosing class:
NaturalLanguageUsage
public static final class NaturalLanguageUsage.Builder
extends Object
implements Serializable, org.kuali.rice.core.api.mo.ModelBuilder, NaturalLanguageUsageContract
A builder which can be used to construct
NaturalLanguageUsage instances. Enforces the constraints of the NaturalLanguageUsageContract.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance of a NaturalLanguageUsage based on the current state of the builder.static NaturalLanguageUsage.Builderstatic NaturalLanguageUsage.Buildercreate(NaturalLanguageUsageContract contract) This is the Description of the NaturalLanguageUsagegetId()getName()This is the name of the NaturalLanguageUsageThis is the namespace of the NaturalLanguageUsagebooleanisActive()voidsetActive(boolean active) Sets the value of active on this builder to the given value.voidsetDescription(String description) Sets the value of description on this builder to the given value.voidSets the value of id on this builder to the given value.voidSets the value of name on this builder to the given value.voidsetNamespace(String namespace) Sets the value of namespace on this builder to the given value.voidsetVersionNumber(Long versionNumber) Sets the value of versionNumber on this builder to the given value.
-
Method Details
-
create
-
create
-
build
Builds an instance of a NaturalLanguageUsage based on the current state of the builder.- Specified by:
buildin interfaceorg.kuali.rice.core.api.mo.ModelBuilder- Returns:
- the fully-constructed NaturalLanguageUsage.
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.kuali.rice.core.api.mo.common.active.Inactivatable
-
getDescription
Description copied from interface:NaturalLanguageUsageContractThis is the Description of the NaturalLanguageUsageThe Description of the NaturalLanguageUsage
- Specified by:
getDescriptionin interfaceNaturalLanguageUsageContract- Returns:
- the Description of the NaturalLanguageUsage
-
getId
- Specified by:
getIdin interfaceorg.kuali.rice.core.api.mo.common.Identifiable
-
getName
Description copied from interface:NaturalLanguageUsageContractThis is the name of the NaturalLanguageUsageThe name of the NaturalLanguageUsage
- Specified by:
getNamein interfaceNaturalLanguageUsageContract- Returns:
- the name of the NaturalLanguageUsage
-
getNamespace
Description copied from interface:NaturalLanguageUsageContractThis is the namespace of the NaturalLanguageUsageThe namespace of the NaturalLanguageUsage
- Specified by:
getNamespacein interfaceNaturalLanguageUsageContract- Returns:
- the namespace of the NaturalLanguageUsage
-
getVersionNumber
- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
setActive
public void setActive(boolean active) Sets the value of active on this builder to the given value.- Parameters:
active- the active value to set.
-
setDescription
Sets the value of description on this builder to the given value.- Parameters:
description- the description value to set.
-
setId
Sets the value of id on this builder to the given value.- Parameters:
id- the id value to set., may be null, representing the Object has not been persisted, but must not be blank.- Throws:
IllegalArgumentException- if the id is blank
-
setName
Sets the value of name on this builder to the given value.- Parameters:
name- the name value to set., must not be null or blank- Throws:
IllegalArgumentException- if the name is null or blank
-
setNamespace
Sets the value of namespace on this builder to the given value.- Parameters:
namespace- the namespace value to set., must not be null or blank- Throws:
IllegalArgumentException- if the namespace is null or blank
-
setVersionNumber
Sets the value of versionNumber on this builder to the given value.- Parameters:
versionNumber- the versionNumber value to set.
-