Package org.jibx.runtime

Examples of org.jibx.runtime.IXMLWriter.openNamespaces()


                uris[i] = (String)m_namespaceDeclares.get(i*2+1);
            }
           
            // add the namespace declarations to current element
            writer.pushExtensionNamespaces(uris);
            writer.openNamespaces(indexes, prefs);
            for (int i = 0; i < uris.length; i++) {
                String prefix = prefs[i];
                String name = prefix.length() == 0 ?
                    "xmlns" : "xmlns:" + prefix;
                writer.addAttribute(0, name, uris[i]);
View Full Code Here


                    }
                }
               
                // add the namespace declarations to current element
                writer.pushExtensionNamespaces((String[])uris.toArray(new String[uris.size()]));
                writer.openNamespaces(indexes.toArray(), prefs.toArray());
                for (int i = 0; i < prefs.size(); i++) {
                    String prefix = prefs.get(i);
                    String name = prefix.length() > 0 ? "xmlns:" + prefix : "xmlns";
                    writer.addAttribute(0, name, writer.getNamespaceUri(indexes.get(i)));
                }
View Full Code Here

                }
                prefs[i] = pref;
                uris[i] = (String)m_namespaces.get(i*2+1);
            }
            writer.pushExtensionNamespaces(uris);
            writer.openNamespaces(indexes, prefs);
            for (int i = 0; i < uris.length; i++) {
                String prefix = prefs[i];
                String name = prefix.length() > 0 ? "xmlns:" + prefix : "xmlns";
                writer.addAttribute(0, name, uris[i]);
            }
View Full Code Here

                    uris[i] = (String)m_namespaces.get(i * 2 + 1);
                }
               
                // add the namespace declarations to current element
                writer.pushExtensionNamespaces(uris);
                writer.openNamespaces(indexes, prefs);
                for (int i = 0; i < uris.length; i++) {
                    String prefix = prefs[i];
                    String name = prefix.length() > 0 ? "xmlns:" + prefix : "xmlns";
                    writer.addAttribute(0, name, uris[i]);
                }
View Full Code Here

        } else {
            try {
               
                // open namespaces from wrapper element
                IXMLWriter wrtr = ctx.getXmlWriter();
                wrtr.openNamespaces(openNamespaceIndexes, openNamespacePrefixes);
                String name = elementName;
                if (!"".equals(elementNamespacePrefix)) {
                    name = elementNamespacePrefix + ':' + name;
                }
                wrtr.startTagOpen(0, name);
View Full Code Here

                    wrtr.startTagNamespaces(nsidx, name, openNamespaceIndexes, openNamespacePrefixes);
                   
                } else {
       
                    // configure writer with namespace declared in enclosing scope
                    wrtr.openNamespaces(openNamespaceIndexes, openNamespacePrefixes);
                    if (!"".equals(elementNamespacePrefix)) {
                        name = elementNamespacePrefix + ':' + name;
                    }
                    wrtr.startTagOpen(0, name);
                }
View Full Code Here

                    wrtr.startTagNamespaces(nsidx, name, openNamespaceIndexes, openNamespacePrefixes);
                   
                } else {
       
                    // configure writer with namespace declared in enclosing scope
                    wrtr.openNamespaces(openNamespaceIndexes, openNamespacePrefixes);
                    if (!"".equals(elementNamespacePrefix)) {
                        name = elementNamespacePrefix + ':' + name;
                    }
                    wrtr.startTagOpen(0, name);
                }
View Full Code Here

                    wrtr.startTagNamespaces(nsidx, name, openNamespaceIndexes, openNamespacePrefixes);
                   
                } else {
       
                    // configure writer with namespace declared in enclosing scope
                    wrtr.openNamespaces(openNamespaceIndexes, openNamespacePrefixes);
                    if (!"".equals(elementNamespacePrefix)) {
                        name = elementNamespacePrefix + ':' + name;
                    }
                    wrtr.startTagOpen(0, name);
                }
View Full Code Here

                    wrtr.startTagNamespaces(nsidx, name, openNamespaceIndexes, openNamespacePrefixes);
                   
                } else {
       
                    // configure writer with namespace declared in enclosing scope
                    wrtr.openNamespaces(openNamespaceIndexes, openNamespacePrefixes);
                    if (!"".equals(elementNamespacePrefix)) {
                        name = elementNamespacePrefix + ':' + name;
                    }
                    wrtr.startTagOpen(0, name);
                }
View Full Code Here

                ((IMarshallable)dataObject).marshal(ctx);
            } else {
   
                // open namespaces from wrapper element
                IXMLWriter wrtr = ctx.getXmlWriter();
                wrtr.openNamespaces(openNamespaceIndexes, openNamespacePrefixes);
                String name = elementName;
                if (!"".equals(elementNamespacePrefix)) {
                    name = elementNamespacePrefix + ':' + name;
                }
                wrtr.startTagOpen(0, name);
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.