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

NameTypeAccessDescription
valuebooleanReadReturns the boolean value.
TRUECOSBooleanReadThe singleton {@code true} instance.
FALSECOSBooleanReadThe singleton {@code false} instance.
dirtybooleanReadReturns {@code true} if this object was modified since loading.
indirectbooleanReadReturns whether this object is an indirect object (has an object key).
objectKeyCOSObjectKeyReadReturns the indirect object key, or {@code null} for direct objects.

Methods

SignatureDescription
valueOf(b: boolean)COSBooleanReturns the singleton instance for the given boolean value.
getValue()booleanReturns 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()booleanReturns {@code true} if this object was modified since loading.
setDirty(dirty: boolean)Sets the dirty flag on this object.
isIndirect()booleanReturns whether this object is an indirect object (has an object key).
getObjectKey()COSObjectKeyReturns the indirect object key, or {@code null} for direct objects.

See Also