Package com.itextpdf.text.pdf
Class PdfBoolean
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfBoolean
-
- All Implemented Interfaces:
java.io.Serializable
public class PdfBoolean extends PdfObject
PdfBoolean
is the boolean object represented by the keywords true or false.This object is described in the 'Portable Document Format Reference Manual version 1.7' section 3.2.1 (page 52).
- See Also:
PdfObject
,BadPdfFormatException
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FALSE
A possible value ofPdfBoolean
static PdfBoolean
PDFFALSE
static PdfBoolean
PDFTRUE
static java.lang.String
TRUE
A possible value ofPdfBoolean
private boolean
value
the boolean value of this object
-
Constructor Summary
Constructors Constructor Description PdfBoolean(boolean value)
Constructs aPdfBoolean
-object.PdfBoolean(java.lang.String value)
Constructs aPdfBoolean
-object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
booleanValue()
Returns the primitive value of thePdfBoolean
-object.java.lang.String
toString()
Returns theString
-representation of thisPdfObject
.-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, type
-
-
-
-
Field Detail
-
PDFTRUE
public static final PdfBoolean PDFTRUE
-
PDFFALSE
public static final PdfBoolean PDFFALSE
-
TRUE
public static final java.lang.String TRUE
A possible value ofPdfBoolean
- See Also:
- Constant Field Values
-
FALSE
public static final java.lang.String FALSE
A possible value ofPdfBoolean
- See Also:
- Constant Field Values
-
value
private boolean value
the boolean value of this object
-
-
Constructor Detail
-
PdfBoolean
public PdfBoolean(boolean value)
Constructs aPdfBoolean
-object.- Parameters:
value
- the value of the newPdfObject
-
PdfBoolean
public PdfBoolean(java.lang.String value) throws BadPdfFormatException
Constructs aPdfBoolean
-object.- Parameters:
value
- the value of the newPdfObject
, represented as aString
- Throws:
BadPdfFormatException
- thrown if the value isn't 'true
' or 'false
'
-
-