org.jvnet.jaxbcommons.runtime.W3CDOMUnmarshallingEventHandler Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v1.0.6-01/24/2006 06:15 PM(kohsuke)-fcs
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2006.07.10 at 02:12:40 PM CEST
//
package org.jvnet.jaxbcommons.runtime;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Element;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import com.sun.xml.bind.marshaller.SAX2DOMEx;
/**
* {@link UnmarshallingEventHandler} implementation for W3C DOM.
*
* @optionalRuntime
*
* @author
* Kohsuke Kawaguchi ([email protected])
*/
public class W3CDOMUnmarshallingEventHandler extends UnmarshallingEventHandlerAdaptor {
private Element owner;
public W3CDOMUnmarshallingEventHandler(UnmarshallingContext _ctxt) throws ParserConfigurationException, SAXException {
super(_ctxt, new SAX2DOMEx());
}
public void enterElement(String uri, String local, String qname, Attributes atts) throws SAXException {
super.enterElement(uri, local, qname, atts);
if( owner==null )
owner = ((SAX2DOMEx)handler).getCurrentElement();
}
public Object owner() {
return owner;
}
public Element getOwner() {
return owner;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy