Class AbstractUnitProvider

java.lang.Object
com.pnfsoftware.jeb.core.units.impl.AbstractUnitProvider
All Implemented Interfaces:
IUnitProvider

@Ser public abstract class AbstractUnitProvider extends Object implements IUnitProvider
Default serializable abstract implementation of IUnitProvider.
  • Constructor Details

    • AbstractUnitProvider

      protected AbstractUnitProvider(String formatType, String description, List<IUnitDocumentPresentation> presentations)
      Create a unit provider.
      Parameters:
      formatType - format type override
      description - description override
      presentations - additional presentations
  • Method Details

    • getFormatType

      public String getFormatType()
      Description copied from interface: IUnitProvider
      Get the unit format type override.
      Specified by:
      getFormatType in interface IUnitProvider
      Returns:
      a format type, or null to keep the wrapped unit's value
    • getDescription

      public String getDescription()
      Description copied from interface: IUnitProvider
      Get the unit description override.
      Specified by:
      getDescription in interface IUnitProvider
      Returns:
      a description, or null to keep the wrapped unit's value