Package eu.bandm.tools.util.xml
package eu.bandm.tools.util.xml
Utility classes for XML.
-
ClassDescriptionFacade which adds standard behaviour to the SAX attributes implementation.Converts SAX events into textual representation, not supporting name spaces.A
ContentHandler
which propagates all SAX events (api calls) identically to the receiver inContentProxy.out
.ASAX ContentHandler
which discards all events.Serializes a document given as aw3c dom
(in some local implementation) into a sequence of Sax events.Sends all caught exceptions to anErrorListener
, that is an error listener of the built-in Java XML infrastructure.Sends all caught exceptions which occur when invoking the callbacks of a ContentHandler to a SAXErrorHandler
.Converts name space related information: (a) prefix mapping commands into pseudo-attributes, and (b) uri/localname sax events into qName sax events.Makes name space references explicit.AContentHandler
which propagates all SAX events but changes "start prefix mapping" and the corresponding "end prefix mapping" iff HOMONMYS (=re-uses of prefices) are detected.Models the special "equals()" behaviour of xml identifiers with namespace prefix semantics.Maintains a map from toString
, and reads different file formats.Invents new prefices for new NSUris and inserts the prefix mapping events.De-Serializes a document given by a sequence of SAX calls into a staticw3c dom
representation (in some local implementation, accessed via the JAXP architecture).Facade for conveniently creating sequences of SAX events, more likely to be well-formed.AContentHandler
which dumps all sax events for debugging purpose.This class operates as a dynamic storage for SAX events.Storage for re-ified SAX events supporting look-ahead.Raised by calls which expect definitely a certain tag.Catches all exxeptions which occur when the call-back methods are invoked and sends them to some listener object.Replaces allsetDocumentLocator(Locator)
SAX calls by an interceptingLocator
, which re-maps location info according to theLocationMap
,Applies additional syntax checks before passing on the SAX messages.Delivers SAX events and SAX error messages to multiple targets.Realizes a pair of identifiers ("system" and "public") as often required to identify an XML document.