org.mmbase.framework
Class Utils

java.lang.Object
  extended by org.mmbase.framework.Utils

public abstract class Utils
extends Object

Static utilitiy methods which are related to (combine functionality of) other classes in the packages.

Since:
MMBase-1.9
Version:
$Id: Utils.java 35284 2009-05-18 19:27:54Z michiel $
Author:
Michiel Meeuwissen

Method Summary
static Parameters fixateParameters(Parameters parameters)
           
static Document renderToXml(Framework fw, Renderer renderer, Parameters blockParameters, Parameters frameworkParameters, WindowState state, Class<?> baseClass)
          Renders a Renderer into a new Document.
static void xslTransform(Parameters blockParameters, URL in, InputStream inputStream, Writer w, URL xsl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderToXml

public static Document renderToXml(Framework fw,
                                   Renderer renderer,
                                   Parameters blockParameters,
                                   Parameters frameworkParameters,
                                   WindowState state,
                                   Class<?> baseClass)
                            throws FrameworkException
Renders a Renderer into a new Document. This assumes that the renderer indeed produces XML. This is e.g. used to include blocks into editwizard task XML's.

Throws:
FrameworkException

xslTransform

public static void xslTransform(Parameters blockParameters,
                                URL in,
                                InputStream inputStream,
                                Writer w,
                                URL xsl)
                         throws TransformerException
Throws:
TransformerException
Since:
MMBase-1.9.1

fixateParameters

public static Parameters fixateParameters(Parameters parameters)
Since:
MMBase-1.9.1


MMBase 2.0-SNAPSHOT - null