public static final class WorkflowAttributeDefinition.Builder extends Object implements Serializable, ModelBuilder
WorkflowAttributeDefinition
.Modifier and Type | Method and Description |
---|---|
void |
addParameter(String parameter)
Adds a parameter to the list of parameters maintained by this builder.
|
void |
addPropertyDefinition(PropertyDefinition propertyDefinition)
Adds the given property definition to the list of property definitions maintained by this builder.
|
void |
addPropertyDefinition(String name,
String value)
Add a property definition constructed from the given name and value to the list of property definitions
on this builder.
|
WorkflowAttributeDefinition |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static WorkflowAttributeDefinition.Builder |
create(String attributeName)
Constructs a builder which is initialized with the given attribute name.
|
static WorkflowAttributeDefinition.Builder |
create(WorkflowAttributeDefinition definition)
Creates a new builder copying the properties from the given definition into it.
|
String |
getAttributeName()
Returns the attribute name that is set on this builder.
|
List<String> |
getParameters()
Returns a list of string parameters that have been set on this builder.
|
PropertyDefinition |
getPropertyDefinition(String name)
Returns the property definition on this build which has the given name if it exists.
|
List<PropertyDefinition> |
getPropertyDefinitions()
Returns a list of
PropertyDefinition objects that have been set on this builder. |
void |
removeParameter(String parameter)
Removes a parameter with the given value from the list of parameters maintained by this builder.
|
void |
setAttributeName(String attributeName)
Sets the attribute name on this builder to the given value.
|
void |
setParameters(List<String> parameters)
Sets the list of parameters on this builder.
|
void |
setPropertyDefinitions(List<PropertyDefinition> propertyDefinitions)
Sets the list of property definitions maintained by this build to the given list.
|
public static WorkflowAttributeDefinition.Builder create(WorkflowAttributeDefinition definition)
definition
- the definition from which to copy propertiespublic static WorkflowAttributeDefinition.Builder create(String attributeName)
attributeName
- the attribute name to use when initializing this builder, cannot be a null or empty
valueIllegalArgumentException
- if attributeName
is a null or blank valuepublic WorkflowAttributeDefinition build()
ModelBuilder
build
in interface ModelBuilder
public String getAttributeName()
public List<String> getParameters()
public List<PropertyDefinition> getPropertyDefinitions()
PropertyDefinition
objects that have been set on this builder.public void setAttributeName(String attributeName)
attributeName
- the value of the attributeName to setIllegalArgumentException
- if attributeName
is a null or blank valuepublic void addParameter(String parameter)
parameter
- the parameter value to addpublic void removeParameter(String parameter)
parameter
- the parameter value to removepublic void setParameters(List<String> parameters)
parameters
- the list of parameters to setpublic void addPropertyDefinition(PropertyDefinition propertyDefinition)
propertyDefinition
- the property definition to set, should not be nullIllegalArgumentException
- if the given property definition is nullpublic void setPropertyDefinitions(List<PropertyDefinition> propertyDefinitions)
propertyDefinitions
- the list of property definitions to setpublic void addPropertyDefinition(String name, String value)
name
- name of the property definition to add, must not be a null or blank valuevalue
- value of the property definition to addIllegalArgumentException
- if the given name is a null or blank valuepublic PropertyDefinition getPropertyDefinition(String name)
name
- the name of the property definition to retrieveIllegalArgumentException
- if the given name is a null or blank valueCopyright © 2005–2016 The Kuali Foundation. All rights reserved.