Class ExtendedGStateValidationContext
- java.lang.Object
-
- com.itextpdf.kernel.validation.context.ExtendedGStateValidationContext
-
- All Implemented Interfaces:
IContentStreamValidationParameter,IGraphicStateValidationParameter,IValidationContext
public class ExtendedGStateValidationContext extends java.lang.Object implements IValidationContext, IGraphicStateValidationParameter, IContentStreamValidationParameter
Class for extended graphics state validation.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfStreamcontentStreamprivate CanvasGraphicsStategraphicsState
-
Constructor Summary
Constructors Constructor Description ExtendedGStateValidationContext(CanvasGraphicsState graphicsState, PdfStream contentStream)Instantiates a newExtendedGStateValidationContextbased on graphics state and content stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfStreamgetContentStream()Gets the content stream.CanvasGraphicsStategetGraphicsState()Gets the graphics state.ValidationTypegetType()Gets type of the context.
-
-
-
Field Detail
-
graphicsState
private final CanvasGraphicsState graphicsState
-
contentStream
private final PdfStream contentStream
-
-
Constructor Detail
-
ExtendedGStateValidationContext
public ExtendedGStateValidationContext(CanvasGraphicsState graphicsState, PdfStream contentStream)
Instantiates a newExtendedGStateValidationContextbased on graphics state and content stream.- Parameters:
graphicsState- the graphics statecontentStream- the content stream
-
-
Method Detail
-
getContentStream
public PdfStream getContentStream()
Description copied from interface:IContentStreamValidationParameterGets the content stream.- Specified by:
getContentStreamin interfaceIContentStreamValidationParameter- Returns:
- the content stream
-
getGraphicsState
public CanvasGraphicsState getGraphicsState()
Description copied from interface:IGraphicStateValidationParameterGets the graphics state.- Specified by:
getGraphicsStatein interfaceIGraphicStateValidationParameter- Returns:
- the graphics state
-
getType
public ValidationType getType()
Description copied from interface:IValidationContextGets type of the context.- Specified by:
getTypein interfaceIValidationContext- Returns:
- the type
-
-