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'.
|
PdfBoolean |
copyTo(PdfDocument document)
Copies object to a specified document.
|
PdfBoolean |
copyTo(PdfDocument document, boolean allowDuplicating)
Copies object to a specified document.
|
boolean |
equals(Object obj) |
protected void |
generateContent() |
byte |
getType()
Gets object type.
|
boolean |
getValue() |
int |
hashCode() |
PdfBoolean |
makeIndirect(PdfDocument document)
Marks object to be saved as indirect.
|
PdfBoolean |
makeIndirect(PdfDocument document, PdfIndirectReference reference)
Marks object to be saved as indirect.
|
protected PdfBoolean |
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, setIndirectReference
checkState, clearState, clone, flush, flush, getIndirectReference, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isStream, isString, 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
public PdfBoolean makeIndirect(PdfDocument document)
makeIndirect
in class PdfObject
document
- a document the indirect reference will belong to.
public PdfBoolean makeIndirect(PdfDocument document, PdfIndirectReference reference)
makeIndirect
in class PdfPrimitiveObject
document
- a document the indirect reference will belong to.
public PdfBoolean copyTo(PdfDocument document)
public PdfBoolean copyTo(PdfDocument document, boolean allowDuplicating)
copyTo
in class PdfObject
document
- document to copy object to.
allowDuplicating
- indicates if to allow copy objects which already have been copied. If object is associated with any indirect reference and allowDuplicating is false then already existing reference will be returned instead of copying object. If allowDuplicating is true then object will be copied and new indirect reference will be assigned.
protected void generateContent()
generateContent
in class PdfPrimitiveObject
protected PdfBoolean 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–2018 iText Group NV. All rights reserved.