com.lowagie.text.pdf

Class PdfBoolean

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.3' section 4.2 (page 37).

See Also: PdfObject BadPdfFormatException

Field Summary
static StringFALSE
A possible value of PdfBoolean
static PdfBooleanPDFFALSE
static PdfBooleanPDFTRUE
static StringTRUE
A possible value of PdfBoolean
booleanvalue
the boolean value of this object
Constructor Summary
PdfBoolean(boolean value)
Constructs a PdfBoolean-object.
PdfBoolean(String value)
Constructs a PdfBoolean-object.
Method Summary
booleanbooleanValue()
Returns the primitive value of the PdfBoolean-object.
StringtoString()

Field Detail

FALSE

public static final String FALSE
A possible value of PdfBoolean

PDFFALSE

public static final PdfBoolean PDFFALSE

PDFTRUE

public static final PdfBoolean PDFTRUE

TRUE

public static final String TRUE
A possible value of PdfBoolean

value

private boolean value
the boolean value of this object

Constructor Detail

PdfBoolean

public PdfBoolean(boolean value)
Constructs a PdfBoolean-object.

Parameters: value the value of the new PdfObject

PdfBoolean

public PdfBoolean(String value)
Constructs a PdfBoolean-object.

Parameters: value the value of the new PdfObject, represented as a String

Throws: BadPdfFormatException thrown if the value isn't 'true' or 'false'

Method Detail

booleanValue

public boolean booleanValue()
Returns the primitive value of the PdfBoolean-object.

Returns: the actual value of the object.

toString

public String toString()