public class Role extends Object implements RoleApiDocs, Serializable
This object has Validation restrictions on how many characters can be used to represent the Short and the Full names. Although these constraints are not checked upon setting and not guaranteed upon getting those fields.
| Constructor and Description |
|---|
Role()
Default constructor.
|
Role(Role role)
Copies over fields from given Role
|
Role(String shortName,
String fullName)
Creates new Role with given fields (can be null or empty)
|
| Modifier and Type | Method and Description |
|---|---|
Role |
copy()
For polymorphic defensive copying.
|
boolean |
equals(Object obj) |
String |
getFullName() |
String |
getShortName() |
int |
hashCode() |
void |
setFullName(String fullName) |
void |
setShortName(String shortName) |
String |
toString() |
public Role()
public Role(Role role)
role - A Role to copy fromIllegalArgumentException - if argument is nullpublic String getShortName()
public String getFullName()
public void setShortName(String shortName)
setShortName in interface RoleApiDocspublic void setFullName(String fullName)
public Role copy()