Package com.thoughtworks.xstream

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


    XStream xstream = new XStream();
    xstream.alias("status", Status.class);
    xstream.alias("users", UserStatusList.class);
    xstream.alias("user", User.class);
    xstream.addImplicitCollection(UserStatusList.class, "users");
    xstream.aliasField("protected", User.class, "protect");   //can't use "protected"
    xstream.omitField(Status.class, "truncated");
    xstream.omitField(Status.class, "source");
    xstream.omitField(Status.class, "location");
    xstream.omitField(Status.class, "description");
   
View Full Code Here


    xstream.addImplicitCollection(SBMLErrorLog.class, "options",
        "option", Option.class);
    xstream.addImplicitCollection(SBMLErrorLog.class,
        "validationErrors", "problem", SBMLError.class);

    xstream.aliasField("error", SBMLErrorLog.class, "status");
    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
View Full Code Here

        "option", Option.class);
    xstream.addImplicitCollection(SBMLErrorLog.class,
        "validationErrors", "problem", SBMLError.class);

    xstream.aliasField("error", SBMLErrorLog.class, "status");
    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
    xstream.aliasField("internal-error", SBMLErrorLog.class, "status");
View Full Code Here

    xstream.addImplicitCollection(SBMLErrorLog.class,
        "validationErrors", "problem", SBMLError.class);

    xstream.aliasField("error", SBMLErrorLog.class, "status");
    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
    xstream.aliasField("internal-error", SBMLErrorLog.class, "status");
View Full Code Here

        "validationErrors", "problem", SBMLError.class);

    xstream.aliasField("error", SBMLErrorLog.class, "status");
    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
    xstream.aliasField("internal-error", SBMLErrorLog.class, "status");

    xstream.useAttributeFor(File.class);
View Full Code Here

    xstream.aliasField("error", SBMLErrorLog.class, "status");
    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
    xstream.aliasField("internal-error", SBMLErrorLog.class, "status");

    xstream.useAttributeFor(File.class);
View Full Code Here

    xstream.aliasField("error", SBMLErrorLog.class, "status");
    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
    xstream.aliasField("internal-error", SBMLErrorLog.class, "status");

    xstream.useAttributeFor(File.class);

    xstream.useAttributeFor(Option.class, "name");
View Full Code Here

    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
    xstream.aliasField("internal-error", SBMLErrorLog.class, "status");

    xstream.useAttributeFor(File.class);

    xstream.useAttributeFor(Option.class, "name");
    xstream.useAttributeFor(Option.class, "status");
View Full Code Here

    xstream.addImplicitCollection(SBMLErrorLog.class, "options",
        "option", Option.class);
    xstream.addImplicitCollection(SBMLErrorLog.class,
        "validationErrors", "problem", SBMLError.class);

    xstream.aliasField("error", SBMLErrorLog.class, "status");
    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
View Full Code Here

        "option", Option.class);
    xstream.addImplicitCollection(SBMLErrorLog.class,
        "validationErrors", "problem", SBMLError.class);

    xstream.aliasField("error", SBMLErrorLog.class, "status");
    xstream.aliasField("warning", SBMLErrorLog.class, "status");
    xstream.aliasField("no-errors", SBMLErrorLog.class, "status");
    xstream.aliasField("file-not-readable", SBMLErrorLog.class, "status");
    xstream.aliasField("out-of-memory", SBMLErrorLog.class, "status");
    xstream.aliasField("segmentation-fault", SBMLErrorLog.class, "status");
    xstream.aliasField("internal-error", SBMLErrorLog.class, "status");
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.