|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSDocumentElement
public abstract class COSDocumentElement
This is a cos level representation of the elements that may be contained in a
cos container. An element may be either a COSObject
or a
COSIndirectObject
to a
COSObject
. A
COSIndirectObject
is never seen by an application
level programmer, this is an internal construct only.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public 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.public abstract COSObject dereference()
COSIndirectObject
).
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 COSDocument getDoc()
COSDocumentElement
is at most contained in a single
COSDocument
.
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 void handleException(COSRuntimeException ex) throws COSRuntimeException
ICOSExceptionHandler
ex
, optionally rethrow.
handleException
in interface ICOSExceptionHandler
ex
- The exceptioin to be handeled.
COSRuntimeException
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |