Class PdfBoolean
java.lang.Object
com.itextpdf.kernel.pdf.PdfObject
com.itextpdf.kernel.pdf.PdfPrimitiveObject
com.itextpdf.kernel.pdf.PdfBoolean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]static final PdfBooleanprivate static final byte[]static final PdfBooleanprivate booleanFields inherited from class PdfPrimitiveObject
content, directOnlyFields inherited from class 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
ConstructorsModifierConstructorDescriptionprivatePdfBoolean(boolean value) Store a boolean valueprivatePdfBoolean(boolean value, boolean directOnly) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyContent(PdfObject from, PdfDocument document, ICopyFilter copyFilter) Copies object content from object 'from'.booleanprotected voidbytegetType()Gets object type.booleangetValue()inthashCode()protected PdfObjectCreates new instance of object.toString()static PdfBooleanvalueOf(boolean value) Gets PdfBoolean existing static class variable equivalent for given boolean value.Methods inherited from class PdfPrimitiveObject
compareContent, getInternalContent, hasContent, makeIndirect, setIndirectReferenceMethods inherited from class 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 Details
-
TRUE
-
FALSE
-
True
private static final byte[] True -
False
private static final byte[] False -
value
private boolean value
-
-
Constructor Details
-
PdfBoolean
public PdfBoolean(boolean value) Store a boolean value- Parameters:
value- value to store
-
PdfBoolean
private PdfBoolean(boolean value, boolean directOnly) -
PdfBoolean
private PdfBoolean()
-
-
Method Details
-
getValue
public boolean getValue() -
getType
-
toString
-
generateContent
protected void generateContent()- Specified by:
generateContentin classPdfPrimitiveObject
-
newInstance
Description copied from class:PdfObjectCreates new instance of object.- Specified by:
newInstancein classPdfObject- Returns:
- new instance of object.
-
copyContent
Description copied from class:PdfObjectCopies object content from object 'from'.- Overrides:
copyContentin classPdfPrimitiveObject- Parameters:
from- object to copy content from.document- document to copy object to.copyFilter-ICopyFiltera filter that will apply on dictionaries and array UseNullCopyFilterfor no filtering
-
equals
-
hashCode
-
valueOf
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.
-