// java
import java.util.List;
+import java.util.ArrayList;
import org.xml.sax.Locator;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.ValidationException;
import org.apache.fop.fo.pagination.bookmarks.BookmarkTree;
+import org.apache.fop.fo.extensions.destination.Destination;
/**
* The fo:root formatting object. Contains page masters, page-sequences.
private LayoutMasterSet layoutMasterSet;
private Declarations declarations;
private BookmarkTree bookmarkTree = null;
+ private ArrayList destinationList;
private List pageSequences;
// temporary until above list populated
*/
public Root(FONode parent) {
super(parent);
- pageSequences = new java.util.ArrayList();
+ pageSequences = new ArrayList();
if (parent != null) {
//throw new FOPException("root must be root element");
}
this.bookmarkTree = bookmarkTree;
}
+ /**
+ * Add a Destination object to this FO
+ * @param destination the Destination object to add
+ */
+ public void addDestination(Destination destination) {
+ if (destinationList == null) {
+ destinationList = new ArrayList();
+ }
+ destinationList.add(destination);
+ }
+
+ /**
+ * Public accessor for the list of Destination objects for this FO
+ * @return the Destination object
+ */
+ public ArrayList getDestinationList() {
+ return destinationList;
+ }
+
/**
* Public accessor for the BookmarkTree object for this FO
* @return the BookmarkTree object