Package org.jitterbit.integration.data.structure

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


        JmsMessage clone = (JmsMessage) super.clone();
        clone.headerDescriptor = new MessageHeaderDescriptor(headerDescriptor);
        clone.standardProperties = new StandardPropertiesDescriptor(standardProperties);
        clone.userDefinedProperties = new MessagePropertiesDescriptor(userDefinedProperties);
        if (xmlPayloadStructure != null) {
            clone.xmlPayloadStructure = new XmlStructure(xmlPayloadStructure);
        } else {
            clone.xmlPayloadStructure = null;
        }
        return clone;
    }
View Full Code Here


            DataStructureType type = struct.getStructureType();
            if (type == DataStructureType.XML) {
                // The XML structure info is stored directly in the
                // TransformationsTab --> use the key-value pairs
                // to store the info:
                XmlStructure xml = (XmlStructure) struct;
                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());
View Full Code Here

        synchronized (getDataLock()) {
            DataStructureType type = getSourceType();
            if (type == null) {
                return null;
            } else if (type == DataStructureType.XML) {
                XmlStructure struct = new XmlStructure();
                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

            switch (type) {
            case XML:
                // The XML structure info is stored directly in the
                // TransformationsTab --> use the key-value pairs
                // to store the info:
                XmlStructure xml = (XmlStructure) struct;
                setProperty(TARGET_XML, xml.getFilePath());
                setProperty(TARGET_DTD_ROOT, xml.getRootNodeName());
                setProperty(TARGET_DTD_URL, xml.getTargetDtdUrl());
                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());
View Full Code Here

        synchronized (getDataLock()) {
            DataStructureType type = getTargetType();
            if (type == null) {
                return null;
            } else if (type == DataStructureType.XML) {
                XmlStructure struct = new XmlStructure();
                struct.setFilePath(getProperty(TARGET_XML));
                struct.setRootNodeName(getProperty(TARGET_DTD_ROOT));
                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

    private static void collect(DataStructure struct, List<String> values) {
        // TODO: Add method DataStructure.collectSearchValues().
        switch (struct.getStructureType()) {
        case XML:
            XmlStructure xml = (XmlStructure) struct;
            values.add(xml.getFilePath());
            values.add(xml.getRootNodeName());
            break;
        case Database:
            DatabaseStructure db = (DatabaseStructure) struct;
            if (db.isManualSqlStatement()) {
                values.add(db.getManualSqlStatement());
View Full Code Here

        return pages.canFinish(page);
    }

    @Override
    public void applyTo(Transformation tf) throws WizardPageException {
        XmlStructure xml = pages.getXmlStructure();
        applyStructureToTransformation(tf, xml);
    }
View Full Code Here

        IntegrationProject project = getExplorerSupport().getProject();
        return project.getItemLookup().getEntity(docId, TextDocument.class);
    }
   
    private XmlStructure getXmlStructure(JmsMessage msg) throws WizardPageException {
        XmlStructure xml = msg.getPayloadXmlStructure();
        if (xml == null) {
            throw new WizardPageException(this, "The selected JMS message is defined to have a XML payload, " +
                    "but no XML structure has been defined for it. Please revisit the definition for the " +
                    "selected JMS message.");
        }
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.