Package es.gob.afirma.mreport.items
Class MatrixPagesInclude
- java.lang.Object
-
- es.gob.afirma.mreport.items.MatrixPagesInclude
-
public class MatrixPagesInclude extends java.lang.ObjectClass that contains information about the pages of a signed document will be included in a signature report.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 19/08/2020.
-
-
Constructor Summary
Constructors Constructor Description MatrixPagesInclude()Constructor method for the class MatrixPagesInclude.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPage(int targetNumPage, int originNumPage, PageIncludeFormat format)Add page to the matrix.PageIncludeFormat[]getPagesFormat(int targetNumPage, int originNumPage)Gets a array ofPageIncludeFormatthat contains the location where the page is included.int[]getPageToInclude(int targetNumPage)Gets the number of pages of the signed document will be included into the page of the report provided.booleanisEmpty()Reports if the table is empty.
-
-
-
Method Detail
-
addPage
public void addPage(int targetNumPage, int originNumPage, PageIncludeFormat format)Add page to the matrix.- Parameters:
targetNumPage- Page number of signature report.originNumPage- Page number of signed document.format-PageIncludeFormatthat contains the location where the page is included.
-
getPageToInclude
public int[] getPageToInclude(int targetNumPage)
Gets the number of pages of the signed document will be included into the page of the report provided.- Parameters:
targetNumPage- Page number of signature report.- Returns:
- Array of signed document pages.
-
getPagesFormat
public PageIncludeFormat[] getPagesFormat(int targetNumPage, int originNumPage)
Gets a array ofPageIncludeFormatthat contains the location where the page is included.- Parameters:
targetNumPage- Page number of signature report.originNumPage- Page number of signed document.- Returns:
- Array of
PageIncludeFormatthat contains the location where the page is included.
-
isEmpty
public boolean isEmpty()
Reports if the table is empty.- Returns:
- True if the table is empty, false otherwise.
-
-