Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * $Id: CommonXSLTransformer.java 130 2009-06-05 17:01:24Z karianna $
   * $URL: https://ikasaneip.svn.sourceforge.net/svnroot/ikasaneip/tags/ikasan-0.7.3/common/src/main/java/org/ikasan/common/CommonXSLTransformer.java $
   * 
   * ====================================================================
   * Ikasan Enterprise Integration Platform
   * Copyright (c) 2003-2008 Mizuho International plc. and individual contributors as indicated
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
  *
  * This is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
  * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the 
  * Free Software Foundation Europe e.V. Talstrasse 110, 40217 Dusseldorf, Germany 
  * or see the FSF site: http://www.fsfeurope.org/.
  * ====================================================================
  */
 package org.ikasan.common;
 
 import java.util.Map;
 
 
Common XML Transformer provides the base interface for all XML Transformation.

Author(s):
Ikasan Development Team
   
 public interface CommonXSLTransformer
 {
    
Set the stylesheet given a xslURI

 
     public void setStylesheet(String xslURI)
         throws TransformerConfigurationException;

    
Set the stylesheet given a xslURI and a use XSLT flag

 
     public void setStylesheet(String xslURIboolean useXSLTC)
         throws TransformerConfigurationException;

    
Set the URIResolver

Parameters:
resolver
 
     public void setURIResolver(URIResolver resolver);
    
    
Set the URIResolver given a map of sources

Parameters:
resolverMap
 
     public void setURIResolver(Map<StringSourceresolverMap);
    
    
Set the URIResolver given a uri and an XML source

Parameters:
uri
xml
 
     public void setURIResolver(String uriSource xml);

    
Set the output property

Parameters:
name
value
 
     public void setOutputProperty(String nameString value);

    
Set output properties

Parameters:
outputProps
 
     public void setOutputProperties(Properties outputProps);

    
Transform Source (in) into Result (out)

    public void transform(Source inResult out)
        throws TransformerException;

    
Transform Source (in) into a String

Parameters:
in
Returns:
String representing transformed Source
Throws:
javax.xml.transform.TransformerException
java.io.IOException
    public String transformToString(Source in)
        throws TransformerExceptionIOException;
    
    
Transform Document into a String

Parameters:
xmlIn
Returns:
String representing transformed Document
Throws:
javax.xml.transform.TransformerException
java.io.IOException
    public String transformToString(Document xmlIn)
        throws TransformerExceptionIOException;
    
    
Transform XML String into a String

Parameters:
xmlIn
Returns:
String representing transformed XML String
Throws:
javax.xml.transform.TransformerException
java.io.IOException
    public String transformToString(String xmlIn)
        throws TransformerExceptionIOException;
    
    
Transform Source into a Document

    public Document transformToDocument(Source in)
        throws TransformerExceptionIOException;
    
    
Transform Document into a Document

Parameters:
xmlIn
Returns:
Document representing transformed Document
Throws:
javax.xml.transform.TransformerException
java.io.IOException
    public Document transformToDocument(Document xmlIn)
        throws TransformerExceptionIOException;
    
    
Transform XML String into a Document

Parameters:
xmlIn
Returns:
Document representing transformed XML String
Throws:
javax.xml.transform.TransformerException
java.io.IOException
    public Document transformToDocument(String xmlIn)
        throws TransformerExceptionIOException;
    
    
Set the parameter

Parameters:
name
value
    public void setParameter(String nameString value);

    
Set the parameters

Parameters:
parameterMap
    public void setParameters(Map<StringStringparameterMap);
New to GrepCode? Check out our FAQ X