|
||||||||||
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.term.TermDefinition.Builder
public static class TermDefinition.Builder
ModelBuilder
for TermDefinition
s.
Method Summary | |
---|---|
TermDefinition |
build()
Builds the TermDefinition , or dies trying. |
static TermDefinition.Builder |
create(String id,
TermSpecificationDefinition.Builder termSpecification,
List<TermParameterDefinition.Builder> termParameters)
static factory for creating a TermDefinition.Builder . |
static TermDefinition.Builder |
create(TermDefinitionContract term)
static factory for creating a TermDefinition.Builder from a TermDefinitionContract . |
String |
getDescription()
|
String |
getId()
The unique identifier for an object. |
List<TermParameterDefinition.Builder> |
getParameters()
|
TermSpecificationDefinition.Builder |
getSpecification()
|
Long |
getVersionNumber()
Returns the version number for this object. |
void |
setDescription(String description)
|
void |
setId(String id)
|
void |
setParameters(List<TermParameterDefinition.Builder> parameters)
|
void |
setSpecification(TermSpecificationDefinition.Builder termSpecification)
|
void |
setVersionNumber(Long versionNumber)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TermDefinition.Builder create(String id, TermSpecificationDefinition.Builder termSpecification, List<TermParameterDefinition.Builder> termParameters)
TermDefinition.Builder
.
id
- may be null.termSpecification
- must not be null.termParameters
- may be null.public static TermDefinition.Builder create(TermDefinitionContract term)
TermDefinition.Builder
from a TermDefinitionContract
.
term
- must be non-null.public void setDescription(String description)
public void setId(String id)
id
- the id to set. Should be null to build TermDefinition
s for creation operations.
IllegalArgumentException
- if the id is non-null and only contains whitespacepublic void setSpecification(TermSpecificationDefinition.Builder termSpecification)
termSpecification
- the termSpecification to set
IllegalArgumentException
- if termSpecification is nullpublic void setParameters(List<TermParameterDefinition.Builder> parameters)
parameters
- the termParameters to set. May be null, or empty.public void setVersionNumber(Long versionNumber)
versionNumber
- the versionNumber to set. May be null.public String getId()
Identifiable
getId
in interface Identifiable
public TermSpecificationDefinition.Builder getSpecification()
getSpecification
in interface TermDefinitionContract
public String getDescription()
getDescription
in interface TermDefinitionContract
TermDefinitionContract
public List<TermParameterDefinition.Builder> getParameters()
getParameters
in interface TermDefinitionContract
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public TermDefinition build()
TermDefinition
, or dies trying.
build
in interface ModelBuilder
IllegalStateException
- if builder validation failsModelBuilder.build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |