PDF Clown
0.1.2

org.pdfclown.objects
Class PdfBoolean

java.lang.Object
  extended by org.pdfclown.objects.PdfObject
      extended by org.pdfclown.objects.PdfDataObject
          extended by org.pdfclown.objects.PdfDirectObject
              extended by org.pdfclown.objects.PdfSimpleObject<Boolean>
                  extended by org.pdfclown.objects.PdfBoolean
All Implemented Interfaces:
Cloneable, Comparable<PdfDirectObject>, IVisitable

public final class PdfBoolean
extends PdfSimpleObject<Boolean>

PDF boolean object [PDF:1.6:3.2.1].

Version:
0.1.2, 12/21/12
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Field Summary
static PdfBoolean False
           
static PdfBoolean True
           
 
Method Summary
 PdfObject accept(IVisitor visitor, Object data)
          Accepts a visit.
 int compareTo(PdfDirectObject obj)
           
static PdfBoolean get(Boolean value)
          Gets the object equivalent to the given value.
 Boolean getValue()
          Gets the high-level representation of the value.
 void writeTo(IOutputStream stream, File context)
          Serializes this object to the specified stream.
 
Methods inherited from class org.pdfclown.objects.PdfSimpleObject
clone, equals, get, getParent, getRawValue, getValue, getValue, hashCode, isUpdateable, isUpdated, isVirtual, setRawValue, setUpdateable, setUpdated, setValue, setVirtual, swap, toString
 
Methods inherited from class org.pdfclown.objects.PdfObject
clone, clone, getContainer, getDataContainer, getFile, getIndirectObject, getReference, resolve, resolve, unresolve, unresolve, update
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

False

public static final PdfBoolean False

True

public static final PdfBoolean True
Method Detail

get

public static PdfBoolean get(Boolean value)
Gets the object equivalent to the given value.


accept

public PdfObject accept(IVisitor visitor,
                        Object data)
Description copied from interface: IVisitable
Accepts a visit.

Parameters:
visitor - Visiting object.
data - Supplemental data.
Returns:
Result object.

compareTo

public int compareTo(PdfDirectObject obj)
Specified by:
compareTo in interface Comparable<PdfDirectObject>
Specified by:
compareTo in class PdfDirectObject

getValue

public Boolean getValue()
Description copied from class: PdfSimpleObject
Gets the high-level representation of the value.

Overrides:
getValue in class PdfSimpleObject<Boolean>

writeTo

public void writeTo(IOutputStream stream,
                    File context)
Description copied from class: PdfObject
Serializes this object to the specified stream.

Specified by:
writeTo in class PdfObject
Parameters:
stream - Target stream.
context - File context.

PDF Clown
0.1.2

Project home page

Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.