Package org.jitterbit.integration.data.structure

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


            document = doc;
        }

        @Override
        public void apply(Transformation tf) {
            TextStructure struct = document.getDataStructure();
            TextDocumentId id = document.getID();
            if (sourceTarget == SourceTarget.Source) {
                tf.setInputStructure(struct);
                tf.setSourceTextDocumentId(id);
            } else {
View Full Code Here


        });
    }

    private void start() {
        try {
            TextStructure structure = page.getStructureRepresentation();
            WaitLock waitLock = page.getWaitService().startWait();
            Worker worker = new Worker(structure, waitLock);
            worker.execute();
        } catch (TextDocumentDefinitionException e) {
            ErrorLog.attention(getClass(), null, e);
View Full Code Here

        Segment root = Segment.newRootSegment();
        addRow(root);
    }

    private void populateModel(TextDocument document) {
        TextStructure s = document.getDataStructure();
        checkArgument(!(s instanceof SimpleTextStructure), "document is a simple text document.");
        if (s instanceof ComplexTextStructure) {
            textStructure = (ComplexTextStructure) s;
            populateModel(textStructure);
        }
View Full Code Here

        super.setReadOnly();
        fieldTable.setReadOnly();
    }

    private void sanityCheckOfStructure() {
        TextStructure ts = document.getDataStructure();
        // ts will be null for a newly created structure.
        if (ts != null) {
            checkArgument(ts instanceof SimpleTextStructure, "document does not have a simple structure.");
            textStructure = (SimpleTextStructure) ts;
        }
View Full Code Here

        // and fire those changes to its own listeners
        document.documentStructureChanged();
    }

    private SimpleTextStructure getTextStructure(TextDocument document) {
        TextStructure structure = document.getDataStructure();
        if (structure == null) {
            structure = document.createTextStructure();
        }
        if (structure instanceof SimpleTextStructure) {
            return (SimpleTextStructure) structure;
View Full Code Here

        super.setReadOnly();
        segmentTable.setReadOnly();
    }

    private void sanityCheckOfStructure() {
        TextStructure ts = document.getDataStructure();
        // ts will be null for a newly created structure.
        checkArgument(ts == null || ts instanceof ComplexTextStructure, "document does not have a complex structure.");
    }
View Full Code Here

        ComplexTextStructure cts = getTextStructure(document);
        addSegmentInformation(document, cts);
    }

    private ComplexTextStructure getTextStructure(TextDocument document) {
        TextStructure structure = document.getDataStructure();
        if (structure == null) {
            structure = document.createTextStructure();
        }
        if (structure instanceof ComplexTextStructure) {
            return (ComplexTextStructure) structure;
View Full Code Here

        documentToSave = page.getObject();
        existingStructure = getExistingStructure();
    }

    private TextStructure getExistingStructure() {
        TextStructure struct = documentToSave.getDataStructure();
        return struct != null ? struct.clone() : null;
    }
View Full Code Here

    private TextStructure createNewStructure() throws TextDocumentDefinitionException {
        TextDocument dummy = new TextDocument("Dummy");
        dummy.setDocType(documentToSave.getDocType());
        dummy.createTextStructure();
        page.applyStructure(dummy);
        TextStructure newStructure = dummy.getDataStructure();
        return newStructure;
    }
View Full Code Here

        return null;
    }

    private void convertSourceStructure() {
        assert (sourceStructureConverter != null);
        TextStructure structure = sourceStructureConverter.convert();
        startPage.applyToSourceStructure(structure);
        container.handleNewDocumentRequest(structure, documentOwner);
    }
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.