org.kuali.rice.kim.api.common.delegate
Class DelegateType.Builder

java.lang.Object
  extended by org.kuali.rice.kim.api.common.delegate.DelegateType.Builder
All Implemented Interfaces:
Serializable, Inactivatable, ModelBuilder, ModelObjectBasic, ModelObjectComplete, DelegateTypeContract
Enclosing class:
DelegateType

public static final class DelegateType.Builder
extends Object
implements DelegateTypeContract, ModelBuilder, ModelObjectComplete

See Also:
Serialized Form

Constructor Summary
DelegateType.Builder()
           
 
Method Summary
 DelegateType build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static DelegateType.Builder create(DelegateTypeContract dtc)
           
static DelegateType.Builder create(String roleId, DelegationType delegationType, List<DelegateMember.Builder> members)
           
 boolean equals(Object obj)
          All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.
 String getDelegationId()
           
 DelegationType getDelegationType()
           
 String getKimTypeId()
          not required
 List<DelegateMember.Builder> getMembers()
           
 String getRoleId()
           
 int hashCode()
          All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.
 boolean isActive()
          The active indicator for an object.
 void setActive(Boolean active)
           
 void setDelegationId(String delegationId)
           
 void setDelegationType(DelegationType delegationType)
           
 void setKimTypeId(String kimTypeId)
           
 void setMembers(List<DelegateMember.Builder> members)
           
 void setRoleId(String roleId)
           
 String toString()
          This will return a proper string representation of the Model Object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegateType.Builder

public DelegateType.Builder()
Method Detail

create

public static DelegateType.Builder create(DelegateTypeContract dtc)

create

public static DelegateType.Builder create(String roleId,
                                          DelegationType delegationType,
                                          List<DelegateMember.Builder> members)

build

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

getRoleId

public String getRoleId()
Specified by:
getRoleId in interface DelegateTypeContract

setRoleId

public void setRoleId(String roleId)

getDelegationId

public String getDelegationId()
Specified by:
getDelegationId in interface DelegateTypeContract

setDelegationId

public void setDelegationId(String delegationId)

getDelegationType

public DelegationType getDelegationType()
Specified by:
getDelegationType in interface DelegateTypeContract

setDelegationType

public void setDelegationType(DelegationType delegationType)

getKimTypeId

public String getKimTypeId()
Description copied from interface: DelegateTypeContract
not required

Specified by:
getKimTypeId in interface DelegateTypeContract
Returns:

setKimTypeId

public void setKimTypeId(String kimTypeId)

getMembers

public List<DelegateMember.Builder> getMembers()
Specified by:
getMembers in interface DelegateTypeContract

setMembers

public void setMembers(List<DelegateMember.Builder> members)

isActive

public boolean isActive()
Description copied from interface: Inactivatable
The active indicator for an object.

Specified by:
isActive in interface Inactivatable
Returns:
true if active false if not.

setActive

public void setActive(Boolean active)

hashCode

public int hashCode()
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.hashCode() contract.

Specified by:
hashCode in interface ModelObjectComplete
Overrides:
hashCode in class Object
Returns:
the hashCode value

equals

public boolean equals(Object obj)
Description copied from interface: ModelObjectComplete
All "Complete" model object's should adhere to the ModelObjectComplete.equals(Object) contract.

Specified by:
equals in interface ModelObjectComplete
Overrides:
equals in class Object
Parameters:
obj - to object to compare for equality
Returns:
if equal

toString

public String toString()
Description copied from interface: ModelObjectBasic
This will return a proper string representation of the Model Object. All of the fields comprising the "public" api should be represented in the return value.

Specified by:
toString in interface ModelObjectBasic
Overrides:
toString in class Object
Returns:
the string representation


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