package org.wamblee.xmlrouter.config; import javax.xml.transform.dom.DOMSource; public interface Transformation { /** * From type that can be transformed. * * @return From document type. */ String getFromType(); /** * To document type. * * @return Document type. */ String getToType(); /** * @param aDocument * Document to transform. * @return Resulting document. */ DOMSource transform(DOMSource aDocument); }