Examples of DomDriver


Examples of com.thoughtworks.xstream.io.xml.DomDriver

     * @throws TransformerException
     * @throws IOException
     */
    private void unmarshal(OutputStream os, Source content) throws TransformerException, IOException {
        SourceTransformer transform = new SourceTransformer();
        XStream xstream = new XStream(new DomDriver());
        String result = transform.toString(content);

        if (log.isDebugEnabled()) {
            log.debug("Remote invocation result: " + result);
        }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

        return result.toByteArray();
    }

    private byte[] toXML(Fact[] facts) {
        XStream x = new XStream(new DomDriver());
        return x.toXML(facts).getBytes(IoUtils.UTF8_CHARSET);

    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

        throw new IllegalArgumentException("This is not a valid drools model jar - no factmodel.xml found.");
    }

    private Fact[] fromXML(JarInputStream jis) {
        XStream x = new XStream(new DomDriver());
        return (Fact[]) x.fromXML(jis);

    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

        try {
            String encoding = resource instanceof InternalResource ? ((InternalResource) resource).getEncoding() : null;
            XStream xstream;
            if (encoding != null) {
                xstream = new XStream(new DomDriver(encoding));
            } else {
                xstream = new XStream();
            }

            initXStream(xstream);
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

        return result.toByteArray();
    }

    private byte[] toXML(Fact[] facts) {
        XStream x = new XStream(new DomDriver());
        return x.toXML(facts).getBytes();

    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

        throw new IllegalArgumentException("This is not a valid drools model jar - no factmodel.xml found.");
    }

    private Fact[] fromXML(JarInputStream jis) {
        XStream x = new XStream(new DomDriver());
        return (Fact[]) x.fromXML(jis);

    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

    private static final GuidedDecisionTableUpgradeHelper2 upgrader2 = new GuidedDecisionTableUpgradeHelper2();
    private static final GuidedDecisionTableUpgradeHelper3 upgrader3 = new GuidedDecisionTableUpgradeHelper3();
    private static final GuidedDTXMLPersistence INSTANCE = new GuidedDTXMLPersistence();

    private GuidedDTXMLPersistence() {
        xt = new XStream( new DomDriver() );

        //Legacy model
        xt.alias( "decision-table",
                  GuidedDecisionTable.class );
        xt.alias( "metadata-column",
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

    private XStream xt;
    private static final ScenarioXMLPersistence INSTANCE = new ScenarioXMLPersistence();

    private ScenarioXMLPersistence() {
        xt = new XStream(new DomDriver());
        xt.alias("scenario", Scenario.class);
        xt.alias("execution-trace", ExecutionTrace.class);
        xt.alias("expectation", Expectation.class);
        xt.alias("fact-data", FactData.class);
        xt.alias("fact", Fact.class);
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

    private static final GuidedDecisionTreeXMLPersistence INSTANCE = new GuidedDecisionTreeXMLPersistence();

    private XStream xt;

    private GuidedDecisionTreeXMLPersistence() {
        xt = new XStream( new DomDriver() );
    }
View Full Code Here

Examples of com.thoughtworks.xstream.io.xml.DomDriver

    private static final GuidedDecisionTableUpgradeHelper2 upgrader2 = new GuidedDecisionTableUpgradeHelper2();
    private static final GuidedDecisionTableUpgradeHelper3 upgrader3 = new GuidedDecisionTableUpgradeHelper3();
    private static final GuidedDTXMLPersistence INSTANCE = new GuidedDTXMLPersistence();

    private GuidedDTXMLPersistence() {
        xt = new XStream( new DomDriver() );

        //Legacy model
        xt.alias( "decision-table",
                  GuidedDecisionTable.class );
        xt.alias( "metadata-column",
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.