intarsys PDF library API

de.intarsys.pdf.cos
Class COSBoolean

java.lang.Object
  extended by de.intarsys.pdf.cos.COSDocumentElement
      extended by de.intarsys.pdf.cos.COSObject
          extended by de.intarsys.pdf.cos.COSPrimitiveObject
              extended by 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


Field Summary
static COSBoolean FALSE
           
static COSBoolean TRUE
           
 
Fields inherited from class de.intarsys.pdf.cos.COSObject
CONSTANT_CONTAINER, NULL_CONTAINER, SLOT_CONTAINER
 
Method Summary
 Object accept(ICOSObjectVisitor visitor)
          Accept a visitor object.
 COSBoolean asBoolean()
           
abstract  boolean booleanValue()
          The boolean value for this.
static COSBoolean create(boolean value)
           
 
Methods inherited from class de.intarsys.pdf.cos.COSPrimitiveObject
addObjectListener, basicIterator, copyDeep, copyDeep, isDangling, isObjectListenerAvailable, isPrimitive, iterator, removeObjectListener
 
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 class de.intarsys.pdf.cos.COSDocumentElement
handleException, isReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.intarsys.tools.component.ISaveStateSupport
saveState
 

Field Detail

TRUE

public static final COSBoolean TRUE

FALSE

public static final COSBoolean FALSE
Method Detail

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

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.