Examples of XmlStringBuilder


Examples of org.jitterbit.util.xml.XmlStringBuilder

    }
   
    @Override
    public void writeXml(PipelinePluginOutput output,
                         PipelinePluginContext context) throws IOException {
        XmlStringBuilder xml = buildXml(output, context);
        createOutputFile(xml, m_file);
    }
View Full Code Here

Examples of org.jitterbit.util.xml.XmlStringBuilder

        createOutputFile(xml, m_file);
    }
   
    @Override
    public void writeError(Exception ex) throws IOException {
        XmlStringBuilder xml = new XmlStringBuilder();
        writePreamble(xml, PluginSpecificationVersion.current(),
                        PipelinePluginSpecificationVersion.current());
        writeException(ex, xml);
        closeXml(xml);
        createOutputFile(xml, m_file);
View Full Code Here

Examples of org.jitterbit.util.xml.XmlStringBuilder

        createOutputFile(xml, m_file);
    }
   
    private XmlStringBuilder buildXml(PipelinePluginOutput output,
                                      PipelinePluginContext context) {
        XmlStringBuilder xml = new XmlStringBuilder();
        writePreamble(xml, context);
        writeDataElements(output, context, xml);
        writeFiles(output, xml);
        writeOutputLog(output, xml);
        closeXml(xml);
View Full Code Here

Examples of org.jitterbit.xml.XmlStringBuilder

            KongaIoUtils.createAndWrite(file, getXml());
        }
    }

    private String getXml() {
        XmlStringBuilder xml = new XmlStringBuilder();
        appendXml(multipleFolders, xml);
        return xml.getXml();
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlStringBuilder

            KongaIoUtils.createAndWrite(file, getXml());
        }
    }

    private String getXml() {
        XmlStringBuilder builder = new XmlStringBuilder();
        builder.addElement(MappingsXmlConstants.ROOT);
        writeMappings(builder);
        writeMultipleFolders(builder);
        builder.closeElement();
        return builder.getXml();
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlStringBuilder

        this.includeDefaultValues = values;
    }

    public XSD buildXsd(DatabaseStructure dbStruct) {
        illegalNameEncountered = false;
        xsd = new XmlStringBuilder();
        addSchemaElement();
        openRootElement();
        if (!addTables(dbStruct)) {
            return new XSD(null, null, false);
        }
View Full Code Here

Examples of org.jitterbit.xml.XmlStringBuilder

            ErrorLog.log(this, "Failed to store file store dependencies", ex);
        }
    }

    private String generateXml() {
        XmlStringBuilder builder = new XmlStringBuilder();
        builder.addElement(ROOT);
        for (String mainPath : links.keySet()) {
            addFileToXml(mainPath, builder);
        }
        builder.closeElement();
        return builder.getXml();
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlStringBuilder

        private final XmlStringBuilder xml;

        public Builder(OperationLogEntry logEntry) {
            this.logEntry = logEntry;
            this.xml = new XmlStringBuilder();
        }
View Full Code Here

Examples of org.jitterbit.xml.XmlStringBuilder

    // TODO: Remove this method, and add a method save() instead. (When we do that, we
    // should remove the saveUiState method from ManagedProject.) The implementation
    // class is passed an InterchangeXmlSaver (or maybe rather a ProjectPersistor),
    // so it can save itself.
    public String getXml() {
        XmlStringBuilder builder = new XmlStringBuilder();
        builder.addElement(XmlConstants.Elements.UI_STATE);
        if (displayOnStartUp != null) {
            appendOpenPagesXml(builder);
        }
        if (expandedOnStartUp != null) {
            appendExpandedNodesXml(builder);
        }
        builder.closeElement();
        return builder.getXml();
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlStringBuilder

    private class XmlBuilder {

        private final XmlStringBuilder xml;

        public XmlBuilder() {
            xml = new XmlStringBuilder();
        }
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.