Package org.alfresco.repo.dictionary
Class M2XML
- java.lang.Object
-
- org.alfresco.repo.dictionary.M2XML
-
public class M2XML extends Object
Support translating model from and to XML- Author:
- David Caruana
-
-
Constructor Summary
Constructors Constructor Description M2XML()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleandeserialiseBoolean(String booleanString)static DatedeserialiseDate(String date)Convert XML date (of the form yyyy-MM-dd) to Datestatic StringserialiseBoolean(Boolean bool)static StringserialiseDate(Date date)Convert date to XML date (of the form yyyy-MM-dd)
-
-
-
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
-
deserialiseBoolean
public static Boolean deserialiseBoolean(String booleanString) throws ParseException
- Throws:
ParseException
-
-