Class TypeDefinition

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

public class TypeDefinition extends LimsLinkBase<Field>
Type-definition is a child element of process type providing a URI linking to the configuration of a user-defined type for the process type.
See Also:
  • Field Details

    • uri

      protected URI uri
      The URI of the field.
    • name

      protected String name
      The name of the field.
  • Constructor Details

    • TypeDefinition

      public TypeDefinition()
      Constructs a new type definition.
    • TypeDefinition

      public TypeDefinition(URI uri)
      Constructs a new type definition with the specified URI.
      Parameters:
      uri - the URI of the field.
    • TypeDefinition

      public TypeDefinition(URI uri, String name)
      Constructs a new type definition with the specified URI and name.
      Parameters:
      uri - the URI of the field.
      name - the name of the field.
    • TypeDefinition

      public TypeDefinition(Linkable<Field> field)
      Constructs a new type definition from a linkable field.
      Parameters:
      field - the linkable field.
    • TypeDefinition

      public TypeDefinition(Field field)
      Constructs a new type definition from a field entity.
      Parameters:
      field - the field entity.
  • 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.
      Returns:
      the field URI.
    • setUri

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

      public String toString()
      Returns a string representation of this type definition.
      Overrides:
      toString in class LimsLinkBase<Field>
      Returns:
      The field URI and name.
      See Also: