Package org.jitterbit.integration.data.structure

Examples of org.jitterbit.integration.data.structure.XmlStructure


        setPageChain(new XmlStructureWizardPageChain(owner != null ? owner : this, toEdit, st, fileStore));
        setTitle(PackageResources.TITLE);
    }

    public XmlStructure getCreatedStructure() {
        return (createdStructure != null) ? new XmlStructure(createdStructure) : null;
    }
View Full Code Here


        return true;
    }

    @Override
    protected XmlStructure finishWizard() throws WizardPageException {
        XmlStructure xml = new XmlStructure();
        for (Editor page : getAllApplicablePages()) {
            if (page instanceof XmlStructureWizardPage) {
                ((XmlStructureWizardPage) page).applyTo(xml);
            }
        }
View Full Code Here

    }

    // TODO: I was written for the Salesforce Query wizard. Test we, and if I work OK
    // rewrite XmlStructureWizard to use me instead of its current implementation.
    public XmlStructure getXmlStructure() {
        XmlStructure xml = new XmlStructure();
        for (XmlStructureWizardPage page : getApplicablePages()) {
            page.applyTo(xml);
        }
        return xml;
    }
View Full Code Here

    }

    private EditedStructure completeWizard(XmlStructureWizard wizard, WizardCallback callback) {
        callback.waitUntilDone();
        if (!Thread.currentThread().isInterrupted()) {
            XmlStructure newStruct = wizard.getCreatedStructure();
            if (newStruct != null && newStruct != toEdit) {
                return new EditedStructureImpl(newStruct);
            }
        }
        return null;
View Full Code Here

        return page == standardChain.getLocationSelectionPage();
    }

    public XmlStructure getXmlStructure() {
        if (generateXsdPage.isYesSelected()) {
            XmlStructure xml = new XmlStructure();
            generateXsdPage.applyTo(xml);
            validationOptionsPage.applyTo(xml);
            return xml;
        } else {
            return standardChain.getXmlStructure();
View Full Code Here

    private void handleNewStructure(XmlStructure xml) {
        if (areEqual(structure, xml)) {
            return;
        }
        displayStructureInfo(xml);
        XmlStructure old = structure;
        structure = xml;
        inputPanel.undoableEditHappened(new UndoableEditEvent(this, new StructureUndoableEdit(old, xml)));
        inputPanel.inputChanged(new InputChangeEvent(this, "structure")); //$NON-NLS-1$
    }
View Full Code Here

     */
    public void setPayloadStructure(TextDocument doc) {
        TextDocumentId newId = (doc != null) ? doc.getID() : null;
        TextDocumentId oldId = getPayloadTextDocumentId();
        boolean change = !KongaID.areEqual(newId, oldId) || (getPayloadStructureType() != PayloadStructureType.TEXT);
        XmlStructure oldXmlStructure = xmlPayloadStructure;
        setPayloadStructureImpl(newId);
        if (change) {
            firePropertyChange(PAYLOAD_STRUCTURE, (oldId != null) ? oldId : oldXmlStructure, newId);
        }
    }
View Full Code Here

     *            will be invalid, meaning it cannot be deployed to a server.
     */
    public void setPayloadStructure(XmlStructure xml) {
        TextDocumentId docId = getPayloadTextDocumentId();
        boolean change = (xml != xmlPayloadStructure) || (getPayloadStructureType() != PayloadStructureType.XML);
        XmlStructure old = xmlPayloadStructure;
        setPayloadStructureImpl(xml);
        if (change) {
            firePropertyChange(PAYLOAD_STRUCTURE, (old != null) ? old : docId, xml);
        }
    }
View Full Code Here

            firePropertyChange(PAYLOAD_STRUCTURE, (old != null) ? old : docId, xml);
        }
    }
   
    private void setPayloadStructureImpl(XmlStructure xml) {
        xmlPayloadStructure = (xml != null) ? new XmlStructure(xml) : null;
        setProperty(PAYLOAD_DOCUMENT_ID, null);
        // Always set the payload type to XML, even if xml == null.
        // This allows the user to specify and save the type, without
        // committing to a particular XML structure. (Note that this
        // JmsMessage will be invalid though, and cannot be deployed.)
View Full Code Here

     * <p>
     * This method returns <code>null</code> if the payload type is not XML.
     *
     */
    public XmlStructure getPayloadXmlStructure() {
        return (xmlPayloadStructure != null) ? new XmlStructure(xmlPayloadStructure) : null;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.XmlStructure

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.