Examples of aliasField()


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
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.