Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/processor
In directory sc8-pr-cvs1:/tmp/cvs-serv32256/modules/core/src/com/babeldoc/core/pipeline/processor
Modified Files:
ProcessorConfigInfo.java
Log Message:
More updates to the documentation - less javascript and more java in the documentation pipeline.
Index: ProcessorConfigInfo.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/processor/ProcessorConfigInfo.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ProcessorConfigInfo.java 8 Aug 2003 23:43:11 -0000 1.1
--- ProcessorConfigInfo.java 9 Aug 2003 00:21:13 -0000 1.2
***************
*** 68,75 ****
--- 68,80 ----
import com.babeldoc.core.option.ConfigInfo;
import com.babeldoc.core.option.ConfigOption;
+ import com.babeldoc.core.option.IConfigInfo;
+ import com.babeldoc.core.service.ServiceFactory;
+ import com.babeldoc.core.service.ServiceException;
+ import com.babeldoc.core.LogService;
import java.util.Collection;
import java.util.ArrayList;
import java.util.Iterator;
+ import java.util.Map;
import java.io.StringWriter;
import java.io.IOException;
***************
*** 147,150 ****
--- 152,177 ----
}
return strWriter.toString();
+ }
+
+ /**
+ * Get all the xml definitions in one humungo xml file
+ *
+ * @return
+ */
+ public static String getAllXml() {
+ Map map = ServiceFactory.getAllServices("PipelineStageProcessor");
+ StringBuffer buffer = new StringBuffer("<processor-defns>\n");
+ for (Iterator iterator = map.keySet().iterator(); iterator.hasNext();) {
+ String name = (String) iterator.next();
+ try {
+ IPipelineStageProcessor obj = (IPipelineStageProcessor)(ServiceFactory.getService("PipelineStageProcessor."+name));
+ buffer.append(obj.getInfo().toXml());
+ } catch (ServiceException e) {
+ LogService.getInstance().logError(e);
+ }
+ }
+ buffer.append("</processor-defns>\n");
+
+ return buffer.toString();
}
}
|