Package org.milyn.edisax.model.internal

Examples of org.milyn.edisax.model.internal.Import


     * Digest attributes of Import element and populate Import.
     * @param node the Import element.
     * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate.
     */
    private void digestImport(Node node, Edimap edimap) {
        Import edimapImport = new Import();
        edimap.getImports().add(edimapImport);
       
        URI resourceURI = importLocator.resolveURI(getAttributeValue(node, "resource"));
    edimapImport.setResourceURI(resourceURI);
       
    edimapImport.setNamespace(getAttributeValue(node, "namespace"));
        edimapImport.setTruncatableFields(getNodeValueAsBoolean(node, "truncatableFields"));
        edimapImport.setTruncatableComponents(getNodeValueAsBoolean(node, "truncatableComponents"));
        edimapImport.setTruncatableSegments(getNodeValueAsBoolean(node, "truncatableSegments"));
    }
View Full Code Here


            edimap.getDescription().setVersion(version + ":" + release + ":" + agency);
            edimap.getDescription().setNamespace(ControlBlockHandlerFactory.NAMESPACE_ROOT + ":" + agency.toLowerCase() + ":" + version.toLowerCase() + release.toLowerCase() + ":" + type.toLowerCase());

            Map<String, Segment> segmentDefinitions = null;
            if (isSplitIntoImport) {
                Import ediImport = new Import();
                ediImport.setNamespace(agency);
                ediImport.setResource(definitionModel.getDescription().getName() + ".xml")// TODO: Review with B�rd
                edimap.getImports().add(ediImport);
            else {
                segmentDefinitions = getSegmentDefinitions(definitionModel);
            }
View Full Code Here

TOP

Related Classes of org.milyn.edisax.model.internal.Import

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.