@@ -0,0 +1,1276 @@
+package org.verapdf.model.impl.pb.pd;%0A%0Aimport org.apache.pdfbox.pdmodel.interactive.documentnavigation.outline.PDOutlineItem;%0Aimport org.verapdf.model.baselayer.Object;%0Aimport org.verapdf.model.pdlayer.PDAction;%0Aimport org.verapdf.model.pdlayer.PDOutline;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * Outline (or bookmark) of document%0A *%0A * @author Evgeniy Muravitskiy%0A */%0Apublic class PBoxPDOutline extends PBoxPDObject implements PDOutline %7B%0A%0A%09public static final String ACTION = %22A%22;%0A%09public static final String OUTLINE_TYPE = %22PDOutline%22;%0A%09public static final Integer NUMBER_OF_ACTIONS = Integer.valueOf(1);%0A%0A%09public PBoxPDOutline(PDOutlineItem simplePDObject) %7B%0A%09%09super(simplePDObject);%0A%09%09setType(OUTLINE_TYPE);%0A%09%7D%0A%0A%09@Override%0A%09public List%3C? extends Object%3E getLinkedObjects(String link) %7B%0A%09%09List%3C? extends Object%3E list;%0A%0A%09%09switch (link) %7B%0A%09%09%09case ACTION:%0A%09%09%09%09list = this.getAction();%0A%09%09%09%09break;%0A%09%09%09default:%0A%09%09%09%09list = super.getLinkedObjects(link);%0A%09%09%09%09break;%0A%09%09%7D%0A%0A%09%09return list;%0A%09%7D%0A%0A%09private List%3CPDAction%3E getAction() %7B%0A%09%09List%3CPDAction%3E actions = new ArrayList%3C%3E(NUMBER_OF_ACTIONS);%0A%09%09org.apache.pdfbox.pdmodel.interactive.action.PDAction action = ((PDOutlineItem) simplePDObject).getAction();%0A%09%09super.addAction(actions, action);%0A%09%09return actions;%0A%09%7D%0A%0A%7D%0A

Implement outline type