|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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,
Set<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 |
getId()
|
Set<TermParameterDefinition.Builder> |
getParameters()
|
TermSpecificationDefinition.Builder |
getSpecification()
|
void |
setId(String id)
|
void |
setParameters(Set<TermParameterDefinition.Builder> parameters)
|
void |
setSpecification(TermSpecificationDefinition.Builder termSpecification)
|
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, Set<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 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(Set<TermParameterDefinition.Builder> parameters)
parameters
- the termParameters to set. May be null, or empty.public String getId()
getId
in interface TermDefinitionContract
public TermSpecificationDefinition.Builder getSpecification()
getSpecification
in interface TermDefinitionContract
public Set<TermParameterDefinition.Builder> getParameters()
getParameters
in interface TermDefinitionContract
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 |