1 51 package org.apache.fop.fo.pagination; 52 53 import org.apache.fop.fo.*; 55 import org.apache.fop.apps.FOPException; 56 57 64 public class Root extends FObj { 65 66 public static class Maker extends FObj.Maker { 67 public FObj make(FObj parent, PropertyList propertyList, 68 String systemId, int line, int column) 69 throws FOPException { 70 return new Root(parent, propertyList, systemId, line, column); 71 } 72 73 } 74 75 public static FObj.Maker maker() { 76 return new Root.Maker(); 77 } 78 79 LayoutMasterSet layoutMasterSet; 80 84 PageSequence pageSequence; 85 86 protected Root(FObj parent, PropertyList propertyList, 87 String systemId, int line, int column) 88 throws FOPException { 89 super(parent, propertyList, systemId, line, column); 90 92 if (parent != null) { 93 throw new FOPException("root must be root element", systemId, line, column); 94 } 95 } 96 97 public void setPageSequence(PageSequence pageSequence) { 98 this.pageSequence=pageSequence; 99 } 100 101 public PageSequence getPageSequence() { 102 return this.pageSequence; 103 } 104 105 public LayoutMasterSet getLayoutMasterSet() { 106 return this.layoutMasterSet; 107 } 108 109 public void setLayoutMasterSet(LayoutMasterSet layoutMasterSet) { 110 this.layoutMasterSet = layoutMasterSet; 111 } 112 113 public String getName() { 114 return "fo:root"; 115 } 116 } 117 | Popular Tags |