Class AbstractExportModel

  • Direct Known Subclasses:
    ProjectSampleModel

    public abstract class AbstractExportModel
    extends java.lang.Object
    Parent class of all export model to hold utility functions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String checkNullDate​(java.util.Date date)
      Check if a date is null.
      protected java.lang.String checkNullId​(java.lang.Long id)
      Check if the ID of the object is null.
      protected java.lang.String checkNullStrings​(java.lang.String item)
      Check if a string is null or empty.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractExportModel

        public AbstractExportModel()
    • Method Detail

      • checkNullId

        protected java.lang.String checkNullId​(java.lang.Long id)
        Check if the ID of the object is null. If null, return empty string.
        Parameters:
        id - the ID to check
        Returns:
        the value or empty string
      • checkNullStrings

        protected java.lang.String checkNullStrings​(java.lang.String item)
        Check if a string is null or empty. If null, return empty string.
        Parameters:
        item - the item to check
        Returns:
        the value or empty string
      • checkNullDate

        protected java.lang.String checkNullDate​(java.util.Date date)
        Check if a date is null. If null, return empty string.
        Parameters:
        date - the date to check.
        Returns:
        the date as a string or an empty string.