Examples of XOPMarshaller


Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

      Object converted = converter.readFrom(new ByteArrayInputStream(data));

      XOPObject xopObject = new XOPObject(converted);
      xopObject.setContentType(contentType);

      XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
      String cid = xopMarshaller.addMtomAttachment(xopObject, xopElement.getNamespaceURI(), xopElement.getLocalName());

      // remove base64 node with the xop:Include element
      org.w3c.dom.Node child = (org.w3c.dom.Node)xopElement.getFirstChild();
      xopElement.removeChild(child);
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

      String xmlFragment = null;
      NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();

      if (XOPContext.isXOPMessage())
      {
         XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
         XOPObject xopObject = new XOPObject(value);
         xopObject.setContentType("application/octet-stream");
         String cid = xopMarshaller.addMtomAttachment(xopObject, xmlName.getNamespaceURI(), xmlType.getLocalPart());
         String xopInclude = "<xop:Include xmlns:xop='http://www.w3.org/2004/08/xop/include' href='" + cid + "'/>";
         xmlFragment = wrapValueStr(xmlName, xopInclude, nsRegistry, null, attributes, false);
      }
      else
      {
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

      String xmlFragment = null;
      NamespaceRegistry nsRegistry = serContext.getNamespaceRegistry();

      if (XOPContext.isXOPMessage())
      {
         XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
         XOPObject xopObject = new XOPObject(value);
         xopObject.setContentType("application/octet-stream");
         String cid = xopMarshaller.addMtomAttachment(xopObject, xmlName.getNamespaceURI(), xmlType.getLocalPart());
         String xopInclude = "<xop:Include xmlns:xop='http://www.w3.org/2004/08/xop/include' href='" + cid + "'/>";
         xmlFragment = wrapValueStr(xmlName, xopInclude, nsRegistry, null, attributes, false);
      }
      else
      {
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

      Object converted = converter.readFrom(new ByteArrayInputStream(data));

      XOPObject xopObject = new XOPObject(converted);
      xopObject.setContentType(contentType);

      XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
      String cid = xopMarshaller.addMtomAttachment(xopObject, xopElement.getNamespaceURI(), xopElement.getLocalName());

      // remove base64 node with the xop:Include element
      org.w3c.dom.Node child = (org.w3c.dom.Node)xopElement.getFirstChild();
      xopElement.removeChild(child);
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

                                   boolean declareXsiType)
   {
      String elementNs = elementQName.getNamespaceURI();
      String elementLocal = elementQName.getLocalPart();

      XOPMarshaller xopMarshaller = schema.getXopMarshaller();
      if(xopMarshaller == null)
      {
         xopMarshaller = type.getXopMarshaller();
      }
     
      if(xopMarshaller != null && isXopOptimizable(type))
      {

         if(xopMarshaller.isXOPPackage())
         {
            // XOPMarshaller callback will create the attachment part
            Object o = stack.peek();
            String cid = xopMarshaller.addMtomAttachment(new XOPObject(o), elementNs, elementLocal);

            // Create the xopInclude element from CID and exit
            AttributesImpl attrs = null;
            String prefix = getPrefix(elementNs);
            boolean genPrefix = prefix == null && elementNs != null && elementNs.length() > 0;
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

                                   boolean declareXsiType)
   {
      String elementNs = elementQName.getNamespaceURI();
      String elementLocal = elementQName.getLocalPart();

      XOPMarshaller xopMarshaller = schema.getXopMarshaller();
      if(xopMarshaller == null)
      {
         xopMarshaller = type.getXopMarshaller();
      }
     
      if(xopMarshaller != null && isXopOptimizable(type))
      {

         if(xopMarshaller.isXOPPackage())
         {
            // XOPMarshaller callback will create the attachment part
            Object o = stack.peek();
            String cid = xopMarshaller.addMtomAttachment(new XOPObject(o), elementNs, elementLocal);

            // Create the xopInclude element from CID and exit
            AttributesImpl attrs = null;
            String prefix = getPrefix(elementNs);
            boolean genPrefix = prefix == null && elementNs != null && elementNs.length() > 0;
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

                                   boolean declareXsiType)
   {
      String elementNs = elementQName.getNamespaceURI();
      String elementLocal = elementQName.getLocalPart();

      XOPMarshaller xopMarshaller = schema.getXopMarshaller();
      if(xopMarshaller == null)
      {
         xopMarshaller = type.getXopMarshaller();
      }
     
      if(xopMarshaller != null && isXopOptimizable(type))
      {

         if(xopMarshaller.isXOPPackage())
         {
            // XOPMarshaller callback will create the attachment part
            Object o = stack.peek();
            String cid = xopMarshaller.addMtomAttachment(new XOPObject(o), elementNs, elementLocal);

            // Create the xopInclude element from CID and exit
            AttributesImpl attrs = null;
            String prefix = getPrefix(elementNs);
            boolean genPrefix = prefix == null && elementNs != null && elementNs.length() > 0;
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

      Object converted = converter.readFrom(new ByteArrayInputStream(data));

      XOPObject xopObject = new XOPObject(converted);
      xopObject.setContentType(contentType);

      XOPMarshaller xopMarshaller = new XOPMarshallerImpl();
      String cid = xopMarshaller.addMtomAttachment(xopObject, xopElement.getNamespaceURI(), xopElement.getLocalName());

      // remove base64 node with the xop:Include element
      org.w3c.dom.Node child = (org.w3c.dom.Node)xopElement.getFirstChild();
      xopElement.removeChild(child);
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

                                   boolean declareXsiType)
   {
      String elementNs = elementQName.getNamespaceURI();
      String elementLocal = elementQName.getLocalPart();

      XOPMarshaller xopMarshaller = schema.getXopMarshaller();
      if(xopMarshaller == null)
      {
         xopMarshaller = type.getXopMarshaller();
      }
     
      if(xopMarshaller != null && isXopOptimizable(type))
      {

         if(xopMarshaller.isXOPPackage())
         {
            // XOPMarshaller callback will create the attachment part
            Object o = stack.peek();
            String cid = xopMarshaller.addMtomAttachment(new XOPObject(o), elementNs, elementLocal);

            // Create the xopInclude element from CID and exit
            AttributesImpl attrs = null;
            String prefix = getPrefix(elementNs);
            boolean genPrefix = prefix == null && elementNs != null && elementNs.length() > 0;
View Full Code Here

Examples of org.jboss.xb.binding.sunday.xop.XOPMarshaller

/*      */   private void marshalElementType(QName elementQName, TypeBinding type, boolean declareNs, boolean declareXsiType)
/*      */   {
/*  353 */     String elementNs = elementQName.getNamespaceURI();
/*  354 */     String elementLocal = elementQName.getLocalPart();
/*      */
/*  356 */     XOPMarshaller xopMarshaller = this.schema.getXopMarshaller();
/*  357 */     if (xopMarshaller == null)
/*      */     {
/*  359 */       xopMarshaller = type.getXopMarshaller();
/*      */     }
/*      */
/*  362 */     if ((xopMarshaller != null) && (isXopOptimizable(type)))
/*      */     {
/*  365 */       if (xopMarshaller.isXOPPackage())
/*      */       {
/*  368 */         Object o = this.stack.peek();
/*  369 */         String cid = xopMarshaller.addMtomAttachment(new XOPObject(o), elementNs, elementLocal);
/*      */
/*  372 */         AttributesImpl attrs = null;
/*  373 */         String prefix = getPrefix(elementNs);
/*  374 */         boolean genPrefix = (prefix == null) && (elementNs != null) && (elementNs.length() > 0);
/*  375 */         if (genPrefix)
View Full Code Here
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.