|
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
de.intarsys.pdf.cos.COSObject
de.intarsys.pdf.cos.COSPrimitiveObject
public abstract class COSPrimitiveObject
Primitive COS datatypes. These objects are "immutable" in their PDF semantics. The container may change!
Field Summary |
---|
Fields inherited from class de.intarsys.pdf.cos.COSObject |
---|
CONSTANT_CONTAINER, NULL_CONTAINER, SLOT_CONTAINER |
Method Summary | |
---|---|
void |
addObjectListener(ICOSObjectListener listener)
Add a listener for object changes. |
Iterator |
basicIterator()
An iterator over contained objects and references. |
COSObject |
copyDeep()
Make a deep copy of the receiver within the same document. |
COSObject |
copyDeep(Map copied)
Make a deep copy of the receiver within the same document. |
boolean |
isDangling()
true if this object is not contained in a document
directly or indirectly. |
boolean |
isObjectListenerAvailable()
true if an ICOSObjectListener is registered. |
boolean |
isPrimitive()
Answer true if this object is of a primitive type |
Iterator |
iterator()
An iterator over contained objects. |
void |
removeObjectListener(ICOSObjectListener listener)
Remove a listener for object changes. |
Methods inherited from class de.intarsys.pdf.cos.COSObject |
---|
asArray, asBoolean, 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 |
---|
accept, 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 |
Method Detail |
---|
public void addObjectListener(ICOSObjectListener listener)
COSObject
addObjectListener
in class COSObject
listener
- The listener to be informed about changes.public Iterator basicIterator()
COSObject
This iterator returns COSDocumentElements, leaving references alone.
basicIterator
in class COSObject
public COSObject copyDeep()
COSObject
The algorithm copies this
along with all outgoing
references (recursively).
Object identity is preserved.
Be careful when copying objects, as there are semantics that may NOT be recognized by this method.
copyDeep
in class COSObject
public COSObject copyDeep(Map copied)
COSObject
The copied
map is used to identify objects copied in
earlier runs of this method to avoid duplicating resources used in
different copy targets (for example the pages of a document).
copied
is modified while executing copyDeep
and contains a mapping from indirect objects in the original document to
copied objects.
The algorithm copies this
along with all outgoing
references (recursively).
Object identity is preserved.
Be careful when copying objects, as there are semantics that may NOT be recognized by this method.
copyDeep
in class COSObject
COSObject.copyDeep()
public boolean isDangling()
COSObject
true
if this object is not contained in a document
directly or indirectly. This is especially true when an object is new (or
reset to this state when an undo happend). Remember that an object can
still be garbage, even if it is not dangling.
isDangling
in class COSObject
true
if this object is not contained in a document
directly or indirectly.public boolean isPrimitive()
COSObject
isPrimitive
in class COSObject
public Iterator iterator()
COSObject
This iterator returns only COSObject instances, references are dereferenced.
iterator
in class COSObject
public void removeObjectListener(ICOSObjectListener listener)
COSObject
removeObjectListener
in class COSObject
listener
- The listener to be removed.public boolean isObjectListenerAvailable()
COSObject
true
if an ICOSObjectListener
is registered. This
is for test purposes.
isObjectListenerAvailable
in class COSObject
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |