public class PdfBoolean extends PdfPrimitiveObject
Modifier and Type | Field and Description |
---|---|
static PdfBoolean |
FALSE |
static PdfBoolean |
TRUE |
content, directOnly
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 and Description |
---|
PdfBoolean(boolean value)
Store a boolean value
|
Modifier and Type | Method and Description |
---|---|
protected void |
copyContent(PdfObject from, PdfDocument document)
Copies object content from object 'from'.
|
boolean |
equals(Object obj) |
protected void |
generateContent() |
byte |
getType()
Gets object type.
|
boolean |
getValue() |
int |
hashCode() |
protected PdfObject |
newInstance()
Creates new instance of object.
|
String |
toString() |
static PdfBoolean |
valueOf(boolean value)
Gets PdfBoolean existing static class variable equivalent for given boolean value.
|
compareContent, getInternalContent, hasContent, makeIndirect, setIndirectReference
checkState, clearState, clone, copyTo, copyTo, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, release, setModified, setState
public static final PdfBoolean TRUE
public static final PdfBoolean FALSE
public PdfBoolean(boolean value)
value
- value to store
public boolean getValue()
public byte getType()
PdfObject
protected void generateContent()
generateContent
in class PdfPrimitiveObject
protected PdfObject newInstance()
PdfObject
newInstance
in class PdfObject
protected void copyContent(PdfObject from, PdfDocument document)
PdfObject
copyContent
in class PdfPrimitiveObject
from
- object to copy content from.
document
- document to copy object to.
public static PdfBoolean valueOf(boolean value)
PdfBoolean(boolean)
constructor instead.
value
- boolean variable defining value of PdfBoolean to return.
Copyright © 1998–2023 iText Group NV. All rights reserved.