Class PdfBoolean


public class PdfBoolean extends PdfPrimitiveObject
  • Field Details

  • Constructor Details

    • PdfBoolean

      public PdfBoolean (boolean value)
      Store a boolean value
      Parameters:
      value - value to store
  • Method Details

    • getValue

      public boolean getValue()
    • getType

      public byte getType()
      Description copied from class: PdfObject
      Gets object type.
      Specified by:
      getType in class PdfObject
      Returns:
      object type.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • generateContent

      protected void generateContent()
      Specified by:
      generateContent in class PdfPrimitiveObject
    • newInstance

      protected PdfObject newInstance()
      Description copied from class: PdfObject
      Creates new instance of object.
      Specified by:
      newInstance in class PdfObject
      Returns:
      new instance of object.
    • copyContent

      protected void copyContent (PdfObject from, PdfDocument document, ICopyFilter copyFilter)
      Description copied from class: PdfObject
      Copies object content from object 'from'.
      Overrides:
      copyContent in class PdfPrimitiveObject
      Parameters:
      from - object to copy content from.
      document - document to copy object to.
      copyFilter - ICopyFilter a filter that will apply on dictionaries and array Use NullCopyFilter for no filtering
    • equals

      public boolean equals (Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • valueOf

      public static PdfBoolean valueOf (boolean value)
      Gets PdfBoolean existing static class variable equivalent for given boolean value. Note, returned object will be direct only, which means it is impossible to make in indirect. If required PdfBoolean has to be indirect, use PdfBoolean(boolean) constructor instead.
      Parameters:
      value - boolean variable defining value of PdfBoolean to return.
      Returns:
      existing static PdfBoolean class variable.