public static final class Role.Builder extends Object implements RoleContract, ModelBuilder, ModelObjectComplete
| Modifier and Type | Method and Description |
|---|---|
Role |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static Role.Builder |
create() |
static Role.Builder |
create(RoleContract roleContract) |
static Role.Builder |
create(String id,
String name,
String namespaceCode,
String description,
String kimTypeId) |
boolean |
equals(Object obj)
All "Complete" model object's should adhere to the
ModelObjectComplete.equals(Object) contract. |
String |
getDescription()
A full textual description of this role.
|
String |
getId()
The unique identifier for an object.
|
String |
getKimTypeId()
Provides the associated KimType identifier for this role.
|
String |
getName()
The human readable name for this role.
|
String |
getNamespaceCode()
A namespace for this role.
|
String |
getObjectId()
Return the globally unique object id of this object.
|
Long |
getVersionNumber()
Returns the version number for this object.
|
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 |
setDescription(String description) |
void |
setId(String id) |
void |
setKimTypeId(String kimTypeId) |
void |
setName(String name) |
void |
setNamespaceCode(String namespaceCode) |
void |
setObjectId(String objectId) |
void |
setVersionNumber(Long versionNumber) |
String |
toString()
This will return a proper string representation of the Model Object.
|
public static Role.Builder create()
public static Role.Builder create(String id, String name, String namespaceCode, String description, String kimTypeId)
public static Role.Builder create(RoleContract roleContract)
public Role build()
ModelBuilderbuild in interface ModelBuilderpublic String getId()
IdentifiablegetId in interface Identifiablepublic void setNamespaceCode(String namespaceCode)
public String getNamespaceCode()
RoleContractgetNamespaceCode in interface RoleContractpublic String getName()
RoleContractgetName in interface RoleContractpublic void setDescription(String description)
public String getDescription()
RoleContractgetDescription in interface RoleContractpublic void setKimTypeId(String kimTypeId)
public String getKimTypeId()
RoleContractgetKimTypeId in interface RoleContractpublic void setActive(boolean active)
public boolean isActive()
InactivatableisActive in interface Inactivatablepublic void setVersionNumber(Long versionNumber)
public Long getVersionNumber()
VersionedgetVersionNumber in interface Versionedpublic void setObjectId(String objectId)
public String getObjectId()
GloballyUniquegetObjectId in interface GloballyUniquepublic int hashCode()
ModelObjectCompleteModelObjectComplete.hashCode() contract.hashCode in interface ModelObjectCompletehashCode in class Objectpublic boolean equals(Object obj)
ModelObjectCompleteModelObjectComplete.equals(Object) contract.equals in interface ModelObjectCompleteequals in class Objectobj - to object to compare for equalitypublic String toString()
ModelObjectBasictoString in interface ModelObjectBasictoString in class ObjectCopyright © 2005–2015 The Kuali Foundation. All rights reserved.