java.lang.Object
com.genologics.ri.configuration.Type
All Implemented Interfaces:
Batch<FieldLink>, Linkable<Type>, Locatable, Serializable, Iterable<FieldLink>

public class Type extends Object implements Linkable<Type>, Batch<FieldLink>, Serializable
The detailed representation of the configuration of a user defined type.
See Also:
  • Field Details

    • fieldDefinitions

      protected List<FieldLink> fieldDefinitions
      The list of field definitions for this type.
    • attachToName

      protected String attachToName
      The name of the entity type this user defined type is attached to.
    • attachToCategory

      protected String attachToCategory
      The category this user defined type is attached to.
    • name

      protected String name
      The name of this type.
    • uri

      protected URI uri
      The URI of this type configuration.
  • Constructor Details

    • Type

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

      public Type(String name)
      Constructor for creating a Type with a name.
      Parameters:
      name - The name of the type.
    • Type

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

    • getFieldDefinitions

      public List<FieldLink> getFieldDefinitions()
      Gets the list of field definitions for this type. Creates a new list if one doesn't exist.
      Returns:
      The list of field definitions.
    • getList

      public List<FieldLink> getList()
      Gets the list of field definitions as required by the Batch interface.
      Specified by:
      getList in interface Batch<FieldLink>
      Returns:
      The list of field definitions.
    • getSize

      public int getSize()
      Gets the number of field definitions.
      Specified by:
      getSize in interface Batch<FieldLink>
      Returns:
      The number of field definitions, or 0 if the list is null.
    • getAttachToName

      public String getAttachToName()
      Gets the name of the entity type this user defined type is attached to.
      Returns:
      The entity type name.
    • setAttachToName

      public void setAttachToName(String value)
      Sets the name of the entity type this user defined type is attached to.
      Parameters:
      value - The entity type name.
    • getAttachToCategory

      public String getAttachToCategory()
      Gets the category this user defined type is attached to.
      Returns:
      The category name.
    • setAttachToCategory

      public void setAttachToCategory(String value)
      Sets the category this user defined type is attached to.
      Parameters:
      value - The category name.
    • getName

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

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

      public URI getUri()
      Gets the URI of this type configuration.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI value)
      Sets the URI of this type configuration.
      Specified by:
      setUri in interface Locatable
      Parameters:
      value - The URI.
    • getLink

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