COSBoolean
Overview
COSBoolean is a class in Aspose.Pdf FOSS for Java.
Inherits from: COSBase.
PDF boolean object (§7.3.2, ISO 32000-1:2008).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
value | boolean | Read | Returns the boolean value. |
TRUE | COSBoolean | Read | The singleton {@code true} instance. |
FALSE | COSBoolean | Read | The singleton {@code false} instance. |
dirty | boolean | Read | Returns {@code true} if this object was modified since loading. |
indirect | boolean | Read | Returns whether this object is an indirect object (has an object key). |
objectKey | COSObjectKey | Read | Returns the indirect object key, or {@code null} for direct objects. |
Methods
| Signature | Description |
|---|---|
valueOf(b: boolean) → COSBoolean | Returns the singleton instance for the given boolean value. |
getValue() → boolean | Returns the boolean value. |
setObjectKey(key: COSObjectKey) | Flyweight singleton — object key assignment is ignored. |
writeTo(os: OutputStream) | |
accept(visitor: ICOSVisitor<T>) → T | |
equals(o: Object) → boolean | |
hashCode() → int | |
toString() → String | |
isDirty() → boolean | Returns {@code true} if this object was modified since loading. |
setDirty(dirty: boolean) | Sets the dirty flag on this object. |
isIndirect() → boolean | Returns whether this object is an indirect object (has an object key). |
getObjectKey() → COSObjectKey | Returns the indirect object key, or {@code null} for direct objects. |