|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.api.document.attribute.WorkflowAttributeDefinition.Builder
public static final class WorkflowAttributeDefinition.Builder
A builder which can be used to construct instances of WorkflowAttributeDefinition
.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static WorkflowAttributeDefinition.Builder create(WorkflowAttributeDefinition definition)
definition
- the definition from which to copy properties
public static WorkflowAttributeDefinition.Builder create(String attributeName)
attributeName
- the attribute name to use when initializing this builder, cannot be a null or empty
value
IllegalArgumentException
- 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 set
IllegalArgumentException
- 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 null
IllegalArgumentException
- 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 add
IllegalArgumentException
- if the given name is a null or blank valuepublic PropertyDefinition getPropertyDefinition(String name)
name
- the name of the property definition to retrieve
IllegalArgumentException
- if the given name is a null or blank value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |