Table of Contents

Class ValidationContainer

Namespace
iText.Kernel.Utils
Assembly
itext.kernel.dll

This class is a container for one or more IValidationChecker implementations.

public class ValidationContainer
Inheritance
ValidationContainer
Inherited Members

Remarks

This class is a container for one or more IValidationChecker implementations.

It is used in the PdfDocument to check for additional conformance requirements.

Constructors

ValidationContainer()

Create a new ValidationContainer instance.

public ValidationContainer()

Remarks

Create a new ValidationContainer instance.

By default, no IValidationChecker implementations are added.

Methods

AddChecker(IValidationChecker)

Add an IValidationChecker implementation to the container.

public virtual void AddChecker(IValidationChecker checker)

Parameters

checker IValidationChecker

the IValidationChecker implementation to add

ContainsChecker(IValidationChecker)

Check if the container contains the provided IValidationChecker implementation.

public virtual bool ContainsChecker(IValidationChecker checker)

Parameters

checker IValidationChecker

the IValidationChecker implementation to check

Returns

bool

true if the container contains the provided IValidationChecker implementation, false otherwise

Validate(object, IsoKey, PdfResources, PdfStream, object)

Check the provided object for conformance with all the IValidationChecker implementations.

public virtual void Validate(object obj, IsoKey key, PdfResources resources, PdfStream contentStream, object extra)

Parameters

obj object

the object to check

key IsoKey

the IsoKey of the object

resources PdfResources

the PdfResources of the object

contentStream PdfStream

the PdfStream of the object

extra object

additional information

Remarks

Check the provided object for conformance with all the IValidationChecker implementations.

Validate(ValidationContext)

Validate the provided ValidationContext with all the IValidationChecker implementations.

public virtual void Validate(ValidationContext context)

Parameters

context ValidationContext

the ValidationContext to validate

Remarks

Validate the provided ValidationContext with all the IValidationChecker implementations.