|
jPod PDF library | |||||||||
| 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, getValueBoolean, getValueBytes, getValueFloat, getValueInteger, getValueString, harden, isIndirect, isNull, isNumber, isSwapped, mayBeSwapped, restoreState, soften, 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 COSObjectlistener - The listener to be informed about changes.public Iterator basicIterator()
COSObjectThis iterator returns COSDocumentElements, leaving references alone.
basicIterator in class COSObjectpublic 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 COSObjectpublic 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 COSObjectCOSObject.copyDeep()public boolean isDangling()
COSObjecttrue 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 COSObjecttrue if this object is not contained in a document
directly or indirectly.public boolean isObjectListenerAvailable()
COSObjecttrue if an ICOSObjectListener is registered. This
is for test purposes.
isObjectListenerAvailable in class COSObjectpublic boolean isPrimitive()
COSObject
isPrimitive in class COSObjectpublic Iterator iterator()
COSObjectThis iterator returns only COSObject instances, references are dereferenced.
iterator in class COSObjectpublic void removeObjectListener(ICOSObjectListener listener)
COSObject
removeObjectListener in class COSObjectlistener - The listener to be removed.
|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||