1 17 18 19 20 package org.apache.fop.fo.pagination.bookmarks; 21 22 import org.xml.sax.Locator ; 23 24 import org.apache.fop.fo.FObj; 25 import org.apache.fop.fo.FONode; 26 import org.apache.fop.fo.PropertyList; 27 import org.apache.fop.fo.ValidationException; 28 29 34 public class BookmarkTitle extends FObj { 35 private String title = ""; 36 37 42 public BookmarkTitle(FONode parent) { 43 super(parent); 44 } 45 46 56 protected void addCharacters(char data[], int start, int end, 57 PropertyList pList, 58 Locator locator) { 59 title += new String (data, start, end - start); 60 } 61 62 66 protected void validateChildNode(Locator loc, String nsURI, String localName) 67 throws ValidationException { 68 invalidChildError(loc, nsURI, localName); 69 } 70 71 76 public String getTitle() { 77 return title; 78 } 79 80 81 public String getLocalName() { 82 return "bookmark-title"; 83 } 84 85 88 public int getNameId() { 89 return FO_BOOKMARK_TITLE; 90 } 91 } 92 | Popular Tags |