1 58 package org.krysalis.barcode.fop0205; 59 60 import org.apache.fop.apps.FOPException; 61 import org.apache.fop.fo.PropertyList; 62 import org.apache.fop.fo.XMLObj; 63 import org.apache.fop.fo.FObj; 64 65 import org.krysalis.barcode.BarcodeConstants; 66 67 public class BarcodeObj extends XMLObj { 68 69 72 public static class Maker extends FObj.Maker { 73 String tag; 74 75 Maker(String str) { 76 tag = str; 77 } 78 79 87 public FObj make(FObj parent, PropertyList propertyList, 88 String systemId, int line, int column) 89 throws FOPException { 90 return new BarcodeObj(parent, propertyList, tag, 91 systemId, line, column); 92 } 93 } 94 95 100 public static FObj.Maker maker(String str) { 101 return new BarcodeObj.Maker(str); 102 } 103 104 110 protected BarcodeObj(FObj parent, PropertyList propertyList, String tag, 111 String systemId, int line, int column) { 112 super(parent, propertyList, tag, systemId, line, column); 113 } 114 115 public String getName() { 116 return "bc:" + tagName; 117 } 118 119 public String getNameSpace() { 120 return BarcodeConstants.NAMESPACE; 121 } 122 } 123 124 | Popular Tags |