Examples of restoreFrom()


Examples of org.jitterbit.integration.data.structure.DataStructure.restoreFrom()

            struct = createLdapInputStructure(tf, lookup);
            break;
        default:
            throw new RuntimeException("Unexpected structure type: " + type);
        }
        struct.restoreFrom(root);
        return struct;
    }

    /**
     * Restores the output structure for the given <code>Transformation</code>.
View Full Code Here

Examples of org.jitterbit.integration.data.structure.DataStructure.restoreFrom()

            struct = createLdapOutputStructure(tf, lookup);
            break;
        default:
            throw new RuntimeException("Unexpected structure type: " + type);
        }
        struct.restoreFrom(root);
        return struct;
    }

    private static boolean isApplicable(DataStructure struct) {
        // struct == null: This is the special case of XML - all necessary data is stored
View Full Code Here

Examples of org.jitterbit.integration.data.structure.ldap.LdapSearchParametersPersistor.restoreFrom()

        LdapSearchParametersPersistor loader = new LdapSearchParametersPersistor();
        Map<NumericOid, LdapSearchParameters> searchParams = Maps.newHashMap();
        for (Persistor p : root.getChildren("SearchParams")) {
            NumericOid oid = new NumericOid(p.getString("oid"));
            Persistor data = p.getFirstChild("Data");
            searchParams.put(oid, loader.restoreFrom(data));
        }
        this.searchParams = new HashMap<NumericOid, LdapSearchParameters>(searchParams);
    }

    private void setEntriesImpl(LdapStructureEntry[] entries) {
View Full Code Here

Examples of org.jitterbit.integration.data.structure.ldap.LdapStructureEntryPersistor.restoreFrom()

    private void restoreEntries(Persistor root) {
        List<LdapStructureEntry> entries = Lists.newArrayList();
        LdapStructureEntryPersistor loader = new LdapStructureEntryPersistor();
        for (Persistor p : root.getChildren("LdapStructureEntry")) {
            entries.add(loader.restoreFrom(p));
        }
        this.entries = entries.toArray(new LdapStructureEntry[entries.size()]);
    }

    private void restoreSearchParams(Persistor root) {
View Full Code Here

Examples of org.jitterbit.integration.data.structure.text.SegmentPersistor.restoreFrom()

            throw new IllegalArgumentException("Invalid persistor: the Segments root is missing");
        }
        segmentList = Lists.newArrayList();
        SegmentPersistor loader = new SegmentPersistor();
        for (Persistor sp : segmentRoot.getChildren("Segment")) {
            segmentList.add(loader.restoreFrom(sp));
        }
    }

}
View Full Code Here

Examples of org.jitterbit.integration.database.info.DatabaseObjectPersistor.restoreFrom()

    private void restoreObjects(Persistor p) {
        objects = Maps.newHashMap();
        Persistor root = p.getFirstChild("Objects");
        DatabaseObjectPersistor op = new DatabaseObjectPersistor();
        for (Persistor item : root.getChildren("Item")) {
            objects.put(op.restoreFrom(item.getFirstChild("Object")), item.getInteger("value"));
        }
    }

    private void reconstructIncludeSchemaProperty() {
        if (getData().containsKey(INCLUDE_SCHEMA_NAME)) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.