Package com.fengjing.framework.xstream

Examples of com.fengjing.framework.xstream.PhoneNumber


   
    xstream.alias("person", Person.class);
    xstream.alias("phonenumber", PhoneNumber.class);
   
    Person joe = new Person("Joe", "Walnes");
    joe.setPhone(new PhoneNumber(123, "1234-456"));
    joe.setFax(new PhoneNumber(123, "9999-999"));
   
    String xml = xstream.toXML(joe);
   
    System.out.println(xml);
  }
View Full Code Here

TOP

Related Classes of com.fengjing.framework.xstream.PhoneNumber

Copyright © 2018 www.massapicom. 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.