Class AbstractTransientUnitRepresentation

java.lang.Object
com.pnfsoftware.jeb.core.output.AbstractUnitRepresentation
com.pnfsoftware.jeb.core.output.AbstractTransientUnitRepresentation
All Implemented Interfaces:
IUnitDocumentPresentation

public abstract class AbstractTransientUnitRepresentation extends AbstractUnitRepresentation
Base class for transient unit representations, which are not serialized.
  • Constructor Details

    • AbstractTransientUnitRepresentation

      public AbstractTransientUnitRepresentation(String label)
    • AbstractTransientUnitRepresentation

      public AbstractTransientUnitRepresentation(String label, boolean defaultRepresentation)
    • AbstractTransientUnitRepresentation

      public AbstractTransientUnitRepresentation(long id, String label, boolean defaultRepresentation)
  • Method Details

    • getDocument

      public IGenericDocument getDocument()
      Description copied from interface: IUnitDocumentPresentation
      Get a document. It is implementation-dependent whether the document is a freshly created or a singleton provided by the presentation.
      Returns:
      the document
    • createDocument

      protected abstract IGenericDocument createDocument()
    • dispose

      public void dispose()
      Description copied from interface: IUnitDocumentPresentation
      Dispose this presentation. All created documents held in the presentation shall be destroyed. This method is a fail-safe, calling it is not good practice. Good practice is to let the code that created a document dispose of it.