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 RDFElementMapping extends ElementMapping { 34 35 36 public RDFElementMapping() { 37 namespaceURI = XMPConstants.RDF_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("RDF", new RDFElementMaker()); 50 } 51 } 52 53 static class RDFElementMaker extends ElementMapping.Maker { 54 public FONode make(FONode parent) { 55 return new RDFElement(parent); 56 } 57 } 58 59 } 60 | Popular Tags |