Examples of aliasPackage()


Examples of com.thoughtworks.xstream.XStream.aliasPackage()

            out = new PrettyPrintWriter(buffer);
        }

        XStream xstream = getXStream();
        xstream.setMode(XStream.NO_REFERENCES);
        xstream.aliasPackage("", "org.apache.activemq.command");
        xstream.marshal(ds, out);
        return buffer.toString();
    }

    // Properties
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

     * @return
     */
    protected String marshallAdvisory(final DataStructure ds) {
        XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
        xstream.setMode(XStream.NO_REFERENCES);
        xstream.aliasPackage("", "org.apache.activemq.command");
        return xstream.toXML(ds);
    }
}
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

                FactPattern.class );
        xt.alias( "retract",
                ActionRetractFact.class );

        //See https://issues.jboss.org/browse/GUVNOR-1115
        xt.aliasPackage( "org.drools.guvnor.client",
                "org.drools.ide.common.client" );

        final String brl = xt.toXML( model );

        System.out.println( brl );
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

                FactPattern.class );
        xt.alias( "retract",
                ActionRetractFact.class );

        //See https://issues.jboss.org/browse/GUVNOR-1115
        xt.aliasPackage( "org.drools.guvnor.client",
                "org.drools.ide.common.client" );

        final String brl = xt.toXML( model );

        System.out.println( brl );
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

                FactPattern.class );
        xt.alias( "retract",
                ActionRetractFact.class );

        //See https://issues.jboss.org/browse/GUVNOR-1115
        xt.aliasPackage( "org.drools.guvnor.client",
                "org.drools.ide.common.client" );

        final String brl = xt.toXML( model );

        System.out.println( brl );
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

                  FactPattern.class );
        xt.alias( "retract",
                  ActionRetractFact.class );

        //See https://issues.jboss.org/browse/GUVNOR-1115
        xt.aliasPackage( "org.drools.guvnor.client", "org.drools.ide.common.client" );

        final String brl = xt.toXML( model );

        System.out.println( brl );
    }
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

                                                final InputStream logoStream) {
        if (jpdlStream == null || processToolConfigStream == null || queueConfigStream == null) {
            throw new IllegalArgumentException("at least one of the streams is null");
        }
        XStream xstream = new XStream();
        xstream.aliasPackage("config", ProcessDefinitionConfig.class.getPackage().getName());
        xstream.useAttributeFor(String.class);
        xstream.useAttributeFor(Boolean.class);
        xstream.useAttributeFor(Integer.class);

        ProcessDefinitionConfig config = (ProcessDefinitionConfig) xstream.fromXML(processToolConfigStream);
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

        if (jpdlStream == null || processToolConfigStream == null || queueConfigStream == null) {
            throw new IllegalArgumentException("at least one of the streams is null");
        }
        XStream xstream = new XStream();
        xstream.aliasPackage("config", ProcessDefinitionConfig.class.getPackage().getName());
        xstream.useAttributeFor(String.class);
        xstream.useAttributeFor(Boolean.class);
        xstream.useAttributeFor(Integer.class);

        ProcessDefinitionConfig config = (ProcessDefinitionConfig) xstream.fromXML(processToolConfigStream);
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

            out = new PrettyPrintWriter(buffer);
        }

        XStream xstream = getXStream();
        xstream.setMode(XStream.NO_REFERENCES);
        xstream.aliasPackage("", "org.apache.activemq.command");
        xstream.marshal(ds, out);
        return buffer.toString();
    }

    // Properties
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.aliasPackage()

     * @return the JSON marshaled form of the given DataStructure instance.
     */
    protected String marshallAdvisory(final DataStructure ds) {
        XStream xstream = new XStream(new JsonHierarchicalStreamDriver());
        xstream.setMode(XStream.NO_REFERENCES);
        xstream.aliasPackage("", "org.apache.activemq.command");
        return xstream.toXML(ds);
    }
}
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.