Class M2XML


  • public class M2XML
    extends Object
    Support translating model from and to XML
    Author:
    David Caruana
    • Constructor Detail

      • M2XML

        public M2XML()
    • Method Detail

      • deserialiseDate

        public static Date deserialiseDate​(String date)
                                    throws ParseException
        Convert XML date (of the form yyyy-MM-dd) to Date
        Parameters:
        date - the xml representation of the date
        Returns:
        the date
        Throws:
        ParseException
      • serialiseDate

        public static String serialiseDate​(Date date)
        Convert date to XML date (of the form yyyy-MM-dd)
        Parameters:
        date - the date
        Returns:
        the xml representation of the date
      • serialiseBoolean

        public static String serialiseBoolean​(Boolean bool)