Role-link is a child element type of roles and provides a URI linking to the
detailed representation of a Role.
- Since:
- 2.19
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
name
The name of the role. -
uri
The URI of the role.
-
-
Constructor Details
-
RoleLink
public RoleLink()Default constructor. -
RoleLink
Constructor with URI.- Parameters:
uri- The URI of the role.
-
RoleLink
Constructor with URI and name.- Parameters:
uri- The URI of the role.name- The name of the role.
-
RoleLink
Constructor from a Role entity.- Parameters:
role- The role entity.
-
-
Method Details
-
getName
Gets the name of the role.- Returns:
- The role name.
-
setName
Sets the name of the role.- Parameters:
name- The role name.
-
getUri
Gets the URI of the role.- Returns:
- The role URI.
-
setUri
Sets the URI of the role.- Parameters:
uri- The role URI.
-
getEntityClass
Gets the entity class for this link.- Returns:
- The Role class.
-
toString
Returns a string representation of this role link.- Overrides:
toStringin classLimsLinkBase<Role>- Returns:
- The role URI and name.
- See Also:
-