# Class: com.pnfsoftware.jeb.core.output.UnitFormatterAdapter

Standard implementation of a unit formatter.

## Constructor: UnitFormatterAdapter

Description: Create a formatter with no document presentation.

## Constructor: UnitFormatterAdapter
- parameter: `presentation`, type: `com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation`

Description: Create a formatter and add a transient \(non\-persisted\) document presentation to it.
parameter: presentation: a document

## Method: addDocumentPresentation
- parameter: `presentation`, type: `com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation`

Description: Add a transient \(non\-persisted\) document presentation to a unit formatter. This method is left for compatibility purpose, and will be deprecated in a subsequent release. Please use [#addPresentation(IUnitDocumentPresentation, boolean)](#addPresentation(IUnitDocumentPresentation, boolean)) instead.
parameter: presentation: a document

## Method: addPresentation
- parameter: `presentation`, type: `com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation`
- parameter: `persisted`, type: `boolean`


## Method: discardTransientPresentations


## Method: getPresentation
- parameter: `index`, type: `int`
- return type: `com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation`


## Method: getPresentationCount
- return type: `int`


## Method: getPresentations
- return type: `java.util.List<com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation>`


## Method: insertPresentation
- parameter: `index`, type: `int`
- parameter: `presentation`, type: `com.pnfsoftware.jeb.core.output.IUnitDocumentPresentation`
- parameter: `persisted`, type: `boolean`


## Method: isPersisted
- parameter: `index`, type: `int`
- return type: `boolean`


## Method: removePresentation
- parameter: `index`, type: `int`


