Package org.pf.pax

PAX - Power API for XML
PAX is a framework for practical transformation of XML data into Java objects.

See:
          Description

Interface Summary
SAXConstants Just provides some constants to be with by SAX parsers.
XMLTagInterpreter This defines the API for a tag interpreter class in the PAX framework.
XMLTagInterpreterController This defines the API for tag interpreter controller classes in the PAX framework.
XMLTagInterpreterFactory This defines the API for classes that can create tag interpreter instances for specific tag names in a defined tag set.
 

Class Summary
BaseXMLTagInterpreter This is a basic implemantation of a tag interpreter that is compliant to the interface XMLTagInterpreter.
BaseXMLTagInterpreterController This defines the API for classes that can create tag interpreter in instances for specific tag names in a defined tag set.
BaseXMLTagInterpreterFactory This is the basic implemenatation of a registry of tag interpreter classes an their associated tag names.
DOMTreeXMLReader This parser implements the org.xml.sax.Parser interface, but uses a DOM tree as input rather than a XML stream.
LoggerProvider This is the central access point for the package's logger.
MarkupWriter A class that helps to write out a markup language (e.g.
XMLWriteController This is the controller for wriring a DOM tree to an XML stream.
XMLWriteInterpreter The instances of this class are responsible for writing the tag's name, attributes and contents to the given MarkupWriter.
 

Package org.pf.pax Description

PAX - Power API for XML


PAX is a framework for practical transformation of XML data into Java objects. It is built on top of SAX the Simple API for XML (see SAX Homepage). Therefore it can be used together with any public available SAX compliant Java XML parser.

SAX gives the programmer a hook to install only one ContentHandler in a parser. That is quite awful, because this object has to handle all callbacks for all different tags from an XML stream. The idea of PAX now is to handle each tag with a separate so-called tag interpreter ( interface XMLTagInterpreter ). Such an interpreter is responsible for exactly one type of tag. Its task is to create a reasonable business object out of the data it receives through the parser from the XML stream. On the one hand this approach will increase the number of classes ( one for each kind of tag ), but on the other hand maintenance, extensibility and clearness is much better.

The three main components of PAX are: