java.lang.Object
org.sejda.sambox.cos.COSBase
org.sejda.sambox.cos.COSBoolean
- All Implemented Interfaces:
COSObjectable
This class represents a boolean value in the PDF document.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final COSBooleanstatic final COSBooleanprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(COSVisitor visitor) Visitor pattern for the COS model objectsbooleangetValue()voidAssign an id to thisCOSBaseif it doesn't have one already.toString()static COSBooleanvalueOf(boolean value) Methods inherited from class org.sejda.sambox.cos.COSBase
getCOSObject, hasId, id
-
Field Details
-
TRUE
-
FALSE
-
value
private final boolean value
-
-
Constructor Details
-
COSBoolean
private COSBoolean(boolean value)
-
-
Method Details
-
getValue
public boolean getValue()- Returns:
- The boolean value of this object.
-
valueOf
- Parameters:
value- Parameter telling which boolean value to get.- Returns:
- The single boolean instance that matches the parameter.
-
toString
-
accept
Description copied from class:COSBaseVisitor pattern for the COS model objects- Specified by:
acceptin classCOSBase- Throws:
IOException
-
idIfAbsent
Description copied from class:COSBaseAssign an id to thisCOSBaseif it doesn't have one already.- Overrides:
idIfAbsentin classCOSBase
-