Package com.aowagie.text.pdf
Class PdfBoolean
- java.lang.Object
-
- com.aowagie.text.pdf.PdfObject
-
- com.aowagie.text.pdf.PdfBoolean
-
public class PdfBoolean extends PdfObject
PdfBooleanis 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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringFALSEA possible value ofPdfBoolean(package private) static PdfBooleanPDFFALSEstatic PdfBooleanPDFTRUEprivate static java.lang.StringTRUEA possible value ofPdfBooleanprivate booleanvaluethe boolean value of this object-
Fields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
-
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 (package private) booleanbooleanValue()Returns the primitive value of thePdfBoolean-object.java.lang.StringtoString()Returns theString-representation of thisPdfObject.-
Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, toPdf, type
-
-
-
-
Field Detail
-
PDFTRUE
public static final PdfBoolean PDFTRUE
-
PDFFALSE
static final PdfBoolean PDFFALSE
-
TRUE
private static final java.lang.String TRUE
A possible value ofPdfBoolean- See Also:
- Constant Field Values
-
FALSE
private 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
PdfBoolean(java.lang.String value) throws BadPdfFormatExceptionConstructs aPdfBoolean-object.- Parameters:
value- the value of the newPdfObject, represented as aString- Throws:
BadPdfFormatException- thrown if the value isn't 'true' or 'false'
-
-