Class GlobalToken

java.lang.Object
com.genologics.ri.globaltoken.GlobalToken
All Implemented Interfaces:
Linkable<GlobalToken>, Locatable, Serializable

public class GlobalToken extends Object implements Linkable<GlobalToken>, Serializable
Clarity global token. There is currently no end point in Clarity, hence there is no @XmlRootElement annotation here. It will need to be added if there is an end point in a later release.
Since:
2.34
See Also:
  • Field Details

    • name

      protected String name
      The token name.
    • value

      protected String value
      The token value.
    • description

      protected String description
      The token description.
    • isCustom

      protected Boolean isCustom
      Flag indicating whether this is a custom token.
    • uri

      protected URI uri
      The URI of this global token.
  • Constructor Details

    • GlobalToken

      public GlobalToken()
      Default constructor.
    • GlobalToken

      public GlobalToken(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI of the global token.
    • GlobalToken

      public GlobalToken(URI uri, String name)
      Constructor with URI and name.
      Parameters:
      uri - The URI of the global token.
      name - The token name.
  • Method Details

    • getName

      public String getName()
      Get the token name.
      Returns:
      The token name.
    • setName

      public void setName(String name)
      Set the token name.
      Parameters:
      name - The token name.
    • getValue

      public String getValue()
      Get the token value.
      Returns:
      The token value.
    • setValue

      public void setValue(String value)
      Set the token value.
      Parameters:
      value - The token value.
    • getDescription

      public String getDescription()
      Get the token description.
      Returns:
      The token description.
    • setDescription

      public void setDescription(String description)
      Set the token description.
      Parameters:
      description - The token description.
    • isCustom

      public boolean isCustom()
      Check whether this is a custom token.
      Returns:
      True if this is a custom token, false otherwise.
    • setCustom

      public void setCustom(Boolean isCustom)
      Set whether this is a custom token.
      Parameters:
      isCustom - True if this is a custom token, false otherwise.
    • getUri

      public URI getUri()
      Get the URI of this global token.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Set the URI of this global token.
      Specified by:
      setUri in interface Locatable
      Parameters:
      uri - The URI.
    • toString

      public String toString()
      Returns a string representation of this global token.
      Overrides:
      toString in class Object
      Returns:
      A string containing the name and value.
    • getLink

      public LimsLink<GlobalToken> getLink()
      Get a concrete link object to this Linkable thing.
      Specified by:
      getLink in interface Linkable<GlobalToken>
      Returns:
      A LimsLink to this object.