org.kuali.rice.kew.api.action
Class ActionItemCustomization.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.action.ActionItemCustomization.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, ActionItemCustomizationContract
Enclosing class:
ActionItemCustomization

public static final class ActionItemCustomization.Builder
extends Object
implements Serializable, ModelBuilder, ActionItemCustomizationContract

A builder which can be used to construct ActionItemCustomization instances. Enforces the constraints of the ActionItemCustomizationContract.

See Also:
Serialized Form

Method Summary
 ActionItemCustomization build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static ActionItemCustomization.Builder create(ActionItemCustomizationContract contract)
           
static ActionItemCustomization.Builder create(String actionItemId, ActionSet actionSet, DisplayParameters displayParameters)
           
 String getActionItemId()
          Gets the ID of the action item this customization is for
 ActionSet getActionSet()
          Gets the set of actions in this action item customization.
 DisplayParameters getDisplayParameters()
          Gets the display parameters in this action item customization.
 void setActionItemId(String actionItemId)
           
 void setActionSet(ActionSet actionSet)
           
 void setDisplayParameters(DisplayParameters displayParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ActionItemCustomization.Builder create(String actionItemId,
                                                     ActionSet actionSet,
                                                     DisplayParameters displayParameters)

create

public static ActionItemCustomization.Builder create(ActionItemCustomizationContract contract)

build

public ActionItemCustomization build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getActionSet

public ActionSet getActionSet()
Description copied from interface: ActionItemCustomizationContract
Gets the set of actions in this action item customization.

Specified by:
getActionSet in interface ActionItemCustomizationContract
Returns:
the action set. Never null.

getDisplayParameters

public DisplayParameters getDisplayParameters()
Description copied from interface: ActionItemCustomizationContract
Gets the display parameters in this action item customization.

Specified by:
getDisplayParameters in interface ActionItemCustomizationContract
Returns:
the display parameters. May be null.

getActionItemId

public String getActionItemId()
Description copied from interface: ActionItemCustomizationContract
Gets the ID of the action item this customization is for

Specified by:
getActionItemId in interface ActionItemCustomizationContract
Returns:
the action item id. Never null.

setActionItemId

public void setActionItemId(String actionItemId)

setActionSet

public void setActionSet(ActionSet actionSet)

setDisplayParameters

public void setDisplayParameters(DisplayParameters displayParameters)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.