deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.portal.context
Class ContextTransformer

java.lang.Object
  extended by org.deegree.portal.context.ContextTransformer

public class ContextTransformer
extends java.lang.Object

Singleton class capsulating a javax.xml.transform.Transformer. This class is used to transform a map context xml document in a html document used the transformation (xslt) provided.

Author:
Ugo Taddei

Field Summary
protected static javax.xml.transform.Transformer transformer
          The Transformer object used in the transformation of a map context xml to html.
 
Method Summary
static ContextTransformer getInstance()
           
 java.lang.String toString()
           
 java.lang.String transformContext(java.io.InputStream xsl, java.io.InputStream contxt)
          Transforms the context pointed to by context into html using xsltURL (though this is currently fixed; there's really no need to define one's wn xsl).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transformer

protected static javax.xml.transform.Transformer transformer
The Transformer object used in the transformation of a map context xml to html.

Method Detail

getInstance

public static ContextTransformer getInstance()
Returns:
the singleton.

transformContext

public java.lang.String transformContext(java.io.InputStream xsl,
                                         java.io.InputStream contxt)
                                  throws javax.xml.transform.TransformerException
Transforms the context pointed to by context into html using xsltURL (though this is currently fixed; there's really no need to define one's wn xsl).

Parameters:
xsl - the InputStream containing the xls
contxt - the InputStream containing the context to be transformed
Returns:
the converted string.
Throws:
javax.xml.transform.TransformerException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org