Although its name may presume that this package handles the appliance of transformation-rules, this process is done by FOXY's filter-package (see section 2.3.2. The transformation-package is only responsible for converting HTML- to well-formed XML-data. For the implementation of the transformer, we used the well-known factory design-pattern. The user may implement and use its own ProxyTransformerFactory (and its own transformer-implementation, respectively) by delivering the name of the personalized TransformerFactory-implementation to Java's virtual machine during startup. This is done by setting the parameter foxy.proxy.transform.ProxyTransformerFactory to the name of its own implementation (default value: foxy.proxy.transform.DefaultTransformerFactory). The factory class is implemented as singleton which ensures that there can exist only one instance of it in the system. The factory-class contains one public function - newTransformer() - for the creation of a new ProxyTransformer. The ProxyTransformer-interface contains only one public method, called html2Xml(..), which is responsible for converting HTML-data to well-formed XML (or XHTML, respectively). Its default implementation - DefaultProxyTransformer - uses the JTidy-pretty-printer to achieve this aim (see section 2.2.2).

Figure 2.10 shows the relation between the classes and interfaces of this package.

Figure 2.10: Important classes/interfaces of package foxy.proxy.transform
Image foxy_proxy_transform-diag

root 2006-05-22