1 17 18 19 20 package org.apache.fop.fo.pagination; 21 22 import org.xml.sax.Locator ; 23 24 import org.apache.fop.apps.FOPException; 25 import org.apache.fop.fo.FObj; 26 import org.apache.fop.fo.FONode; 27 import org.apache.fop.fo.PropertyList; 28 import org.apache.fop.fo.ValidationException; 29 30 35 public class PageSequenceWrapper extends FObj { 36 private String id; 38 private String indexClass; 39 private String indexKey; 40 42 45 public PageSequenceWrapper(FONode parent) { 46 super(parent); 47 } 48 49 52 public void bind(PropertyList pList) throws FOPException { 53 id = pList.get(PR_ID).getString(); 54 indexClass = pList.get(PR_INDEX_CLASS).getString(); 55 indexKey = pList.get(PR_INDEX_KEY).getString(); 56 } 57 58 61 protected void startOfNode() throws FOPException { 62 checkId(id); 63 } 64 65 69 protected void validateChildNode(Locator loc, String nsURI, String localName) 70 throws ValidationException { 71 if (!(FO_URI.equals(nsURI) && (localName.equals("page-sequence") || 72 localName.equals("page-sequence-wrapper")))) { 73 invalidChildError(loc, nsURI, localName); 74 } 75 } 76 77 78 public String getId() { 79 return id; 80 } 81 82 83 public String getIndexClass() { 84 return indexClass; 85 } 86 87 88 public String getIndexKey() { 89 return indexKey; 90 } 91 92 93 public String getLocalName() { 94 return "page-sequence-wrapper"; 95 } 96 97 100 public int getNameId() { 101 return FO_PAGE_SEQUENCE_WRAPPER; 102 } 103 } 104 105 | Popular Tags |