Class 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 Detail

      • PDFFALSE

        public static final PdfBoolean PDFFALSE
      • TRUE

        public static final java.lang.String TRUE
        A possible value of PdfBoolean
        See Also:
        Constant Field Values
      • FALSE

        public static final java.lang.String FALSE
        A possible value of PdfBoolean
        See Also:
        Constant Field Values
      • 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​(java.lang.String value)
                   throws BadPdfFormatException
        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 java.lang.String toString()
        Description copied from class: PdfObject
        Returns the String-representation of this PdfObject.
        Overrides:
        toString in class PdfObject
        Returns:
        a String