de.intarsys.pdf.cos
Class COSBoolean
java.lang.Object
de.intarsys.pdf.cos.COSDocumentElement
de.intarsys.pdf.cos.COSObject
de.intarsys.pdf.cos.COSPrimitiveObject
de.intarsys.pdf.cos.COSBoolean
- All Implemented Interfaces:
- ICOSExceptionHandler, de.intarsys.tools.component.ISaveStateSupport
- Direct Known Subclasses:
- COSFalse, COSTrue
public abstract class COSBoolean
- extends COSPrimitiveObject
Abstract class for the representation of boolean values
Methods inherited from class de.intarsys.pdf.cos.COSObject |
asArray, asDictionary, asFixed, asInteger, asName, asNull, asNumber, asStream, asString, beConstant, beIndirect, containable, copyOptional, copyShallow, copySubGraph, dereference, getContainer, getDoc, getIndirectObject, isIndirect, isNull, isNumber, isSwapped, restoreState, stringValue, toString |
Methods inherited from interface de.intarsys.tools.component.ISaveStateSupport |
saveState |
TRUE
public static final COSBoolean TRUE
FALSE
public static final COSBoolean FALSE
create
public static COSBoolean create(boolean value)
accept
public Object accept(ICOSObjectVisitor visitor)
throws COSVisitorException
- Description copied from class:
COSDocumentElement
- Accept a visitor object. The receiver selects the correct implementation
in the
visitor
by "double dispatching".
- Specified by:
accept
in class COSDocumentElement
- Parameters:
visitor
- The object visiting the receiver.
- Returns:
- Object An object depending on the visitor semantics.
- Throws:
COSVisitorException
- An exception depending on the visitor semantics.
booleanValue
public abstract boolean booleanValue()
- The boolean value for this.
- Returns:
- The boolean value for this.
asBoolean
public COSBoolean asBoolean()
- Overrides:
asBoolean
in class COSObject
- Returns:
- a COSBoolean or
null
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.