private static HashMap foObjs = null;
- public synchronized void addToBuilder(TreeBuilder builder) {
+ private static synchronized void setupExt() {
if(foObjs == null) {
foObjs = new HashMap();
foObjs.put("outline", Outline.maker());
foObjs.put("label", Label.maker());
}
+ }
+
+ public void addToBuilder(TreeBuilder builder) {
+ setupExt();
builder.addMapping(URI, foObjs);
public class StandardElementMapping implements ElementMapping {
private static HashMap foObjs = null;
- public synchronized void addToBuilder(TreeBuilder builder) {
+ private static synchronized void setupFO() {
if(foObjs == null) {
foObjs = new HashMap();
foObjs.put("marker", Marker.maker());
foObjs.put("retrieve-marker", RetrieveMarker.maker());
}
+ }
+ public void addToBuilder(TreeBuilder builder) {
+ setupFO();
String uri = "http://www.w3.org/1999/XSL/Format";
builder.addMapping(uri, foObjs);
builder.addElementPropertyList(uri, elem,
FOPropertyMapping.getElementMapping(elem));
}
-
}
-
}
+
private static HashMap foObjs = null;
- public synchronized void addToBuilder(TreeBuilder builder) {
+ private static synchronized void setupSVG() {
if(foObjs == null) {
// this sets the parser that will be used
foObjs.put("feMerge", SVGObj.maker("feMerge"));
foObjs.put("feMergeNode", SVGObj.maker("feMergeNode"));
}
+ }
+ public void addToBuilder(TreeBuilder builder) {
+ setupSVG();
String uri = "http://www.w3.org/2000/svg";
builder.addMapping(uri, foObjs);
builder.addPropertyListBuilder(uri, new DirectPropertyListBuilder());
}
-
}
+