b681afce38bda29f3437653c6bd0c60d3101630a
[xmlrouter] / config / src / main / java / org / wamblee / xmlrouter / config / Transformation.java
1 package org.wamblee.xmlrouter.config;
2
3 import javax.xml.transform.dom.DOMSource;
4
5 public interface Transformation {
6
7     /**
8      * From type that can be transformed.
9      * 
10      * @return From document type.
11      */
12     String getFromType();
13
14     /**
15      * To document type.
16      * 
17      * @return Document type.
18      */
19     String getToType();
20
21     /**
22      * @param aDocument
23      *            Document to transform.
24      * @return Resulting document.
25      */
26     DOMSource transform(DOMSource aDocument);
27
28 }