Class PDObjectReference
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.documentinterchange.logicalstructure.PDObjectReference
-
- All Implemented Interfaces:
COSObjectable
public class PDObjectReference extends Object implements COSObjectable
An object reference.
-
-
Constructor Summary
Constructors Constructor Description PDObjectReference()Default Constructor.PDObjectReference(COSDictionary theDictionary)Constructor for an existing object reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description COSDictionarygetCOSObject()Returns the underlying dictionary.COSObjectablegetReferencedObject()Gets a higher-level object for the referenced object.voidsetReferencedObject(PDXObject xobject)Sets the referenced XObject.voidsetReferencedObject(PDAnnotation annotation)Sets the referenced annotation.
-
-
-
Field Detail
-
TYPE
public static final String TYPE
TYPE of this object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PDObjectReference
public PDObjectReference()
Default Constructor.
-
PDObjectReference
public PDObjectReference(COSDictionary theDictionary)
Constructor for an existing object reference.- Parameters:
theDictionary- The existing dictionary.
-
-
Method Detail
-
getCOSObject
public COSDictionary getCOSObject()
Returns the underlying dictionary.- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- the dictionary
-
getReferencedObject
public COSObjectable getReferencedObject()
Gets a higher-level object for the referenced object. Currently this method may return aPDAnnotation, aPDXObjectornull.- Returns:
- a higher-level object for the referenced object
-
setReferencedObject
public void setReferencedObject(PDAnnotation annotation)
Sets the referenced annotation.- Parameters:
annotation- the referenced annotation
-
setReferencedObject
public void setReferencedObject(PDXObject xobject)
Sets the referenced XObject.- Parameters:
xobject- the referenced XObject
-
-