Class RoleLink

java.lang.Object
com.genologics.ri.LimsLinkBase<Role>
com.genologics.ri.role.RoleLink
All Implemented Interfaces:
LimsLink<Role>, Linkable<Role>, Locatable, Serializable

public class RoleLink extends LimsLinkBase<Role>
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 Details

    • name

      protected String name
      The name of the role.
    • uri

      protected URI uri
      The URI of the role.
  • Constructor Details

    • RoleLink

      public RoleLink()
      Default constructor.
    • RoleLink

      public RoleLink(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI of the role.
    • RoleLink

      public RoleLink(URI uri, String name)
      Constructor with URI and name.
      Parameters:
      uri - The URI of the role.
      name - The name of the role.
    • RoleLink

      public RoleLink(Role role)
      Constructor from a Role entity.
      Parameters:
      role - The role entity.
  • Method Details

    • getName

      public String getName()
      Gets the name of the role.
      Returns:
      The role name.
    • setName

      public void setName(String name)
      Sets the name of the role.
      Parameters:
      name - The role name.
    • getUri

      public URI getUri()
      Gets the URI of the role.
      Returns:
      The role URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI of the role.
      Parameters:
      uri - The role URI.
    • getEntityClass

      public Class<Role> getEntityClass()
      Gets the entity class for this link.
      Returns:
      The Role class.
    • toString

      public String toString()
      Returns a string representation of this role link.
      Overrides:
      toString in class LimsLinkBase<Role>
      Returns:
      The role URI and name.
      See Also: