1 17 18 19 20 package org.apache.fop.fotreetest.ext; 21 22 import org.apache.fop.fo.FONode; 23 import org.apache.fop.fo.ElementMapping; 24 25 28 public class TestElementMapping extends ElementMapping { 29 30 31 public static final String NAMESPACE = "http://xmlgraphics.apache.org/fop/test"; 32 33 36 public TestElementMapping() { 37 this.namespaceURI = NAMESPACE; 38 } 39 40 41 protected void initialize() { 42 if (foObjs == null) { 43 foObjs = new java.util.HashMap (); 44 foObjs.put("assert", new AssertMaker()); 45 } 46 } 47 48 static class AssertMaker extends ElementMapping.Maker { 49 public FONode make(FONode parent) { 50 return new AssertElement(parent); 51 } 52 } 53 54 } 55 | Popular Tags |