public class PDObjectReference extends Object implements COSObjectable
Constructor and Description |
---|
PDObjectReference()
Default Constructor.
|
PDObjectReference(COSDictionary dictionary)
Constructor for an existing object reference.
|
Modifier and Type | Method and Description |
---|---|
protected COSDictionary |
getCOSDictionary() |
COSBase |
getCOSObject()
Convert this standard java object to a COS object.
|
COSObjectable |
getReferencedObject()
Gets a higher-level object for the referenced object.
|
void |
setReferencedObject(PDAnnotation annotation)
Sets the referenced annotation.
|
void |
setReferencedObject(PDXObject xobject)
Sets the referenced XObject.
|
public static final String TYPE
public PDObjectReference()
public PDObjectReference(COSDictionary dictionary)
dictionary
- The existing dictionary.protected COSDictionary getCOSDictionary()
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public COSObjectable getReferencedObject()
PDAnnotation
,
a PDXObject
or null
.public void setReferencedObject(PDAnnotation annotation)
annotation
- the referenced annotationpublic void setReferencedObject(PDXObject xobject)
xobject
- the referenced XObjectCopyright © 2002-2012 Apache Software Foundation. All Rights Reserved.