Class FieldLink

java.lang.Object
com.genologics.ri.LimsLinkBase<Field>
com.genologics.ri.configuration.FieldLink
All Implemented Interfaces:
LimsLink<Field>, Linkable<Field>, Locatable, Serializable

public class FieldLink extends LimsLinkBase<Field>
Field definition represents a user-defined field configured in the parent entity. It includes the name and a URI linking to the detailed representation of the configuration of a user defined field.
See Also:
  • Field Details

    • name

      protected String name
      The name of the field.
    • uri

      protected URI uri
      The URI of the field configuration.
  • Constructor Details

    • FieldLink

      public FieldLink()
      Constructor for creating an empty FieldLink object.
    • FieldLink

      public FieldLink(URI uri)
      Constructor for creating a FieldLink with a URI.
      Parameters:
      uri - The URI of the field.
    • FieldLink

      public FieldLink(URI uri, String name)
      Constructor for creating a FieldLink with a URI and name.
      Parameters:
      uri - The URI of the field.
      name - The name of the field.
    • FieldLink

      public FieldLink(Linkable<Field> link)
      Constructor for creating a FieldLink from a Linkable object. Attempts to extract the name property using reflection.
      Parameters:
      link - The linkable object to create the link from.
    • FieldLink

      public FieldLink(Field field)
      Constructor for creating a FieldLink from a Field object.
      Parameters:
      field - The field to create the link from.
  • Method Details

    • getEntityClass

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

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

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

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

      public void setUri(URI uri)
      Sets the URI of the field configuration.
      Parameters:
      uri - The URI.
    • toString

      public String toString()
      Returns a string representation of this link.
      Overrides:
      toString in class LimsLinkBase<Field>
      Returns:
      The field LIMS id and the name.
      See Also: