Package com.pdftools.pdfa.validation
Class Validator.Error
- java.lang.Object
-
- java.util.EventObject
-
- com.pdftools.pdfa.validation.Validator.Error
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Validator
public class Validator.Error extends java.util.EventObjectReport a validation issue found inValidator.analyze(com.pdftools.pdf.Document)orValidator.validate(com.pdftools.pdf.Document).- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCategorygetCategory()The category of the validation errorjava.lang.StringgetContext()A description of the context where the error occurredjava.lang.StringgetDataPart()The data part isnullfor the main file and a data part specification for embedded files.java.lang.StringgetMessage()The validation messageintgetObjectNo()The number of the PDF object this error is associated tointgetPageNo()The page number this error is associated to or0
-
-
-
Method Detail
-
getDataPart
public java.lang.String getDataPart()
The data part is
nullfor the main file and a data part specification for embedded files.Examples:
-
embedded-file:file.pdf: For a filefile.pdfthat is embedded in the main file. -
embedded-file:file1.pdf/embedded-file:file2.pdf: For a filefile2.pdfthat is embedded in an embedded filefile1.pdf.
-
-
getMessage
public java.lang.String getMessage()
The validation message
-
getCategory
public ErrorCategory getCategory()
The category of the validation error
-
getContext
public java.lang.String getContext()
A description of the context where the error occurred
-
getPageNo
public int getPageNo()
The page number this error is associated to or0
-
getObjectNo
public int getObjectNo()
The number of the PDF object this error is associated to
-
-