Class TypeDefinition

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

public class TypeDefinition extends LimsLinkBase<Type>
Type-definition provides a URI linking to the user defined type associated with the user-defined field, if applicable.
See Also:
  • Field Details

    • name

      protected String name
      The name of the type.
    • uri

      protected URI uri
      The URI of the type definition.
  • Constructor Details

    • TypeDefinition

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

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

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

      public TypeDefinition(Linkable<Type> type)
      Constructor for creating a TypeDefinition from a Linkable object. Attempts to extract the name property using reflection.
      Parameters:
      type - The linkable type object.
    • TypeDefinition

      public TypeDefinition(Type type)
      Constructor for creating a TypeDefinition from a Type object.
      Parameters:
      type - The type object.
  • Method Details

    • getEntityClass

      public Class<Type> getEntityClass()
      Gets the entity class for this type definition.
      Returns:
      The Type class.
    • getName

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

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

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

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

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