|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krms.api.repository.language.NaturalLanguageUsage.Builder
public static final class NaturalLanguageUsage.Builder
A builder which can be used to construct NaturalLanguageUsage
instances. Enforces the constraints of the NaturalLanguageUsageContract
.
Method Summary | |
---|---|
NaturalLanguageUsage |
build()
Builds an instance of a NaturalLanguageUsage based on the current state of the builder. |
static NaturalLanguageUsage.Builder |
create(NaturalLanguageUsageContract contract)
|
static NaturalLanguageUsage.Builder |
create(String name,
String namespace)
|
String |
getDescription()
This is the Description of the NaturalLanguageUsage |
String |
getId()
The unique identifier for an object. |
String |
getName()
This is the name of the NaturalLanguageUsage |
String |
getNamespace()
This is the namespace of the NaturalLanguageUsage |
Long |
getVersionNumber()
Returns the version number for this object. |
boolean |
isActive()
The active indicator for an object. |
void |
setActive(boolean active)
Sets the value of active on this builder to the given value. |
void |
setDescription(String description)
Sets the value of description on this builder to the given value. |
void |
setId(String id)
Sets the value of id on this builder to the given value. |
void |
setName(String name)
Sets the value of name on this builder to the given value. |
void |
setNamespace(String namespace)
Sets the value of namespace on this builder to the given value. |
void |
setVersionNumber(Long versionNumber)
Sets the value of versionNumber on this builder to the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NaturalLanguageUsage.Builder create(String name, String namespace)
public static NaturalLanguageUsage.Builder create(NaturalLanguageUsageContract contract)
public NaturalLanguageUsage build()
build
in interface ModelBuilder
public boolean isActive()
Inactivatable
isActive
in interface Inactivatable
public String getDescription()
NaturalLanguageUsageContract
The Description of the NaturalLanguageUsage
getDescription
in interface NaturalLanguageUsageContract
public String getId()
Identifiable
getId
in interface Identifiable
public String getName()
NaturalLanguageUsageContract
The name of the NaturalLanguageUsage
getName
in interface NaturalLanguageUsageContract
public String getNamespace()
NaturalLanguageUsageContract
The namespace of the NaturalLanguageUsage
getNamespace
in interface NaturalLanguageUsageContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setActive(boolean active)
active
- the active value to set.public void setDescription(String description)
description
- the description value to set.public void setId(String id)
id
- the id value to set., may be null, representing the Object has not been persisted, but must not be blank.
IllegalArgumentException
- if the id is blankpublic void setName(String name)
name
- the name value to set., must not be null or blank
IllegalArgumentException
- if the name is null or blankpublic void setNamespace(String namespace)
namespace
- the namespace value to set., must not be null or blank
IllegalArgumentException
- if the namespace is null or blankpublic void setVersionNumber(Long versionNumber)
versionNumber
- the versionNumber value to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |