public static final class FunctionParameterDefinition.Builder extends Object implements FunctionParameterDefinitionContract, ModelBuilder, Serializable
FunctionParameterDefinition
instances. Enforces the constraints of the FunctionParameterDefinitionContract
.Modifier and Type | Method and Description |
---|---|
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.
|
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 blankIllegalArgumentException
- 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 valuesIllegalArgumentException
- 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)
functionId
- the functionId 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 setCopyright © 2005–2016 The Kuali Foundation. All rights reserved.