Package flexjson.factories

Examples of flexjson.factories.DateObjectFactory


        assertEquals( "03/21/76", df.format(newUser.getBirthdate()) );

        String pattern = "yyyy-MM-dd hh:mm:ss";

        json = new JSONSerializer().transform( new DateTransformer( pattern ), Date.class ).serialize(charlie);
        Person user = new JSONDeserializer<Person>().use("birthdate", new DateObjectFactory().add(pattern) ).deserialize(json);

        assertEquals( charlie.getBirthdate(), user.getBirthdate() );
        assertEquals( "03/21/76", df.format( user.getBirthdate() ) );

        DateObjectFactory.addDefaultFormat( pattern );
View Full Code Here

TOP

Related Classes of flexjson.factories.DateObjectFactory

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.