hasNavigationPathTo(COSObject other) Answer true if the receiver has a navigation path to
other.
Parameters: other - The object we search a path to from this.
public boolean
isDangling() true if this object is not contained in a document
directly or indirectly.
public boolean
isIndirect() Answer true if this object is an indirect one.
This is the container for template objects. Template objects can be
created static in the application and are copied behind the scenes when
integrated in a document.
Make an indirect object out of a direct one. An object can always be
changed to an indirect one.
It is possible to morph existing objects into indirect ones, the objects
in the hierarchy (container/document) are informed and will reflect the
change.
Create a new instance of the receiver that may be used as the base object
for a copy. The result is an uninitialized instance of the receiver. The
attributes are copied depending on the strategy (deep, shallow).
The new instance of a COSObject
Make a deep copy of the receiver within the same document. The result is
a "PDF semantic" deep copy, implementation artifacts as "attributes" and
listeners are NOT copied.
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.
Make a deep copy of the receiver within the same document. The result is
a "PDF semantic" deep copy, implementation artifacts as "attributes" and
listeners are NOT copied.
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.
Make a copy of the receiver within the same document. A copy is made only
if we have an object that may not be inserted in multiple containers.
This means all direct objects are (recursively) copied, all indirect
objects return the receiver.
Be careful when copying objects, as there are semantics that may NOT be
recognized by this method.
Make a copy of the receiver within the same document.
The algorithm copies this along with all outgoing
references (recursively) that themselve have a navigation path to
this. The result is a new subgraph extending from the
copy of this where no navigation path leads back to
this.
Object identity is preserved.
Be careful when copying objects, as there are semantics that may NOT be
recognized by this method.
return the real object. this is needed for polymorphic handling of
document elements. at application programming level only COSObject, never
COSReference is seen.
de.intarsys.pdf.cos.COSObject
return the indirect object for the receiver. application level
programmers should not use this method. this is needed for creating a
physical representation of the document (serializing)
the indirect object for the receiver
Answer true if the receiver has a navigation path to
other.
Parameters: other - The object we search a path to from this. Answer true if the receiver has a navigation pathto other.
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.
true if this object is not contained in a documentdirectly or indirectly.