Examples of JsonStructure


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

    @Override
    public JsonStructure getDefinedStructure() {
        CreateXsdResult result = getResult();
        File mainXsd = result.getMainXsd();
        ExpandedName root = result.getRootName();
        return new JsonStructure(mainXsd.getName(), root.toString());
    }
View Full Code Here

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

    public JsonStructure getDefinedStructure() {
        if (isSampleFileMode()) {
            return null;
        }
        // TODO: When the user can change the root name this needs to change as well:
        return new JsonStructure(model.getSelectedServerFile().getName(), JsonXmlConstants.ROOT_NAME);
    }
View Full Code Here

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

    }

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

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

        setTitle("JSON");
    }

    @Override
    protected JsonStructure finishWizard() throws WizardPageException {
        JsonStructure json = null;
        for (Editor page : getAllApplicablePages()) {
            if (page instanceof JsonStructureWizardPage) {
                json = ((JsonStructureWizardPage) page).getDefinedStructure();
                if (json != null) {
                    break;
View Full Code Here

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

    protected boolean onWizardCancelled() {
        return true;
    }

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

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

        return pages.canFinish(page);
    }

    @Override
    public void applyTo(Transformation tx) throws WizardPageException {
        JsonStructure json = pages.getDefinedStructure();
        if (mode == SourceTarget.Source) {
            tx.setInputStructure(json);
        } else {
            tx.setOutputStructure(json);
        }
View Full Code Here

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

                setProperty(SOURCE_XML, xml.getFilePath());
                setProperty(SOURCE_DTD_ROOT, xml.getRootNodeName());
                setProperty(DO_SOURCE_XML_VALIDATION, xml.isValidationEnabled());
                inputStructure = null;
            } else if (type == DataStructureType.JSON) {
                JsonStructure json = (JsonStructure) struct;
                setProperty(SOURCE_XML, json.getFileName());
                setProperty(SOURCE_DTD_ROOT, json.getRootName());
                setProperty(DO_SOURCE_XML_VALIDATION, false);
            } else {
                inputStructure = struct;
                setProperty(SOURCE_XML, "");
                setProperty(SOURCE_DTD_ROOT, "");
View Full Code Here

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

                struct.setFilePath(getProperty(SOURCE_XML));
                struct.setRootNodeName(getProperty(SOURCE_DTD_ROOT));
                struct.setValidationEnabled(getBooleanProperty(DO_SOURCE_XML_VALIDATION, true));
                return struct;
            } else if (type == DataStructureType.JSON) {
                return new JsonStructure(getProperty(SOURCE_XML), getProperty(SOURCE_DTD_ROOT));
            }
            return inputStructure;
        }
    }
View Full Code Here

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

                setProperty(DO_TARGET_XML_VALIDATION, xml.isValidationEnabled());
                setProperty(TARGET_XML_SCHEMA_LOCATION, xml.getSchemaLocation());
                outputStructure = null;
                break;
            case JSON:
                JsonStructure json = (JsonStructure) struct;
                setProperty(TARGET_XML, json.getFileName());
                setProperty(TARGET_DTD_ROOT, json.getRootName());
                setProperty(DO_TARGET_XML_VALIDATION, false);
                outputStructure = null;
                break;
            case Database:
                DatabaseStructure dbStruct = (DatabaseStructure) struct;
View Full Code Here

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

                struct.setTargetDtdUrl(getProperty(TARGET_DTD_URL));
                struct.setValidationEnabled(getBooleanProperty(DO_TARGET_XML_VALIDATION, true));
                struct.setSchemaLocation(getProperty(TARGET_XML_SCHEMA_LOCATION, null));
                return struct;
            } else if (type == DataStructureType.JSON) {
                return new JsonStructure(getProperty(TARGET_XML), getProperty(TARGET_DTD_ROOT));
            }
            return outputStructure;
        }
    }
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.