All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.delivery.replay.StartElementEvent Maven / Gradle / Ivy

There is a newer version: 1.7.1
Show newest version
package org.milyn.delivery.replay;

import org.milyn.SmooksException;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.SAXException;

/**
 * End element event replay.
 *
 * @author [email protected]
 */
public class StartElementEvent implements SAXEventReplay {

    public String uri;
    public String localName;
    public String qName;
    public Attributes atts;

    public void set(String uri, String localName, String qName, Attributes atts) {
        this.uri = uri;
        this.localName = localName;
        this.qName = qName;
        this.atts = atts;
    }

    public void replay(ContentHandler handler) throws SmooksException {
        try {
            handler.startElement(uri, localName, qName, atts);
        } catch (SAXException e) {
            throw new SmooksException("Error replaying startElement event.", e);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy