Class PdfAnnotationContext
- java.lang.Object
-
- com.itextpdf.kernel.validation.context.PdfAnnotationContext
-
- All Implemented Interfaces:
IValidationContext
public class PdfAnnotationContext extends java.lang.Object implements IValidationContext
Class which contains context in which annotation was added.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfDictionary
annotation
-
Constructor Summary
Constructors Constructor Description PdfAnnotationContext(PdfDictionary annotation)
Creates newPdfAnnotationContext
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfDictionary
getAnnotation()
GetsPdfDictionary
annotation instance.ValidationType
getType()
Gets type of the context.
-
-
-
Field Detail
-
annotation
private final PdfDictionary annotation
-
-
Constructor Detail
-
PdfAnnotationContext
public PdfAnnotationContext(PdfDictionary annotation)
Creates newPdfAnnotationContext
instance.- Parameters:
annotation
-PdfDictionary
annotation which was added
-
-
Method Detail
-
getType
public ValidationType getType()
Gets type of the context.- Specified by:
getType
in interfaceIValidationContext
- Returns:
- the type
-
getAnnotation
public PdfDictionary getAnnotation()
GetsPdfDictionary
annotation instance.- Returns:
- annotation dictionary
-
-