org.kuali.rice.kew.api.document.node
Class RouteNodeInstanceState.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.document.node.RouteNodeInstanceState.Builder
All Implemented Interfaces:
Serializable, Identifiable, ModelBuilder, RouteNodeInstanceStateContract
Enclosing class:
RouteNodeInstanceState

public static final class RouteNodeInstanceState.Builder
extends Object
implements Serializable, ModelBuilder, RouteNodeInstanceStateContract

A builder which can be used to construct RouteNodeInstanceState instances. Enforces the constraints of the RouteNodeInstanceStateContract.

See Also:
Serialized Form

Method Summary
 RouteNodeInstanceState build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static RouteNodeInstanceState.Builder create()
           
static RouteNodeInstanceState.Builder create(RouteNodeInstanceStateContract contract)
           
 String getId()
          The unique identifier for an object.
 String getKey()
           
 String getValue()
           
 void setId(String id)
           
 void setKey(String key)
           
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static RouteNodeInstanceState.Builder create()

create

public static RouteNodeInstanceState.Builder create(RouteNodeInstanceStateContract contract)

build

public RouteNodeInstanceState 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

getValue

public String getValue()
Specified by:
getValue in interface RouteNodeInstanceStateContract

getKey

public String getKey()
Specified by:
getKey in interface RouteNodeInstanceStateContract

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Returns:
the id

setValue

public void setValue(String value)

setKey

public void setKey(String key)

setId

public void setId(String id)


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