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.EventObject
Report 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 ErrorCategory
getCategory()
The category of the validation errorjava.lang.String
getContext()
A description of the context where the error occurredjava.lang.String
getDataPart()
The data part isnull
for the main file and a data part specification for embedded files.java.lang.String
getMessage()
The validation messageint
getObjectNo()
The number of the PDF object this error is associated toint
getPageNo()
The page number this error is associated to or0
-
-
-
Method Detail
-
getDataPart
public java.lang.String getDataPart()
The data part is
null
for the main file and a data part specification for embedded files.Examples:
-
embedded-file:file.pdf
: For a filefile.pdf
that is embedded in the main file. -
embedded-file:file1.pdf/embedded-file:file2.pdf
: For a filefile2.pdf
that 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
-
-