| Modifier and Type | Class and Description |
|---|---|
| public static class | ValidationResult.
This Class represents an error of validation. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | isValid
Boolean to know if the PDF is a valid PDF/A |
| private List | lErrors
Errors to know why the PDF isn't valid. |
| private XMPMetadata | xmpMetaData
Object representation of the XMPMetaData contained by the pdf file This attribute can be null if the Validation fails. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ValidationResult(ValidationResult.
if error is null, no error is added to the list. errorCreate a Validation Result object. |
| public | ValidationResult(List<ValidationResult.
if error is null, no error is added to the list. errorsCreate a Validation Result object. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addErrors(List<ValidationResult.
Add a set of errors to the list of ValidationError. |
| public List | |
| public XMPMetadata | |
| public boolean | |
| public void | mergeResult(ValidationResult otherResult)
Add the ValidationError object of the otherResult in the Error list of the current object. |
| pack-priv void |
| isValid | back to summary |
|---|---|
| private boolean isValid Boolean to know if the PDF is a valid PDF/A | |
| lErrors | back to summary |
|---|---|
| private List<ValidationResult. Errors to know why the PDF isn't valid. If the PDF is valid, this list is empty. | |
| xmpMetaData | back to summary |
|---|---|
| private XMPMetadata xmpMetaData Object representation of the XMPMetaData contained by the pdf file This attribute can be null if the Validation fails. | |
| ValidationResult | back to summary |
|---|---|
| public ValidationResult(boolean isValid) Create a Validation result object | |
| ValidationResult | back to summary |
|---|---|
| public ValidationResult(ValidationResult. Create a Validation Result object. This constructor force the isValid to false and add the given error to the list or ValidationErrors.
| |
| ValidationResult | back to summary |
|---|---|
| public ValidationResult(List<ValidationResult. Create a Validation Result object. This constructor force the isValid to false and add all the given errors to the list or ValidationErrors.
| |
| addError | back to summary |
|---|---|
| public void addError(ValidationResult. Add error to the list of ValidationError. If the given error is null, this method does nothing | |
| addErrors | back to summary |
|---|---|
| public void addErrors(List<ValidationResult. Add a set of errors to the list of ValidationError. If the given list is null, this method does nothing. | |
| getErrorsList | back to summary |
|---|---|
public List
| |
| getXmpMetaData | back to summary |
|---|---|
public XMPMetadata getXmpMetaData()
| |
| isValid | back to summary |
|---|---|
public boolean isValid()
| |
| mergeResult | back to summary |
|---|---|
| public void mergeResult(ValidationResult otherResult) Add the ValidationError object of the otherResult in the Error list of the current object. Apply a logical AND on the isValid boolean. | |
| setXmpMetaData | back to summary |
|---|---|
pack-priv void setXmpMetaData(XMPMetadata xmpMetaData)
| |
| Modifier and Type | Field and Description |
|---|---|
| private Throwable | cause
The underlying cause if the ValidationError was caused by a Throwable. |
| private String | details
Error details |
| private final String | errorCode
Error identifier. |
| private boolean | isWarning
false: this error can't be ignored; true: this error can be ignored |
| private Integer | pageNumber
The page number on which the error happened, if known. |
| private Throwable | t
Always record the place in the source code where the ValidationError was created, in case the ValidationError was not caused by a Throwable. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ValidationError(String
the error code errorCode, String the error explanation details, Throwable the error cause cause)Create a validation error with the given error code and the error explanation. |
| public | ValidationError(String
the error code errorCode, String the error explanation details)Create a validation error with the given error code and the error explanation. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Throwable | Returns: The underlying cause if the ValidationError was caused by a Throwable, or null if not.Get the underlying cause if the ValidationError was caused by a Throwable. |
| public String | |
| public String | |
| public Integer | |
| public Throwable | Returns: The place where the ValidationError was created.Get the place where the ValidationError was created, useful if the ValidationError was not caused by a Throwable. |
| public int | |
| public boolean | |
| public void | |
| public void | setPageNumber(Integer
zero based page number or null if none is known. pageNumber)Sets or resets the page number. |
| public void |
| cause | back to summary |
|---|---|
| private Throwable cause The underlying cause if the ValidationError was caused by a Throwable. | |
| details | back to summary |
|---|---|
| private String details Error details | |
| errorCode | back to summary |
|---|---|
| private final String errorCode Error identifier. This error code can be used as identifier to internationalize the logging message using i18n. | |
| isWarning | back to summary |
|---|---|
| private boolean isWarning false: this error can't be ignored; true: this error can be ignored | |
| pageNumber | back to summary |
|---|---|
| private Integer pageNumber The page number on which the error happened, if known. | |
| t | back to summary |
|---|---|
| private Throwable t Always record the place in the source code where the ValidationError was created, in case the ValidationError was not caused by a Throwable. | |
| ValidationError | back to summary |
|---|---|
| public ValidationError(String errorCode) Create a validation error with the given error code | |
| ValidationError | back to summary |
|---|---|
| public ValidationError(String errorCode, String details, Throwable cause) Create a validation error with the given error code and the error explanation. | |
| ValidationError | back to summary |
|---|---|
| public ValidationError(String errorCode, String details) Create a validation error with the given error code and the error explanation. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCause | back to summary |
|---|---|
| public Throwable getCause() Get the underlying cause if the ValidationError was caused by a Throwable.
| |
| getDetails | back to summary |
|---|---|
public String getDetails()
| |
| getErrorCode | back to summary |
|---|---|
public String getErrorCode()
| |
| getPageNumber | back to summary |
|---|---|
| public Integer getPageNumber() Returns the page number, or null if not known. | |
| getThrowable | back to summary |
|---|---|
| public Throwable getThrowable() Get the place where the ValidationError was created, useful if the ValidationError was not caused by a Throwable.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isWarning | back to summary |
|---|---|
| public boolean isWarning() | |
| setDetails | back to summary |
|---|---|
| public void setDetails(String details) Set the error explanation | |
| setPageNumber | back to summary |
|---|---|
| public void setPageNumber(Integer pageNumber) Sets or resets the page number.
| |
| setWarning | back to summary |
|---|---|
| public void setWarning(boolean isWarning) | |