Class ValidationContainer
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
IValidationCheckerthe IValidationChecker implementation to add
ContainsChecker(IValidationChecker)
Check if the container contains the provided IValidationChecker implementation.
public virtual bool ContainsChecker(IValidationChecker checker)
Parameters
checker
IValidationCheckerthe 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
objectthe object to check
key
IsoKeythe IsoKey of the object
resources
PdfResourcesthe PdfResources of the object
contentStream
PdfStreamthe PdfStream of the object
extra
objectadditional 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
ValidationContextthe ValidationContext to validate
Remarks
Validate the provided ValidationContext with all the IValidationChecker implementations.