Class CanvasBmcValidationContext
- java.lang.Object
-
- com.itextpdf.kernel.validation.context.CanvasBmcValidationContext
-
- All Implemented Interfaces:
IValidationContext
public class CanvasBmcValidationContext extends java.lang.Object implements IValidationContext
Class for canvas begin marked content validation.
-
-
Field Summary
Fields Modifier and Type Field Description private Tuple2<PdfName,PdfDictionary>
currentBmc
private java.util.Stack<Tuple2<PdfName,PdfDictionary>>
tagStructureStack
-
Constructor Summary
Constructors Constructor Description CanvasBmcValidationContext(java.util.Stack<Tuple2<PdfName,PdfDictionary>> tagStructureStack, Tuple2<PdfName,PdfDictionary> currentBmc)
Instantiates a newCanvasBmcValidationContext
based on tag structure stack and current BMC.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tuple2<PdfName,PdfDictionary>
getCurrentBmc()
Gets current BMC.java.util.Stack<Tuple2<PdfName,PdfDictionary>>
getTagStructureStack()
Gets tag structure stack.ValidationType
getType()
Gets type of the context.
-
-
-
Field Detail
-
tagStructureStack
private final java.util.Stack<Tuple2<PdfName,PdfDictionary>> tagStructureStack
-
currentBmc
private final Tuple2<PdfName,PdfDictionary> currentBmc
-
-
Constructor Detail
-
CanvasBmcValidationContext
public CanvasBmcValidationContext(java.util.Stack<Tuple2<PdfName,PdfDictionary>> tagStructureStack, Tuple2<PdfName,PdfDictionary> currentBmc)
Instantiates a newCanvasBmcValidationContext
based on tag structure stack and current BMC.- Parameters:
tagStructureStack
- the tag structure stackcurrentBmc
- the current BMC
-
-
Method Detail
-
getTagStructureStack
public java.util.Stack<Tuple2<PdfName,PdfDictionary>> getTagStructureStack()
Gets tag structure stack.- Returns:
- tag structure stack
-
getCurrentBmc
public Tuple2<PdfName,PdfDictionary> getCurrentBmc()
Gets current BMC.- Returns:
- the current BMC
-
getType
public ValidationType getType()
Description copied from interface:IValidationContext
Gets type of the context.- Specified by:
getType
in interfaceIValidationContext
- Returns:
- the type
-
-