Package org.jitterbit.integration.data.structure

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


    public final void setDocReader(DocReader reader){
      m_DocReader=reader;
    }

    public final boolean isXml(){
        DataStructure s = getRepresentedStructure();
        return s.getStructureType().isXmlBased();
    }
View Full Code Here


        }
        return null;
    }

    private boolean isFileDropSupported() {
        DataStructure inputStructure = treeMapper.getTransformation().getInputStructure();
        return supportedTypes.contains(inputStructure.getStructureType());
    }
View Full Code Here

        DataStructureType type = getSourceTypeFromPreconfiguredSource();
        if (type != null) {
            setSelection(sourceTypeBox, type);
            return getPreconfiguredSourceTypeMessage(type);
        }
        DataStructure in = transformation.getInputStructure();
        if (in == null) {
            return sourceTypeBox.getInputComponent();
        } else {
            setSelection(sourceTypeBox, in.getStructureType());
            return getPreconfiguredSourceTypeMessage(in);
        }
    }
View Full Code Here

        DataStructureType type = getTargetTypeFromPreconfiguredTarget();
        if (type != null) {
            setSelection(targetTypeBox, type);
            return getPreconfiguredTargetTypeMessage(type);
        }
        DataStructure out = transformation.getOutputStructure();
        if (out == null) {
            return targetTypeBox.getInputComponent();
        } else {
            setSelection(targetTypeBox, out.getStructureType());
            return getPreconfiguredTargetTypeMessage(out);
        }
    }
View Full Code Here

    private ComboBoxInputField createSourceBox(List<WizardType> inputTypes) {
        ComboBoxModel model = createSourceComboModel(inputTypes);
        ComboBoxInputField field = createComboInput(model,
                        Strings.mnemonic("StartPage.Label.Source"),
                        Strings.get("StartPage.SelectSource"));
        DataStructure in = transformation.getInputStructure();
        if (in != null) {
            setSelection(field, in.getStructureType());
        }
        return field;
    }
View Full Code Here

    private ComboBoxInputField createTargetBox(List<WizardType> outputTypes) {
        ComboBoxModel model = createTargetComboModel(outputTypes);
        ComboBoxInputField field = createComboInput(model,
                        Strings.mnemonic("StartPage.Label.Target"),
                        Strings.get("StartPage.SelectTarget"));
        DataStructure out = transformation.getOutputStructure();
        if (out != null) {
            setSelection(field, out.getStructureType());
        }
        return field;
    }
View Full Code Here

     *             if <code>struct</code> is null.
     * @see #getInputStructure()
     * @see #setOutputStructure(DataStructure)
     */
    public void setInputStructure(DataStructure struct) {
        DataStructure old;
        synchronized (getDataLock()) {
            old = getInputStructure();
            // TODO: Compare the old with the new. If equal, do not apply
            if (old != null) {
                old.removePropertyChangeListener(inputStructureListener);
            }
            DataStructureType type = struct.getStructureType();
            if (type == DataStructureType.XML) {
                // The XML structure info is stored directly in the
                // TransformationsTab --> use the key-value pairs
View Full Code Here

     *            a <code>DataStructure</code> instance; can't be null.
     * @see #getOutputStructure()
     * @see #setInputStructure(DataStructure)
     */
    public void setOutputStructure(DataStructure struct) {
        DataStructure old;
        synchronized (getDataLock()) {
            old = getOutputStructure();
            // TODO: Compare the old with the new. If equal, do not apply
            if (old != null) {
                old.removePropertyChangeListener(outputStructureListener);
            }
            DataStructureType type = struct.getStructureType();
            switch (type) {
            case XML:
                // The XML structure info is stored directly in the
View Full Code Here

     *         structure; or <code>null</code> if this transformation does not have a source
     *         structure.
     *
     */
    public StructureNature getNatureOfSource() {
        DataStructure struct = getInputStructure();
        return (struct == null) ? null : struct.getStructureNature();
    }
View Full Code Here

     * @return a <code>StructureNature</code> instance defining the nature of the target
     *         structure; or <code>null</code> if this transformation does not have a target
     *         structure.
     */
    public StructureNature getNatureOfTarget() {
        DataStructure struct = getOutputStructure();
        return (struct == null) ? null : struct.getStructureNature();
    }
View Full Code Here

TOP

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

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.