Package org.jitterbit.integration.data.structure

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


        container.handleNewDocumentRequest(structure, documentOwner);
    }

    private void convertTargetStructure() {
        assert (targetStructureConverter != null);
        TextStructure structure = targetStructureConverter.convert();
        startPage.applyToTargetStructure(structure);
        container.handleNewDocumentRequest(structure, documentOwner);
    }
View Full Code Here


            builder.setName(structureName);
            builder.addSegment("Order", SegmentOccurrence.ZeroOrMore);
            builder.addField("Date", FieldDataType.Date, "", "yyyy-MM-DD");
            builder.addField("OrderNo", FieldDataType.Integer, "", "");
            builder.closeSegment();
            TextStructure struct = builder.getStructure();
            validateStructure(struct);
            assertEquals(structureName, struct.getName());
        } catch (Exception ex) {
            ex.printStackTrace();
            fail();
        }
    }
View Full Code Here

            builder.addField("Quantity", FieldDataType.Integer, "", "");
            builder.addSegment("OrderDetails", SegmentOccurrence.OneOrMore);
            builder.addField("ID", FieldDataType.Identifier, "order_detail_2", "order_detail");
            builder.closeSegment();
            builder.closeSegment();
            TextStructure struct = builder.getStructure();
            validateStructure(struct);
        } catch (Exception ex) {
            ex.printStackTrace();
            fail();
        }
View Full Code Here

        Folder parent = folders.getWizardFolder(EntityType.Document, true);
        DatabaseStructureTree tree = new DatabaseStructureTree(dbStructure);
        Node root = tree.getRoot();
        DatabaseObject table = root.getTable();
        TextDocument doc = createEmptyDocument(parent, table);
        TextStructure struct = createTextStructure(root);
        doc.setStructure(struct);
        insertIntoProject(parent, doc);
        return doc;
    }
View Full Code Here

    public void setStructure(TextStructure structure) {
        checkNotNull(structure, "structure");
        if (structure == textStructure) {
            return;
        }
        TextStructure old;
        synchronized (getDataLock()) {
            old = textStructure;
            textStructure = structure;
            updateTextStructureDelimiterAndQualifier();
            updateDocType(structure);
View Full Code Here

*/
public final class TextDocumentSearchValuesCollector implements SearchValuesCollector {

    @Override
    public List<String> getValues(IntegrationEntity object) {
        TextStructure text = ((TextDocument) object).getDataStructure();
        List<String> values = Lists.newArrayList();
        for (Segment s : text.getSegmentList()) {
            values.add(s.getName());
            for (Field f : s) {
                values.add(f.getName());
            }
        }
View Full Code Here

        }
        currentSegment = segmentStack.isEmpty() ? null : segmentStack.peek();
    }

    public TextStructure getStructure() {
        TextStructure s = null;
        if (completedSegments.size() == 1) {
            s = createSimpleStructure();
        } else {
            s = createComplexStructure();
        }
View Full Code Here

        }

        @Override
        public TextStructureType getValue(IntegrationEntity dataObject) {
            TextDocument doc = (TextDocument) dataObject;
            TextStructure s = doc.getDataStructure();
            if (s instanceof SimpleTextStructure) {
                return TextStructureType.SIMPLE;
            }
            return TextStructureType.COMPLEX;
        }
View Full Code Here

        @Override
        public StringList getValue(IntegrationEntity dataObject) {
            StringList list = new StringList();
            TextDocument doc = (TextDocument) dataObject;
            TextStructure struct = doc.getDataStructure();
            if (struct instanceof ComplexTextStructure) {
                for (Segment s : ((ComplexTextStructure) struct)) {
                    list.add(s.getName());
                }
            }
View Full Code Here

        @Override
        public StringList getValue(IntegrationEntity dataObject) {
            StringList list = new StringList();
            TextDocument doc = (TextDocument) dataObject;
            TextStructure struct = doc.getDataStructure();
            if (struct instanceof ComplexTextStructure) {
                for (Segment s : ((ComplexTextStructure) struct)) {
                    collectFields(s, list);
                }
            } else if (struct instanceof SimpleTextStructure) {
View Full Code Here

TOP

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

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.