|
||||||||||
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.function.FunctionParameterDefinition.Builder
public static final class FunctionParameterDefinition.Builder
A builder which can be used to construct FunctionParameterDefinition
instances. Enforces the constraints of the FunctionParameterDefinitionContract
.
Field Summary | |
---|---|
private String |
description
|
private String |
functionId
|
private String |
id
|
private String |
name
|
private String |
parameterType
|
private Integer |
sequenceNumber
|
private static long |
serialVersionUID
|
private Long |
versionNumber
|
Constructor Summary | |
---|---|
private |
FunctionParameterDefinition.Builder(String name,
String type,
Integer sequenceNumber)
|
Method Summary | |
---|---|
FunctionParameterDefinition |
build()
Returns an instance of the object being built by this builder based on the current state of the builder. |
static FunctionParameterDefinition.Builder |
create(FunctionParameterDefinitionContract contract)
Creates and populates a builder with the data on the given FunctionParameterDefinitionContract . |
static FunctionParameterDefinition.Builder |
create(String name,
String type,
Integer sequenceNumber)
Creates a function parameter definition builder with the given required values. |
String |
getDescription()
Returns the description of this parameter. |
String |
getFunctionId()
Returns the ID of the function to which this parameter is associated. |
String |
getId()
The unique identifier for an object. |
String |
getName()
Returns the name of this parameters. |
String |
getParameterType()
Returns the type of this function parameter. |
Integer |
getSequenceNumber()
This is the sequence number of the function parameter. |
Long |
getVersionNumber()
Returns the version number for this object. |
void |
setDescription(String description)
Sets the description for the function parameter definition that will be returned by this builder. |
void |
setFunctionId(String functionId)
Sets the type for the function id If provided, the function id must be non-blank. |
void |
setId(String id)
Sets the id for the function parameter definition that will be returned by this builder. |
void |
setName(String name)
Sets the name for the function parameter definition that will be returned by this builder. |
void |
setParameterType(String type)
Sets the type for the function parameter definition that will be returned by this builder. |
void |
setSequenceNumber(Integer sequenceNumber)
Sets the sequence number for the function parameter definition that will be returned by this builder. |
void |
setVersionNumber(Long versionNumber)
Sets the version number for the function parameter definition that will be returned by this builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private String id
private String name
private String description
private String functionId
private String parameterType
private Integer sequenceNumber
private Long versionNumber
Constructor Detail |
---|
private FunctionParameterDefinition.Builder(String name, String type, Integer sequenceNumber)
Method Detail |
---|
public static FunctionParameterDefinition.Builder create(String name, String type, Integer sequenceNumber)
FunctionParameterDefinition
object should be created.
name
- the name of the function parameter definition to create, must not be null or blanktype
- the type of the function parameter definition to create, must not be null or blank
IllegalArgumentException
- if any of the given arguments is null or blankpublic static FunctionParameterDefinition.Builder create(FunctionParameterDefinitionContract contract)
FunctionParameterDefinitionContract
.
This is similar in nature to a "copy constructor" for FunctionParameterDefinition
.
contract
- an object implementing the FunctionParameterDefinitionContract
from which
to copy property values
IllegalArgumentException
- if the given contract is nullpublic FunctionParameterDefinition build()
ModelBuilder
build
in interface ModelBuilder
public String getId()
Identifiable
getId
in interface Identifiable
public void setId(String id)
id
- the function parameter definition id to setpublic String getName()
FunctionParameterDefinitionContract
getName
in interface FunctionParameterDefinitionContract
public void setName(String name)
name
- the name to set on this builder, must not be null or blankpublic String getDescription()
FunctionParameterDefinitionContract
getDescription
in interface FunctionParameterDefinitionContract
public void setDescription(String description)
description
- the description to set on this builderpublic String getParameterType()
FunctionParameterDefinitionContract
getParameterType
in interface FunctionParameterDefinitionContract
public void setParameterType(String type)
type
- the type to set on this builder, must not be null or blankpublic String getFunctionId()
FunctionParameterDefinitionContract
getFunctionId
in interface FunctionParameterDefinitionContract
public void setFunctionId(String functionId)
type
- the type to set on this builder, must be either null or non-blankpublic Integer getSequenceNumber()
FunctionParameterDefinitionContract
getSequenceNumber
in interface FunctionParameterDefinitionContract
public void setSequenceNumber(Integer sequenceNumber)
sequenceNumber
- the position of the parameter in the function parameter listpublic Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
In general, this value should not be manually set on the builder,
but rather copied from an existing FunctionParameterDefinitionContract
when
invoking create(FunctionParameterDefinitionContract)
.
versionNumber
- the version number to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |