Class PdfAnnotationFlattenFactory
- java.lang.Object
-
- com.itextpdf.kernel.utils.annotationsflattening.PdfAnnotationFlattenFactory
-
public class PdfAnnotationFlattenFactory extends java.lang.Object
Helper class to retrieve the annotation flatten worker for the specified annotation subtype.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.HashMap<PdfName,java.util.function.Supplier<IAnnotationFlattener>>
map
private static PdfName
UNKNOWN
-
Constructor Summary
Constructors Constructor Description PdfAnnotationFlattenFactory()
Creates a newPdfAnnotationFlattenFactory
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IAnnotationFlattener
getAnnotationFlattenWorker(PdfName name)
Gets the annotation flatten worker for the specified annotation subtype.
-
-
-
Field Detail
-
map
private static final java.util.HashMap<PdfName,java.util.function.Supplier<IAnnotationFlattener>> map
-
UNKNOWN
private static final PdfName UNKNOWN
-
-
Constructor Detail
-
PdfAnnotationFlattenFactory
public PdfAnnotationFlattenFactory()
Creates a newPdfAnnotationFlattenFactory
instance.
-
-
Method Detail
-
getAnnotationFlattenWorker
public IAnnotationFlattener getAnnotationFlattenWorker(PdfName name)
Gets the annotation flatten worker for the specified annotation subtype.- Parameters:
name
- the annotation subtype. If the subtype is unknown, the worker for the null type will be returned.- Returns:
- the annotation flatten worker
-
-