1 17 18 19 20 package org.apache.fop.fo.extensions.xmp; 21 22 import java.util.HashMap ; 23 24 import org.apache.fop.fo.FONode; 25 import org.apache.fop.fo.ElementMapping; 26 import org.apache.xmlgraphics.xmp.XMPConstants; 27 28 import org.w3c.dom.DOMImplementation ; 29 30 33 public class XMPElementMapping extends ElementMapping { 34 35 36 public XMPElementMapping() { 37 namespaceURI = XMPConstants.XMP_NAMESPACE; 38 } 39 40 41 public DOMImplementation getDOMImplementation() { 42 return getDefaultDOMImplementation(); 43 } 44 45 46 protected void initialize() { 47 if (foObjs == null) { 48 foObjs = new HashMap (); 49 foObjs.put("xmpmeta", new XMPMetaElementMaker()); 50 } 51 } 52 53 static class XMPMetaElementMaker extends ElementMapping.Maker { 54 public FONode make(FONode parent) { 55 return new XMPMetaElement(parent); 56 } 57 } 58 59 } 60 | Popular Tags |