Package com.itextpdf.kernel.pdf
Class PdfBoolean
- java.lang.Object
-
- com.itextpdf.kernel.pdf.PdfObject
-
- com.itextpdf.kernel.pdf.PdfPrimitiveObject
-
- com.itextpdf.kernel.pdf.PdfBoolean
-
public class PdfBoolean extends PdfPrimitiveObject
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
False
static PdfBoolean
FALSE
private static byte[]
True
static PdfBoolean
TRUE
private boolean
value
-
Fields inherited from class com.itextpdf.kernel.pdf.PdfPrimitiveObject
content, directOnly
-
Fields inherited from class com.itextpdf.kernel.pdf.PdfObject
ARRAY, BOOLEAN, DICTIONARY, FLUSHED, FORBID_RELEASE, FREE, INDIRECT_REFERENCE, indirectReference, LITERAL, MODIFIED, MUST_BE_FLUSHED, MUST_BE_INDIRECT, NAME, NULL, NUMBER, ORIGINAL_OBJECT_STREAM, READ_ONLY, READING, STREAM, STRING, UNENCRYPTED
-
-
Constructor Summary
Constructors Modifier Constructor Description private
PdfBoolean()
PdfBoolean(boolean value)
Store a boolean valueprivate
PdfBoolean(boolean value, boolean directOnly)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
copyContent(PdfObject from, PdfDocument document, ICopyFilter copyFilter)
Copies object content from object 'from'.boolean
equals(java.lang.Object obj)
protected void
generateContent()
byte
getType()
Gets object type.boolean
getValue()
int
hashCode()
protected PdfObject
newInstance()
Creates new instance of object.java.lang.String
toString()
static PdfBoolean
valueOf(boolean value)
Gets PdfBoolean existing static class variable equivalent for given boolean value.-
Methods inherited from class com.itextpdf.kernel.pdf.PdfPrimitiveObject
compareContent, getInternalContent, hasContent, makeIndirect, setIndirectReference
-
Methods inherited from class com.itextpdf.kernel.pdf.PdfObject
checkState, clearState, clone, clone, containsIndirectReference, copyContent, copyTo, copyTo, copyTo, copyTo, equalContent, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, processCopying, processCopying, release, setModified, setState
-
-
-
-
Field Detail
-
TRUE
public static final PdfBoolean TRUE
-
FALSE
public static final PdfBoolean FALSE
-
True
private static final byte[] True
-
False
private static final byte[] False
-
value
private boolean value
-
-
Method Detail
-
getValue
public boolean getValue()
-
getType
public byte getType()
Description copied from class:PdfObject
Gets object type.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
generateContent
protected void generateContent()
- Specified by:
generateContent
in classPdfPrimitiveObject
-
newInstance
protected PdfObject newInstance()
Description copied from class:PdfObject
Creates new instance of object.- Specified by:
newInstance
in classPdfObject
- 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 classPdfPrimitiveObject
- Parameters:
from
- object to copy content from.document
- document to copy object to.copyFilter
-ICopyFilter
a filter that will apply on dictionaries and array UseNullCopyFilter
for no filtering
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.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, usePdfBoolean(boolean)
constructor instead.- Parameters:
value
- boolean variable defining value of PdfBoolean to return.- Returns:
- existing static PdfBoolean class variable.
-
-