Class AbstractUnitProvider
java.lang.Object
com.pnfsoftware.jeb.core.units.impl.AbstractUnitProvider
- All Implemented Interfaces:
IUnitProvider
Default serializable abstract implementation of
IUnitProvider.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractUnitProvider(String formatType, String description, List<IUnitDocumentPresentation> presentations) Create a unit provider. -
Method Summary
Modifier and TypeMethodDescriptionGet the unit description override.Get the unit format type override.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.pnfsoftware.jeb.core.units.IUnitProvider
getFormatter
-
Constructor Details
-
AbstractUnitProvider
protected AbstractUnitProvider(String formatType, String description, List<IUnitDocumentPresentation> presentations) Create a unit provider.- Parameters:
formatType- format type overridedescription- description overridepresentations- additional presentations
-
-
Method Details
-
getFormatType
Description copied from interface:IUnitProviderGet the unit format type override.- Specified by:
getFormatTypein interfaceIUnitProvider- Returns:
- a format type, or null to keep the wrapped unit's value
-
getDescription
Description copied from interface:IUnitProviderGet the unit description override.- Specified by:
getDescriptionin interfaceIUnitProvider- Returns:
- a description, or null to keep the wrapped unit's value
-