The Toolset

The toolset covers four functional areas, comparators, attribute modifiers, character data modifiers and notifiers, represented by the base classes and base interfaces – ElementComparator, AttributesModifier, CDataModifier and for notification, specialized subclasses of these base classes which forward the data passed to them to registered target objects. Another notifier – BeanPropertySetter implements the ContentHandler interface and can be added to the ProgrammableSAXFilter as a “listener.

Javadoc pages

Main objects and interfaces Comparators

The function of sax filter comparators is to identify elements within an XML document for processing. The first group compares element tags for match, the second are a set of boolean comparators that can be used to create compound comparison operations.

Boolean comparators – These comparators combine the effects of primary comparators or other boolean comparators, enabling the creation of compound comparison operations.

AttributesModifiers

The set of AttributesModifiers provides for attribute addition, deletion and modification as well as an implementation that can be used to provide a sequential numbering of elements.

CDataModifiers

The set of CDataModifiers allows several operations to be performed on a character data segment.

Replacers

Enable sections of an XML document to be replaced with strings, or by another SAX or DOM source.

Notifiers / Extractors

The notifiers are subclasses of ElementModifier, AttributesModifier and CDataModifier. They implement the interface methods not by changing the data that is passed to them but rather use the data to send object messages to registered target objects using Java reflection techniques.

SAX -> String conversion tools I/O Filter stream tools: Other tools