You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Johannes Koch (JIRA)" <ji...@apache.org> on 2010/05/29 18:07:37 UTC
[jira] Commented: (PDFBOX-734) how to access a PDoutlineNode
object's parent without using its protected menthod getParent() ?
[ https://issues.apache.org/jira/browse/PDFBOX-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12873297#action_12873297 ]
Johannes Koch commented on PDFBOX-734:
--------------------------------------
PDOutlineNode is the super-class for PDDocumentOutline and PDOutlineItem. PDDocumentOutline does not have a parent, so a public getParent() method doesn't make sense. PDOutlineItem has a parent, and so has a public getParent() method.
> how to access a PDoutlineNode object's parent without using its protected menthod getParent() ?
> -----------------------------------------------------------------------------------------------
>
> Key: PDFBOX-734
> URL: https://issues.apache.org/jira/browse/PDFBOX-734
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.1.0
> Environment: Window's platform, java
> Reporter: Harry Lee
> Priority: Blocker
>
> I have some java codes that depend on the getParent() method to traverse the PDOutlineNode structure. They works fine with old version of PDFBox since this method is declared as a public method. Now it is changed to protected in the new version 1.1.0. How should I make my code work without extending or subclassing PDOutlineNode?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.