Package org.opendope.conditions

Examples of org.opendope.conditions.Conditions


    // Add OpenDoPE parts to target
    // .. conditions - not that we use this here
    ConditionsPart conditionsPart = new ConditionsPart(new PartName("/customXml/item1.xml")); // name doesn't matter
    pkgOut.getMainDocumentPart().addTargetPart(conditionsPart, AddPartBehaviour.RENAME_IF_NAME_EXISTS); // Word will silently drop the CXPs if they aren't added to the MDP!
    addPropertiesPart(conditionsPart, "http://opendope.org/conditions");
    conditionsPart.setJaxbElement(new Conditions());
    // .. XPaths
    xPathsPart = new XPathsPart(new PartName("/customXml/item1.xml"));
    pkgOut.getMainDocumentPart().addTargetPart(xPathsPart, AddPartBehaviour.RENAME_IF_NAME_EXISTS);
    addPropertiesPart(xPathsPart, "http://opendope.org/xpaths");
    xPathsPart.setJaxbElement(new Xpaths());
View Full Code Here

TOP

Related Classes of org.opendope.conditions.Conditions

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.