Package org.jitterbit.xml.xsd

Examples of org.jitterbit.xml.xsd.GeneratedXsds$FileNameFunction


        File jsonFile = sampleFile.getFile();
        File xsdFile = g.generateXsd(jsonFile, Folder.parentOf(jsonFile));
        if (useAutomaticXsdName()) {
            xsdFile = tweakAutomaticallyGeneratedName(xsdFile);
        }
        return new GeneratedXsds(xsdFile);
    }
View Full Code Here


            SampleFile sampleFile = sampleFileFactory.createSampleFile();
            if (isCancelled() || Thread.currentThread().isInterrupted()) {
                return;
            }
            setMessage("Generating the XSD");
            GeneratedXsds xsds = generateXsds(sampleFile);
            if (isCancelled() || Thread.currentThread().isInterrupted()) {
                return;
            }
            resultWasComputed(new CreateXsdResult(sampleFile, xsds));
        } catch (InterruptedException e) {
View Full Code Here

        }
        openFolderAction.setResult(result);
    }
   
    private KongaTreeModel createTreeModel(CreateXsdResult result) {
        GeneratedXsds xsds = result.getXsds();
        File mainFile = xsds.getMainXsd();
        FileNode root = new FileNode(mainFile.getParentFile());
        root.addChild(new FileNode(mainFile));
        List<File> additional = Lists.newArrayList(xsds.getAdditionalXsds());
        Collections.sort(additional);
        for (File f : additional) {
            root.addChild(new FileNode(f));
        }
        return new DefaultKongaTreeModel(root);
View Full Code Here

TOP

Related Classes of org.jitterbit.xml.xsd.GeneratedXsds$FileNameFunction

Copyright © 2018 www.massapicom. 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.