Package org.jboss.ws.core.jaxrpc.binding

Source Code of org.jboss.ws.core.jaxrpc.binding.NullValueSerializer

/*    */ package org.jboss.ws.core.jaxrpc.binding;
/*    */
/*    */ import javax.xml.namespace.QName;
/*    */ import javax.xml.transform.Result;
/*    */ import org.jboss.logging.Logger;
/*    */ import org.jboss.ws.core.binding.BindingException;
/*    */ import org.jboss.ws.core.binding.BufferedStreamResult;
/*    */ import org.jboss.ws.core.binding.SerializationContext;
/*    */ import org.jboss.ws.core.binding.SerializerSupport;
/*    */ import org.jboss.xb.binding.NamespaceRegistry;
/*    */ import org.w3c.dom.NamedNodeMap;
/*    */
/*    */ public class NullValueSerializer extends SerializerSupport
/*    */ {
/* 47 */   private static final Logger log = Logger.getLogger(NullValueSerializer.class);
/*    */
/*    */   public Result serialize(QName xmlName, QName xmlType, Object value, SerializationContext serContext, NamedNodeMap attributes)
/*    */     throws BindingException
/*    */   {
/* 63 */     log.debug("serialize: [xmlName=" + xmlName + ",xmlType=" + xmlType + "]");
/*    */
/* 65 */     NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();
/* 66 */     nsRegistry.registerURI("http://www.w3.org/2001/XMLSchema-instance", "xsi");
/* 67 */     String xmlFragment = wrapValueStr(xmlName, null, nsRegistry, null, attributes, true);
/* 68 */     return new BufferedStreamResult(xmlFragment);
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.ws.core.jaxrpc.binding.NullValueSerializer
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.ws.core.jaxrpc.binding.NullValueSerializer

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.