Examples of newExpandedName()


Examples of org.jitterbit.xml.XmlNameFactory.newExpandedName()

        String rootName = struct.getRootNodeName();
        if (rootName == null || rootName.length() == 0) {
            return;
        }
        XmlNameFactory nameFactory = getXmlNameFactory();
        ExpandedName root = nameFactory.newExpandedName(rootName);
        for (RootSelector sel : rootSelectors) {
            sel.setSelectedRoot(root);
        }
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlNameFactory.newExpandedName()

    private ExpandedName getRootNameFromFile(File file) throws InvalidRootException {
        try {
            RootNodeExtractor extractor = RootNodeExtractor.getSaxExtractor();
            Element root = extractor.extractRoot(file);
            XmlNameFactory nameFactory = XmlNameFactory.conforming();
            return nameFactory.newExpandedName(root);
        } catch (KongaXmlException ex) {
            throw new InvalidRootException(ex.getMessage(), ex);
        } catch (RuntimeException ex) {
            throw new InvalidRootException(PackageResources.ROOT_EXTRACTION_FAILED, ex);
        }
View Full Code Here

Examples of org.jitterbit.xml.XmlNameFactory.newExpandedName()

            @Override
            public void startElement(String uri, String localName, String qName, Attributes attributes)
                            throws SAXException {
                if (rootName == null) {
                    XmlNameFactory nameFactory = XmlNameFactory.conforming();
                    rootName = nameFactory.newExpandedName(uri, localName);
                }
            }
        });
        return rootName;
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlNameFactory.newExpandedName()

            XmlNameFactory nameFactory = XmlNameFactory.nonConforming();
            String[] parts = s.split("\\|");
            for (String p : parts) {
                String name = StringUtils.substringBefore(p, ",");
                String type = StringUtils.substringAfter(p, ",");
                fields.add(new Field(name, nameFactory.newExpandedName(type)));
            }
        }
        return fields;
    }
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.