1 17 18 19 20 package org.apache.fop.fo.pagination; 21 22 import org.xml.sax.Locator ; 24 25 import org.apache.fop.fo.FONode; 26 import org.apache.fop.fo.ValidationException; 27 import org.apache.fop.fo.flow.InlineLevel; 28 29 32 public class Title extends InlineLevel { 33 37 40 public Title(FONode parent) { 41 super(parent); 42 } 43 44 48 protected void validateChildNode(Locator loc, String nsURI, String localName) 49 throws ValidationException { 50 if (!isInlineItem(nsURI, localName)) { 51 invalidChildError(loc, nsURI, localName); 52 } 53 } 54 55 58 public String getLocalName() { 59 return "title"; 60 } 61 62 65 public int getNameId() { 66 return FO_TITLE; 67 } 68 } 69 70 | Popular Tags |