Class SampleType

  • All Implemented Interfaces:

    public class SampleType
    extends EntityType
    Immutable value object representing a sample type.
    See Also:
    Serialized Form
    • Constructor Detail

      • SampleType

        public SampleType​(SampleType.SampleTypeInitializer initializer)
        Creates a new instance with the provided initializer
        java.lang.IllegalArgumentException - if some of the required information is not provided.
    • Method Detail

      • isListable

        public boolean isListable()
        Returns true if this is a sample type of listable samples.
      • isShowContainer

        public boolean isShowContainer()
        Returns true if for samples of this type the container field is shown in edit/registration form.
      • isShowParents

        public boolean isShowParents()
        Returns true if for sample of this type the parents field is shown in edit/registration form.
      • isUniqueSubcodes

        public boolean isUniqueSubcodes()
        Returns true if the sub code of samples of this type has to be unique.
      • isAutomaticCodeGeneration

        public boolean isAutomaticCodeGeneration()
        Returns true if the sample code is created automatically.
      • isShowParentMetaData

        public boolean isShowParentMetaData()
        Returns true if meta data of parents of samples of this type should be shown.
      • getCodePrefix

        public java.lang.String getCodePrefix()
        Returns code prefix used to create sample code automatically.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object