Package com.sun.xml.bind.v2.runtime.output

Source Code of com.sun.xml.bind.v2.runtime.output.DOMOutput

/*    */ package com.sun.xml.bind.v2.runtime.output;
/*    */
/*    */ import com.sun.xml.bind.marshaller.SAX2DOMEx;
/*    */ import com.sun.xml.bind.v2.runtime.AssociationMap;
/*    */ import org.w3c.dom.Node;
/*    */ import org.xml.sax.SAXException;
/*    */
/*    */ public final class DOMOutput extends SAXOutput
/*    */ {
/*    */   private final AssociationMap assoc;
/*    */
/*    */   public DOMOutput(Node node, AssociationMap assoc)
/*    */   {
/* 58 */     super(new SAX2DOMEx(node));
/* 59 */     this.assoc = assoc;
/* 60 */     assert (assoc != null);
/*    */   }
/*    */
/*    */   private SAX2DOMEx getBuilder() {
/* 64 */     return (SAX2DOMEx)this.out;
/*    */   }
/*    */
/*    */   public void endStartTag() throws SAXException {
/* 68 */     super.endStartTag();
/*    */
/* 70 */     Object op = this.nsContext.getCurrent().getOuterPeer();
/* 71 */     if (op != null) {
/* 72 */       this.assoc.addOuter(getBuilder().getCurrentElement(), op);
/*    */     }
/* 74 */     Object ip = this.nsContext.getCurrent().getInnerPeer();
/* 75 */     if (ip != null)
/* 76 */       this.assoc.addInner(getBuilder().getCurrentElement(), ip);
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
* Qualified Name:     com.sun.xml.bind.v2.runtime.output.DOMOutput
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of com.sun.xml.bind.v2.runtime.output.DOMOutput

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.