Package org.jitterbit.integration.data.structure

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


        this.page = page;
    }

    @Override
    public void execute(String[] params) throws CommandException {
        DataStructureType inputType = page.getObject().getInputStructure().getStructureType();
        if (inputType == DataStructureType.None) {
            throw new CommandException("This transformation does not use source data.");
        }
        if (params.length == 0) {
            loadSourceWithoutArgument();
View Full Code Here


        this.page = page;
    }

    @Override
    public void execute(String[] params) throws CommandException {
        DataStructureType type = page.getObject().getInputStructure().getStructureType();
        switch (type) {
        case None: // fall-through
        case Database: // fall-through
        case LDAP:
            throw new CommandException("This command is not supported for transformations with input type " + type);
View Full Code Here

    }

   
    private TreeMapperToTextStructureConverter newConverterImpl(TreeMapperNode rootNode,
                                                                DataStructure originalStructure) throws NotSupportedException {
        DataStructureType originalType = originalStructure.getStructureType();
        switch (originalType) {
        case Database:
            return new DatabaseToTextStructureConverter(rootNode);
        case None:
            throw new NotSupportedException("No structure to convert.");
View Full Code Here

    private void layoutSourceSelector(TwoColumnPanel layout) {
        layout.addRow(sourceTypeBox.getLabel(), getSourceSelectorComponent());
    }

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

        DataLocationType type = location.getDataLocationType();
        return StructureLocationAssociations.getAssociatedStructureType(type);
    }

    private JComponent getPreconfiguredSourceTypeMessage(DataStructure in) {
        DataStructureType type = in.getStructureType();
        switch (type) {
        case WebServiceResponse:
            return createWebServiceResponseAsInputMessage((WebServiceResponseStructure) in);
        default:
            return getPreconfiguredSourceTypeMessage(type);
View Full Code Here

    private void layoutOutputSelector(TwoColumnPanel layout) {
        layout.addRow(targetTypeBox.getLabel(), getTargetSelectorComponent());
    }

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

        TargetId targetId = transformation.getTargetId();
        return itemLookup != null ? itemLookup.getEntity(targetId, Target.class) : null;
    }

    private JComponent getPreconfiguredTargetTypeMessage(DataStructure out) {
        DataStructureType type = out.getStructureType();
        switch (type) {
        case WebServiceRequest:
            return createWebServiceRequestAsOutputMessage((WebServiceRequestStructure) out);
        default:
            return getPreconfiguredTargetTypeMessage(type);
View Full Code Here

    /**
     * Checks if the selected source and target types define a hosted web service Transformation.
     */
    public boolean isHostedWebService() {
        DataStructureType sourceType = getSourceType().getStructureType();
        DataStructureType targetType = getTargetType().getStructureType();
        return sourceType == DataStructureType.WebServiceRequest && targetType == DataStructureType.WebServiceResponse;
    }
View Full Code Here

    }

    private WizardPage switchToSourceChain() {
        inSourceSection();
        sourceChain = sourceChainProvider.getChain(startPage.getSourceType());
        DataStructureType targetType = startPage.getTargetType().getStructureType();
        sourceChain.setOpposingType(targetType);
        currentChain = sourceChain;
        return getFirstPageOfCurrentChain();
    }
View Full Code Here

    }

    private WizardPage switchToTargetChain() {
        inTargetSection();
        targetChain = targetChainProvider.getChain(startPage.getTargetType());
        DataStructureType sourceType = startPage.getSourceType().getStructureType();
        targetChain.setOpposingType(sourceType);
        currentChain = targetChain;
        return getFirstPageOfCurrentChain();
    }
View Full Code Here

TOP

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

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.