Class FontValidationContext
- java.lang.Object
-
- com.itextpdf.kernel.validation.context.FontValidationContext
-
- All Implemented Interfaces:
IValidationContext
public class FontValidationContext extends java.lang.Object implements IValidationContext
Class for font validation context.
-
-
Constructor Summary
Constructors Constructor Description FontValidationContext(java.lang.String text, PdfFont font)
Instantiates a newFontValidationContext
based on text and font.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfFont
getFont()
Gets the font.java.lang.String
getText()
Gets the text.ValidationType
getType()
Gets type of the context.
-
-
-
Field Detail
-
text
private final java.lang.String text
-
font
private final PdfFont font
-
-
Constructor Detail
-
FontValidationContext
public FontValidationContext(java.lang.String text, PdfFont font)
Instantiates a newFontValidationContext
based on text and font.- Parameters:
text
- the textfont
- the font
-
-
Method Detail
-
getText
public java.lang.String getText()
Gets the text.- Returns:
- the text
-
getFont
public PdfFont getFont()
Gets the font.- Returns:
- the font
-
getType
public ValidationType getType()
Description copied from interface:IValidationContext
Gets type of the context.- Specified by:
getType
in interfaceIValidationContext
- Returns:
- the type
-
-