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()

  private Collection<ProcessRoleConfig> getRoles(InputStream input) {
    if (input == null) {
      return null;
    }
    XStream xstream = new XStream();
    xstream.aliasPackage("config", ProcessRoleConfig.class.getPackage().getName());
    xstream.useAttributeFor(String.class);
    xstream.useAttributeFor(Boolean.class);
    xstream.useAttributeFor(Integer.class);
    return (Collection<ProcessRoleConfig>) xstream.fromXML(input);
  }
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
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.