public abstract class COSDocumentElement extends Object implements ICOSExceptionHandler
COSObject or a
COSIndirectObject to a
COSObject. A
COSIndirectObject is never seen by an application
level programmer, this is an internal construct only.| Modifier and Type | Method and Description |
|---|---|
abstract Object |
accept(ICOSObjectVisitor visitor)
Accept a visitor object.
|
abstract COSDocumentElement |
containable()
The
COSDocumentElement suitable for use in an
ICOSContainer. |
abstract COSObject |
dereference()
Return the real object.
|
abstract COSDocument |
getDoc()
The document where this is contained or null.
|
void |
handleException(COSRuntimeException ex)
Handle
ex, optionally rethrow. |
boolean |
isReference()
Answer
true if this element is a reference (a
COSIndirectObject. |
boolean |
isSwapped()
Answer
true if this elements content is swapped to a
persistent store. |
public abstract Object accept(ICOSObjectVisitor visitor) throws COSVisitorException
visitor by "double dispatching".visitor - The object visiting the receiver.COSVisitorException - An exception depending on the visitor semantics.public abstract COSDocumentElement containable()
COSDocumentElement suitable for use in an
ICOSContainer. This may be a COSIndirectObject or the
COSObject itself if not indirect.
This method should not be used by the application programmer. This is
called in the COSObject lifecycle to ensure internal consistency.
public abstract COSObject dereference()
COSIndirectObject).public abstract COSDocument getDoc()
COSDocumentElement is at most contained in a single
COSDocument.public void handleException(COSRuntimeException ex) throws COSRuntimeException
ICOSExceptionHandlerex, optionally rethrow.handleException in interface ICOSExceptionHandlerex - The exceptioin to be handeled.COSRuntimeExceptionpublic boolean isReference()
true if this element is a reference (a
COSIndirectObject.true if this element is a reference.public boolean isSwapped()
true if this elements content is swapped to a
persistent store.true if this elements content is swapped to
a persistent store.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.