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 PdfStream
contentStream
private CanvasGraphicsState
graphicsState
-
Constructor Summary
Constructors Constructor Description ExtendedGStateValidationContext(CanvasGraphicsState graphicsState, PdfStream contentStream)
Instantiates a newExtendedGStateValidationContext
based on graphics state and content stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfStream
getContentStream()
Gets the content stream.CanvasGraphicsState
getGraphicsState()
Gets the graphics state.ValidationType
getType()
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 newExtendedGStateValidationContext
based on graphics state and content stream.- Parameters:
graphicsState
- the graphics statecontentStream
- the content stream
-
-
Method Detail
-
getContentStream
public PdfStream getContentStream()
Description copied from interface:IContentStreamValidationParameter
Gets the content stream.- Specified by:
getContentStream
in interfaceIContentStreamValidationParameter
- Returns:
- the content stream
-
getGraphicsState
public CanvasGraphicsState getGraphicsState()
Description copied from interface:IGraphicStateValidationParameter
Gets the graphics state.- Specified by:
getGraphicsState
in interfaceIGraphicStateValidationParameter
- Returns:
- the graphics state
-
getType
public ValidationType getType()
Description copied from interface:IValidationContext
Gets type of the context.- Specified by:
getType
in interfaceIValidationContext
- Returns:
- the type
-
-